buttons scale

Posted By: GameScore

buttons scale - 04/10/12 16:52

is it possible to scale buttons at runtime?
Posted By: HeelX

Re: buttons scale - 04/10/12 18:02

If you put a regular button on a regular panel and you scale the panel, the button will scale, too.
Posted By: GameScore

Re: buttons scale - 04/10/12 19:23

yeah this i know but can i scale the button without scale the panel?
Posted By: HeelX

Re: buttons scale - 04/10/12 20:02

I'm afraid not. Though, you could modify it via pan_setbutton! If you want to rescale the button bitmap(s) to an unknown scale, you could rescale the bitmap via bmap_blit and modify the button with pan_setbutton.
Posted By: GameScore

Re: buttons scale - 04/10/12 20:16

tnx
Posted By: FoxHound

Re: buttons scale - 04/10/12 23:08

You can also set two panels instead of one, The first with just the background the second with the button you would like to scale but with no bmap other than the button and then scale that panel.
© 2023 lite-C Forums