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
0 registered members (), 16,302 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
Scale a panel to the screen #272266
06/17/09 07:56
06/17/09 07:56
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline OP
Junior Member
virtualmarctek  Offline OP
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
I've made a loading screen for my project in the scale of 1024*768 but if I start the game with a resolution of 1280*1024 then the Panel of the Lite-C Logo and the loading screen is too small. My Question: How can I scale the panel to the resolution of the screen?


mfg, Marc V.
Re: Scale a panel to the screen [Re: virtualmarctek] #272319
06/17/09 13:21
06/17/09 13:21
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946

panel.scale_x = screen_size.x;
panel.scale_y = screen_size.y;

Re: Scale a panel to the screen [Re: the_clown] #272334
06/17/09 15:29
06/17/09 15:29
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline OP
Junior Member
virtualmarctek  Offline OP
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
doesn't work really
before it was like that:

but now it's like that:

could it be, that it's because my normal resolution of my desktop is 1920*1080 but the game runs with 1042*768?

Last edited by virtualmarctek; 06/17/09 15:32.

mfg, Marc V.
Re: Scale a panel to the screen [Re: virtualmarctek] #272337
06/17/09 15:51
06/17/09 15:51
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
panel.size_x = screen_size.x;
panel.size_y = screen_size.y;

The only thing I could think of now. laugh

Last edited by the_clown; 06/17/09 15:52.
Re: Scale a panel to the screen [Re: the_clown] #272338
06/17/09 15:57
06/17/09 15:57
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline OP
Junior Member
virtualmarctek  Offline OP
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
mhh, no.
on 1024*768 it's normal but if i go higher it looks like this:



mfg, Marc V.
Re: Scale a panel to the screen [Re: virtualmarctek] #272340
06/17/09 16:23
06/17/09 16:23
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
menu_panel.scale_x = ((screen_size.x+1)/1280.000);
menu_panel.scale_y = ((screen_size.y+1)/1240.000);


"empty"
Re: Scale a panel to the screen [Re: flits] #272345
06/17/09 16:49
06/17/09 16:49
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline OP
Junior Member
virtualmarctek  Offline OP
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
now the panel istn't shown!
Edit: It's shown! I usesd the wrong (size intead of scale) now its looks like it:


Last edited by virtualmarctek; 06/17/09 16:52.

mfg, Marc V.
Re: Scale a panel to the screen [Re: virtualmarctek] #272348
06/17/09 17:04
06/17/09 17:04
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
oops ssry

menu_panel.scale_x = ((screen_size.x+1)/1024.00);
menu_panel.scale_y = ((screen_size.y+1)/768.00);


"empty"
Re: Scale a panel to the screen [Re: flits] #272358
06/17/09 17:42
06/17/09 17:42
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline OP
Junior Member
virtualmarctek  Offline OP
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
good, thanks now it's in fullscreen smile


mfg, Marc V.

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