|
0 registered members (),
635
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Panel resize
[Re: Tobias_Runde]
#82991
07/24/06 10:42
07/24/06 10:42
|
Joined: Apr 2005
Posts: 2,332 Germany, BaWü
aztec

Expert
|

Expert
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
|
I think another possibility could be you make 3 panel diffrent szie 800x600, 1024x758, 645x350 (i dont know it exactly) but then you write something like if (video_mode == 8) // 1024x758 resolution { the_panel.visible = on; } else { visible off } if(video_mode == 7) // 800x600 resolution { the_panle2.visible = off; } else...... I hope you know what I mean 
Visit: schwenkschuster-design.de
|
|
|
Re: Panel resize
[Re: aztec]
#82992
07/24/06 10:59
07/24/06 10:59
|
Joined: Feb 2003
Posts: 6,818 Minot, North Dakota, USA
ulillillia
Senior Expert
|
Senior Expert
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
|
When scaling a panel, the result becomes very pixelated. Try turning on the nofilter flag for a model and look at it. You can easily see pixelation effects. The same happens with panels. Stretch a panel to 4x on each side, you simulate the exact effect when zooming in on an image in a graphics edittor (like MSPaint or the GIMP). Scaling to 2x should be the very highest you should go and 2x is only decent for when using a very high resolution where the pixels on the monitor are very small.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials
|
|
|
Re: Panel resize
[Re: Tobias_Runde]
#82994
08/08/06 16:01
08/08/06 16:01
|
Joined: Jul 2006
Posts: 28 Amman, Jordan
Dareen
Newbie
|
Newbie
Joined: Jul 2006
Posts: 28
Amman, Jordan
|
I tried the screen_size but it gives me a weird error: Number Syntax Error how do fix it 
Upon my end shall I begin?
Forsaking all I've fallen for..
I rise to meet the END!!
|
|
|
Re: Panel resize
[Re: ulillillia]
#82996
08/09/06 08:52
08/09/06 08:52
|
Joined: Jul 2006
Posts: 28 Amman, Jordan
Dareen
Newbie
|
Newbie
Joined: Jul 2006
Posts: 28
Amman, Jordan
|
Thats exactly what i used: Code:
pos_x = (screen_size.x - bmap_width(myBmap))/2; pos_y = (screen_size.y - bmap_height(myBmap))/2; as written in the manual, but i still get the error!! does it have anything to do with versions or updates? 
Upon my end shall I begin?
Forsaking all I've fallen for..
I rise to meet the END!!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|