Resize panel

Posted By: NL_3DGS_n00b

Resize panel - 01/31/08 01:23

Is it possible to resize a panel?

Thanks.
Posted By: Joozey

Re: Resize panel - 01/31/08 01:50

.scale_x and .size_x can resize your panel.
Scale will scale it down or up, size will clip or repeat your bmap image over the resized panel.


in atypes.h you can find all the attributes of every object.
May come in handy (sure did for me when I found out ).

Code:
typedef struct PANEL {
...
var scale_x,scale_y;
var size_x,size_y; // panel dimension
...
}


Posted By: NL_3DGS_n00b

Re: Resize panel - 01/31/08 18:55

Great.
I will test it as soon as I got home.
I'm using square black panels with a 75% opacity, so I can also use 1 bmap of 1-pixel, and resize it directly in the Engine.
It's a lot easier instead of making the panels in de right size and saving them as PCX.
Posted By: Joozey

Re: Resize panel - 01/31/08 19:39

You can also use the function bmap_createblack()
© 2023 lite-C Forums