How to resize/scale buttons?

Posted By: Razoron

How to resize/scale buttons? - 07/21/09 11:20

Hey guys,

the header says everything. In my game, you can choose btw different screen resolutions and when i change to a bigger resolution, the buttons are little.

Regards Raz
Posted By: Claus_N

Re: How to resize/scale buttons? - 07/21/09 11:55

Hi,

I think you should have a look at pan_setbmap or pan_setbutton smile haven't tried those functions myself yet though, but seems to be what you are looking for smile
Posted By: Razoron

Re: How to resize/scale buttons? - 07/21/09 12:20

first, thanks for answering, but i already used pan_setbutton and pan_setbmap. When i would use them, i have to create the buttons for all screen resolutions. I'm searching a function, that can scale a bmap while using it and loading it only once.
Posted By: Claus_N

Re: How to resize/scale buttons? - 07/21/09 12:44

Ah, sorry for misunderstanding grin

I don't think that theres such a function, though you could maybe use panel.scale_x and scale_y to make the whole panel fit the new resolution.
Posted By: Razoron

Re: How to resize/scale buttons? - 07/21/09 12:48

Works, thanks.
© 2023 lite-C Forums