v2 gui

Share your ideas as to how the documentation can be improved.
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

v2 gui

03 Aug 2021, 21:47

gui.add should note that it returns a guiControl obj

and somewhere should note that gui objs and guicontrol objs returned from .Add are "super global". i was surprised that those gui examples worked without needing to declare globals

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: v2 gui

03 Aug 2021, 23:23

it already says so:
Adds a control to the GUI window, and returns a GuiControl object

that's not something unique to GUIs. any global variable is accessible from anywhere for reading. "super-global" is no longer a thing
guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: v2 gui

04 Aug 2021, 00:03

swagfag wrote:
03 Aug 2021, 23:23
it already says so:
i'm dumb
swagfag wrote:
03 Aug 2021, 23:23
that's not something unique to GUIs. any global variable is accessible from anywhere for reading. "super-global" is no longer a thing
did not know that thanks. not sure i like this 'feature'


Return to “Suggestions on Documentation Improvements”

Who is online

Users browsing this forum: No registered users and 11 guests