|
A control which adds several reactions to other GUIs via callbacks. More...
Callbacks | |
| |
bool | onChildAdded |
Enables/disables onChildAdded callback. | |
bool | onChildRemoved |
Enables/disables onChildRemoved callback. | |
bool | onChildResized |
Enables/disables onChildResized callback. | |
bool | onGainFirstResponder |
Enables/disables onGainFirstResponder callback. | |
bool | onLoseFirstResponder |
Enables/disables onLoseFirstResponder callback. | |
bool | onParentResized |
Enables/disables onParentResized callback. | |
bool | onResize |
Enables/disables onResize callback. | |
void | onChildAdded (SimObjectId ID, SimObjectId childID) |
Called when a child is added to this GUI. | |
void | onChildRemoved (SimObjectId ID, SimObjectId childID) |
Called when a child is removed from this GUI. | |
void | onChildResized (SimObjectId ID, SimObjectId childID) |
Called when a child is of this GUI is being resized. | |
void | onGainFirstResponder (SimObjectId ID) |
Called when this GUI gains focus. | |
void | onLoseFirstResponder (SimObjectId ID) |
Called when this GUI loses focus. | |
void | onParentResized (SimObjectId ID) |
Called when this GUI's parent is resized. | |
void | onResize (SimObjectId ID) |
Called when this GUI is resized. |
A control which adds several reactions to other GUIs via callbacks.
GuiScriptNotifyCtrl does not exist to render anything. When parented or made a child of other controls, you can toggle flags on or off to make use of its specialized callbacks. Normally these callbacks are used as utility functions by the GUI Editor, or other container classes. However, for very fancy GUI work where controls interact with each other constantly, this is a handy utility to make use of.
// Common member fields left out for sake of example new GuiScriptNotifyCtrl() { onChildAdded = "0"; onChildRemoved = "0"; onChildResized = "0"; onParentResized = "0"; };
void GuiScriptNotifyCtrl::onChildAdded | ( | SimObjectId | ID, | |
SimObjectId | childID | |||
) |
Called when a child is added to this GUI.
ID | Unique object ID assigned when created (this in script). | |
childID | Unique object ID of child being added. |
void GuiScriptNotifyCtrl::onChildRemoved | ( | SimObjectId | ID, | |
SimObjectId | childID | |||
) |
Called when a child is removed from this GUI.
ID | Unique object ID assigned when created (this in script). | |
childID | Unique object ID of child being removed. |
void GuiScriptNotifyCtrl::onChildResized | ( | SimObjectId | ID, | |
SimObjectId | childID | |||
) |
Called when a child is of this GUI is being resized.
ID | Unique object ID assigned when created (this in script). | |
childID | Unique object ID of child being resized. |
void GuiScriptNotifyCtrl::onGainFirstResponder | ( | SimObjectId | ID | ) |
Called when this GUI gains focus.
ID | Unique object ID assigned when created (this in script). |
void GuiScriptNotifyCtrl::onLoseFirstResponder | ( | SimObjectId | ID | ) |
Called when this GUI loses focus.
ID | Unique object ID assigned when created (this in script). |
void GuiScriptNotifyCtrl::onParentResized | ( | SimObjectId | ID | ) |
Called when this GUI's parent is resized.
ID | Unique object ID assigned when created (this in script). |
void GuiScriptNotifyCtrl::onResize | ( | SimObjectId | ID | ) |
Called when this GUI is resized.
ID | Unique object ID assigned when created (this in script). |
Enables/disables onChildAdded callback.
Enables/disables onChildRemoved callback.
Enables/disables onChildResized callback.
Enables/disables onGainFirstResponder callback.
Enables/disables onLoseFirstResponder callback.
Enables/disables onParentResized callback.
Enables/disables onResize callback.