Panel improvements

Posted By: FlorianP

Panel improvements - 09/08/10 08:49

It would be very nice to have an additional panelelement that just show a BMAP but can be stretched or tiled to a specific size - just like the background(.bmap) of a panel itself.
This would be very convienient for many situations - f.i. one could create resizable windows that consist of separate BMAPs for the edges and the ground and are only scaled in one directions. (at the moment one has to use 5 separate panels for that)

Also very handy would be two flags for Texts and Panels that automaticly add the current screen_size(or half of it) to the position.
This way it would be much easier to place objects on the bottom or the right side of the screen
Posted By: Espér

Re: Panel improvements - 09/08/10 10:58

Dunno what you mean with the first question.. but..
placing a Panel to a position, includign screen_size.. is possible..

panel.pos_x = something + screen_size.x
panel.pos_y = something + screen_size.y

Does the Job very well...
Posted By: FlorianP

Re: Panel improvements - 09/08/10 15:30

Sorry, that was probably my fault.
I forget about the standard answer on this section: 'This feature is already available - you just need to write your own engine'

With mentioned flags you could set a panelposition directly in its constructor without having to get much less maintainable code that resets the position after every change of the window size. And yet these flags should be very easy to implement.
© 2024 lite-C Forums