Jump to content

Recommended Posts

self.root = self:AddChild(Widget("root"))

self, it references the widget. 
.root, creates a new index.
= assigns the right side into the index.
self, references the widget,
:AddChild, adds the first argument as a widget.
Widget, reference to the base widget element.
("root"), the name of the widget which is the first argument.

self.hand_inv = self.root:AddChild(Widget("hand_inv"))

Same thing as the above, except instead of root and "root" it is hand_inv and "hand_inv", and the child is being added into the previously created widget.

  • Like 3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...