Link: Interface Object
DOCUMENTATION YEAH!!!!
IMPORTANT NOTE: Leaving the arguments blank in the Parameter Proc called will make the proc return the
value of the parameter of the control
IMPORTANT NOTE 2: The return values are going to be either numbers, text, or a boolean(true or false, 0 or 1). So calling Control.FontSize() will return a number.
Naming Convention For Parameter's Proc:
The naming convention used isn't very complicated. All spaces and dashes(-) are removed,
instead the character that comes after them are capitalized. The first letter of the paremeter
is also capitalized. So to change the text on a label you would do something like so:
var/LabelControl/L = new("default.label1", client)
L.Text("blah")//sets the text to "blah"
var/v = L.Text()//L.Text() returns the label's text and sets the variable 'v' to the labe's text
Control Types:
CONTROL - Highest level of controls, does not include Macro or menu
MacroControl - Macros
MenuControl - Menus
LabelControl - Labels
BrowserControl - Browsers
WindowControl - Windows
TabControl - Tabs
ButtonControl - Buttons
InfoControl - Infos
InputControl - Inputs
OutputControl - Outputs
BarControl - Bars
ChildControl - Childs
GridControl - Grids
How it works:
- You may initialize a control by simply calling the bind(control, client) proc
The first argument is the control and the second is the client/mob(with a client)
- You can also initialize a control by supplying the arguments of bind in the control's
New proc e.g. var/LabelControl/L = new("somewindow.somecontrol", src)