Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,403 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Resizing panels and text according to resolution #7029
09/17/01 06:15
09/17/01 06:15
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Hi,

Well, as the title says: is there a way of resizing bitmap panels and text according to screen resolution? Obviously it's easy to work out the new size using screen_size.x and screen_size.y, but is it actually possible to resize panels and texts at all? Or do I have to provide a different bitmap for each possible resolution if I don't want enormous panels in low resolutions? Sorry if this is a dumb Q, but I can't find anything about this anywhere.

Cheers,
Keith


Re: Resizing panels and text according to resolution #7030
09/17/01 11:59
09/17/01 11:59

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Just a guess (I would like to know this too), but I think that you would have to make different PCX/BMP's for each resolution since your panels wouldn't be comprised of vector graphics.

I could be wrong (I hope so).


-Jeff


Re: Resizing panels and text according to resolution #7031
09/18/01 02:13
09/18/01 02:13
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Thanks for your reply - I thought this would be the case. How do other games do it - is it something usually built into the engine?

Anyone with any ideas? I guess creating various bitmaps for each resolution isn't too difficult, though it does add a fair few lines of script...

Cheers,
Keith


Re: Resizing panels and text according to resolution #7032
09/18/01 06:19
09/18/01 06:19

A
Anonymous
Unregistered
Anonymous
Unregistered
A



You can use the same bitmaps for all the resolutions; of course they'll look smaller at higher resolutions.

Re: Resizing panels and text according to resolution #7033
09/18/01 06:41
09/18/01 06:41
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Hi George, thanks for your reply but what I want to do is make the bitmaps the same size at all resolutions - of course I know I can use the same bitmaps if I'm not bothered about this.

Cheers,
Keith


Re: Resizing panels and text according to resolution #7034
09/18/01 08:35
09/18/01 08:35

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I searched through the WDL Manual and I found nothing for resizing Panels.

I have noticed that in many games they just deal with the Panels looking smaller when the user picks a higher resolution than what the Panel was designed for (they do of course reposition the panels).

However, I have seen many games keep the panels perspective size the same no matter what resolution was selected. In that case I am almost certain they would have just made one large panel then down-size and save it for each resolution supported.

-Jeff


Re: Resizing panels and text according to resolution #7035
09/18/01 10:12
09/18/01 10:12

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Looks like this will be in a future release of the SDK.

forum topic

-Dylan


Re: Resizing panels and text according to resolution #7036
09/18/01 20:53
09/18/01 20:53

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Following on from what Braxt said, all you would have to do is create one panel for 1600x1200/1024x768 (depening on you screen resolution setups in your game), then create a new function to chnage the panel size when the resolution is lowered, then call it in the main resolution change function, and on F5 it should change - I have not tried it myself but it should work - I'll try and make an example of what I mean (I probably am making no sense as I need sleep - well, better get some )

Cya!


Re: Resizing panels and text according to resolution #7037
09/21/01 01:36
09/21/01 01:36

A
Anonymous
Unregistered
Anonymous
Unregistered
A



you could just make seperate bitmaps for each resolution.

Re: Resizing panels and text according to resolution #7038
09/21/01 07:40
09/21/01 07:40

A
Anonymous
Unregistered
Anonymous
Unregistered
A



It isn't possible to resize panels... but it is possible to scale sprites placed in the level. Perhaps, if one were to define a "panel" not as a panel but as a sprite entity attached to a view, one would be able to resize it via scale... of course that would mean no panel effects like buttons, bars, sliders and the like... all things have a downside, I guess.

Gnometech


Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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