The control returned to the plugin to be operated on and retrieve information from
More...
|
bool | HasInvoke (string name) |
| Determines whether this instance has a method that can be invoked given a name More...
|
|
void | Invoke (string name, params object[] args) |
| Invoke the specified method name with optional arguments More...
|
|
dynamic | GetDynamic () |
| Gets a dynamic version of the controller, invokeable directly More...
|
|
void | AddCallback (string name, BuiCallbackDelegate method) |
| Add a callback, by name, that the BUI script can call More...
|
|
void | AddCallback (IDictionary< string, BuiCallbackDelegate > methods) |
| Add a list of methods that the script can call More...
|
|
void | AddCallback< T > (T cls) |
| Add all methods in a class labeled with the BuiCallback Attribute More...
|
|
T | GetValue< T > (string name, T defaultValue=default(T), bool throwOnError=false) |
| Get a value of a property from the controller More...
|
|
void | SetValue< T > (string name, T value, bool throwOnError=true) |
| Sets the value of a property on the controller More...
|
|
bool | HasValue (string name) |
| Determines whether this instance has a property of the given name More...
|
|
void | Destroy () |
| Destroy the control More...
|
|
The control returned to the plugin to be operated on and retrieve information from
◆ AddCallback() [1/2]
Add a callback, by name, that the BUI script can call
- Parameters
-
◆ AddCallback() [2/2]
void pluginbase.Objects.UI.IBuiControl.AddCallback |
( |
IDictionary< string, BuiCallbackDelegate > |
methods | ) |
|
Add a list of methods that the script can call
- Parameters
-
◆ AddCallback< T >()
Add all methods in a class labeled with the BuiCallback Attribute
- Parameters
-
- Template Parameters
-
◆ Destroy()
void pluginbase.Objects.UI.IBuiControl.Destroy |
( |
| ) |
|
◆ GetDynamic()
dynamic pluginbase.Objects.UI.IBuiControl.GetDynamic |
( |
| ) |
|
Gets a dynamic version of the controller, invokeable directly
- Returns
- The dynamic controller
◆ GetValue< T >()
T pluginbase.Objects.UI.IBuiControl.GetValue< T > |
( |
string |
name, |
|
|
T |
defaultValue = default(T) , |
|
|
bool |
throwOnError = false |
|
) |
| |
Get a value of a property from the controller
- Returns
- The value.
- Parameters
-
name | Name of the property |
defaultValue | Default value if we cant get the property value |
throwOnError | If set to true throw on error. |
- Template Parameters
-
T | The type of the property |
◆ HasInvoke()
bool pluginbase.Objects.UI.IBuiControl.HasInvoke |
( |
string |
name | ) |
|
Determines whether this instance has a method that can be invoked given a name
- Returns
true
if this instance has invoke the specified name; otherwise, false
.
- Parameters
-
◆ HasValue()
bool pluginbase.Objects.UI.IBuiControl.HasValue |
( |
string |
name | ) |
|
Determines whether this instance has a property of the given name
- Returns
true
if this instance has value the specified name; otherwise, false
.
- Parameters
-
◆ Invoke()
void pluginbase.Objects.UI.IBuiControl.Invoke |
( |
string |
name, |
|
|
params object [] |
args |
|
) |
| |
Invoke the specified method name with optional arguments
- Parameters
-
◆ SetValue< T >()
void pluginbase.Objects.UI.IBuiControl.SetValue< T > |
( |
string |
name, |
|
|
T |
value, |
|
|
bool |
throwOnError = true |
|
) |
| |
Sets the value of a property on the controller
- Parameters
-
name | Name of the property |
value | Value |
throwOnError | If set to true throw on error. |
- Template Parameters
-
The documentation for this interface was generated from the following file: