|
3 registered members (AndrewAMD, VoroneTZ, 1 invisible),
1,512
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Scale a panel to the screen
#272266
06/17/09 07:56
06/17/09 07:56
|
Joined: Mar 2008
Posts: 68 Germany, Essen
virtualmarctek
OP
Junior Member
|
OP
Junior Member
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: the_clown]
#272334
06/17/09 15:29
06/17/09 15:29
|
Joined: Mar 2008
Posts: 68 Germany, Essen
virtualmarctek
OP
Junior Member
|
OP
Junior Member
Joined: Mar 2008
Posts: 68
Germany, Essen
|
doesn't work really before it was like that: but now it's like that: ![](http://thumbmaker.net/bild.php/237,jetztBXIX0.png) 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
the_clown
User
|
User
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 laugh](/ubb7/images/graemlins/default_dark/laugh.gif)
Last edited by the_clown; 06/17/09 15:52.
|
|
|
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
flits
User
|
User
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
virtualmarctek
OP
Junior Member
|
OP
Junior Member
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
flits
User
|
User
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"
|
|
|
|
|
|