Make LuaStyle.height/width readable
Posted: Fri Aug 09, 2019 12:42 pm
Currently, you can't read the actual width and height of a GuiElement. With the addition of moveable windows, it would be useful to know the actual sizes of your GuiElements (after stretching, squashing etc, which you can not really predict easily) to be able to set the .location of your windows properly. The LuaStyle.height/width attributes would be a perfect fit for this, as they are currently read only.
Now I don't know for sure how difficult this would be, but that data has to be available somewhere internally, to do auto_center and similar, and to display the size in the Ctrl-F6-debug mode. I would be fine with it only being available on frames, but all Elements would be cool.
Now I don't know for sure how difficult this would be, but that data has to be available somewhere internally, to do auto_center and similar, and to display the size in the Ctrl-F6-debug mode. I would be fine with it only being available on frames, but all Elements would be cool.