Canvas GUI API: Difference between revisions

Jump to navigation Jump to search
no edit summary
(add widgets)
No edit summary
Line 69: Line 69:


Aparently this method is called on events like mouse move/click so each widget can show an appropriate reaction.
Aparently this method is called on events like mouse move/click so each widget can show an appropriate reaction.
== Config ==
Trivial container class to store (key,value) pairs
=== new: func(cfg) ===
'''cfg:''' hash, used to initialize the config object data
'''returns:''' object
=== get: func(key, default = nil) ===
'''returns:''' the value for key or default if that one is nil
=== set: func(key, value) ===
'''returns:''' me


== DefaultStyle.widgets.button  ==
== DefaultStyle.widgets.button  ==
252

edits

Navigation menu