About Store Forum Documentation Contact



Post Reply 
GuiObj Resize
Author Message
RedcrowProd Offline
Member

Post: #1
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 so i was wondering

thanks
(This post was last modified: 04-15-2017 09:34 PM by RedcrowProd.)
04-15-2017 09:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #3
RE: GuiObj Resize
kk thanks for the infos smile
04-16-2017 01:35 AM
Find all posts by this user Quote this message in a reply
Post Reply