|
| override void | HandlerAttached (Widget w) |
| |
| SCR_InputButtonComponent | CreateButton (ResourceName layout, string tag, string label, string action, SCR_EDynamicFooterButtonAlignment alignment=0, bool visible=true) |
| |
| SCR_InputButtonComponent | CreateButtonAtPosition (ResourceName layout, string tag, string label, string action, int position, SCR_EDynamicFooterButtonAlignment alignment=0, bool visible=true) |
| |
| void | RegisterButton (SCR_InputButtonComponent button) |
| | Caches a button and binds the invoker. Uses the button widget's name as a tag.
|
| |
| SCR_InputButtonComponent | FindButton (string tag) |
| | Returns a button with given tag.
|
| |
| string | GetButtonTag (SCR_InputButtonComponent button) |
| | Returns a button's tag.
|
| |
| bool | RemoveButton (string tag) |
| | Removes an existing button.
|
| |
| void | ClearButtons () |
| | Removes all buttons.
|
| |
| array< SCR_InputButtonComponent > | GetButtonsInFooter (SCR_EDynamicFooterButtonAlignment alignment) |
| | Returns all the buttons that are direct children of the left or right footer.
|
| |
| Widget | GetLeftFooter () |
| |
| Widget | GetRightFooter () |
| |
| ScriptInvokerString | GetOnButtonActivated () |
| | Provides the button's name as a tag to easily identify which button was pressed.
|
| |
| override bool | OnClick (Widget w, int x, int y, int button) |
| |
| Widget | GetRootWidget () |
| |
| bool | IsVisible () |
| |
|
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
| |
◆ ClearButtons()
| void SCR_DynamicFooterComponent.ClearButtons |
( |
| ) |
|
◆ CreateButton()
| SCR_InputButtonComponent SCR_DynamicFooterComponent.CreateButton |
( |
ResourceName | layout, |
|
|
string | tag, |
|
|
string | label, |
|
|
string | action, |
|
|
SCR_EDynamicFooterButtonAlignment | alignment = 0, |
|
|
bool | visible = true ) |
Decide wrapper layout
Create new button
Button setup
Make sure the right footer is in the correct position if the layout has it as a child of the left footer
◆ CreateButtonAtPosition()
| SCR_InputButtonComponent SCR_DynamicFooterComponent.CreateButtonAtPosition |
( |
ResourceName | layout, |
|
|
string | tag, |
|
|
string | label, |
|
|
string | action, |
|
|
int | position, |
|
|
SCR_EDynamicFooterButtonAlignment | alignment = 0, |
|
|
bool | visible = true ) |
Decide wrapper layout
Adjust existing buttons' z order to insert new one
Create new button and set it's position
Make sure the right footer is in the correct position if the layout has it as a child of the left footer
◆ FindButton()
Returns a button with given tag.
◆ FindChildrenButtons()
| static array< SCR_InputButtonComponent > SCR_DynamicFooterComponent.FindChildrenButtons |
( |
notnull Widget | w, |
|
|
bool | searchImmediateChildrenOnly = true ) |
|
static |
◆ FindComponent()
◆ FindComponentInHierarchy()
◆ GetButtonsInFooter()
| array< SCR_InputButtonComponent > SCR_DynamicFooterComponent.GetButtonsInFooter |
( |
SCR_EDynamicFooterButtonAlignment | alignment | ) |
|
Returns all the buttons that are direct children of the left or right footer.
◆ GetButtonTag()
◆ GetLeftFooter()
| Widget SCR_DynamicFooterComponent.GetLeftFooter |
( |
| ) |
|
◆ GetOnButtonActivated()
| ScriptInvokerString SCR_DynamicFooterComponent.GetOnButtonActivated |
( |
| ) |
|
Provides the button's name as a tag to easily identify which button was pressed.
◆ GetRightFooter()
| Widget SCR_DynamicFooterComponent.GetRightFooter |
( |
| ) |
|
◆ HandlerAttached()
| override void SCR_DynamicFooterComponent.HandlerAttached |
( |
Widget | w | ) |
|
◆ RegisterButton()
Caches a button and binds the invoker. Uses the button widget's name as a tag.
◆ RemoveButton()
| bool SCR_DynamicFooterComponent.RemoveButton |
( |
string | tag | ) |
|
Removes an existing button.
◆ m_Buttons
◆ m_fPadding
| float SCR_DynamicFooterComponent.m_fPadding |
|
protected |
◆ m_OnButtonActivated
| ref ScriptInvokerString SCR_DynamicFooterComponent.m_OnButtonActivated |
|
protected |
◆ m_sLeftFooter
| string SCR_DynamicFooterComponent.m_sLeftFooter |
|
protected |
◆ m_sRightFooter
| string SCR_DynamicFooterComponent.m_sRightFooter |
|
protected |
◆ m_wLeftFooter
| Widget SCR_DynamicFooterComponent.m_wLeftFooter |
|
protected |
◆ m_wRightFooter
| Widget SCR_DynamicFooterComponent.m_wRightFooter |
|
protected |
The documentation for this interface was generated from the following file:
- Game/UI/Menu/SCR_DynamicFooterComponent.c