RedcrowProd
Member
|
GuiObj Resize
Hey,
i am trying to resize gui elements by themself ( so not using D.scale )
is there an easy way that i have missed ? or should i resize & move all elements ?
resize and move by delta*base size/pos works, just a lot more work ![pfft pfft](images/smilies/pfft.gif) so i was wondering
thanks
(This post was last modified: 04-15-2017 09:34 PM by RedcrowProd.)
|
|
04-15-2017 09:12 PM |
|
Esenthel
Administrator
|
RE: GuiObj Resize
what I do is:
#1 create
gui_obj.create(); <- here don't specify rectangle
#2 set size/position
gui_obj.rect(x*y+b...); <- here some formula based on various parameters
then I call #1 and #2 after
I also call #2 when I need to resize the gui objects if some parameter changes
D.scale should be used to scale everything together
|
|
04-15-2017 11:21 PM |
|
RedcrowProd
Member
|
RE: GuiObj Resize
kk thanks for the infos
|
|
04-16-2017 01:35 AM |
|