Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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