Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Resize panel #181040
01/31/08 01:23
01/31/08 01:23
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Is it possible to resize a panel?

Thanks.


The best games are the games you create yourself.
Re: Resize panel [Re: NL_3DGS_n00b] #181041
01/31/08 01:50
01/31/08 01:50
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
.scale_x and .size_x can resize your panel.
Scale will scale it down or up, size will clip or repeat your bmap image over the resized panel.


in atypes.h you can find all the attributes of every object.
May come in handy (sure did for me when I found out ).

Code:
typedef struct PANEL {
...
var scale_x,scale_y;
var size_x,size_y; // panel dimension
...
}



Last edited by Joozey; 01/31/08 01:51.

Click and join the 3dgs irc community!
Room: #3dgs
Re: Resize panel [Re: Joozey] #181042
01/31/08 18:55
01/31/08 18:55
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
Great.
I will test it as soon as I got home.
I'm using square black panels with a 75% opacity, so I can also use 1 bmap of 1-pixel, and resize it directly in the Engine.
It's a lot easier instead of making the panels in de right size and saving them as PCX.


The best games are the games you create yourself.
Re: Resize panel [Re: NL_3DGS_n00b] #181043
01/31/08 19:39
01/31/08 19:39
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
You can also use the function bmap_createblack()


Click and join the 3dgs irc community!
Room: #3dgs

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1