|
Arma Reforger Script API
|
Public Member Functions | |
| override void | HandlerAttached (Widget w) |
| void | Init () |
| override void | HandlerDeattached (Widget w) |
| void | CreateTab (SCR_TabViewContent content) |
| void | FocusFirstWidget (Widget w) |
| void | ShowIcon (int entry, bool show) |
| bool | IsIconShown (int entry) |
| Widget | GetEntryIcon (int entry) |
| SCR_TabViewContent | GetEntryContent (int index) |
| array< ref SCR_TabViewContent > | GetContents () |
| SCR_TabViewContent | GetContent (int index) |
| Widget | GetContentWidget (int index) |
| void | ShowTab (int i, bool callAction=true, bool playSound=true) |
| void | ShowTabByIdentifier (string identifier, bool callAction=true, bool playSound=true) |
| int | GetShownTab () |
| int | GetTabCount () |
| void | AddTab (ResourceName layout, string content, bool enabled=true, ResourceName tabImage=string.Empty, ResourceName iconLayout=string.Empty, float width=32, float height=32, string contentParam1=string.Empty, string contentParam2=string.Empty, string identifier=string.Empty) |
| void | RemoveTab (int index) |
| void | RemoveTabByIdentifier (string identifier) |
| void | AddContentElement (SCR_TabViewContent content) |
| void | ShowTabText (int index, bool show, int buttonWidth=-1) |
| void | ShowAllTabsText (bool show, int buttonWidth=-1, bool ignoreSelected=true) |
| void | SetTabText (int index, string text, string textParam1=string.Empty, string textParam2=string.Empty) |
| void | SetTabImage (int index, ResourceName tabImage) |
| void | ShowImage (int index, bool show) |
| int | GetNextValidItem (bool toLeft) |
| void | EnableTab (int tabIndex, bool enable, bool animate=true) |
| void | EnableAllTabs (bool enable, bool ignoreCurrentActive=true, bool animate=true) |
| void | SetTabVisible (int tabIndex, bool visible, bool animate=true) |
| void | Enable (bool enable) |
| bool | IsTabEnabled (int tabIndex) |
| void | SetCanNavigate (bool isAllowed) |
| bool | GetCanNavigate () |
| void | SetListenToActions (bool isAllowed) |
| bool | GetListenToActions () |
| SCR_TabViewContent | GetShownTabComponent () |
| void | SetEntryIconSize (int index, float width=-1, float height=-1) |
| void | SetPagingButtonsVisible (bool visible, bool animate=true) |
| ScriptInvokerTabViewIndex | GetOnChanged () |
| ScriptInvokerTabViewIndex | GetOnContentCreate () |
| ScriptInvokerTabView | GetOnContentShow () |
| ScriptInvokerTabView | GetOnContentHide () |
| ScriptInvokerTabView | GetOnContentRemove () |
| ScriptInvokerTabView | GetOnTabChange () |
| ScriptInvokerTabViewContentIndex | GetOnContentSelect () |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| override bool | OnClick (Widget w, int x, int y, int button) |
| Widget | GetRootWidget () |
| bool | IsVisible () |
Public Attributes | |
| int | m_iSelectedTab |
| ref Color | m_ColorBackground |
| bool | m_bKeepHiddenTabs |
| bool | m_bCreateAllTabsAtStart |
| bool | m_bManualInit |
| bool | m_bCycleMode |
| ResourceName | m_TabLayout |
| string | m_sActionLeft |
| string | m_sActionRight |
| float | m_fTabWidth |
| float | m_fTabWidthTextHidden |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
| ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Protected Member Functions | |
| void | CreateIcon (SCR_TabViewContent content) |
| void | CreateTabContent (SCR_TabViewContent content, int index) |
| void | SelectIndex (bool select, int i) |
| void | OnSelection (SCR_ButtonBaseComponent button) |
| void | OnTabButtonToggle (SCR_ButtonBaseComponent button, bool isToggled) |
| React to button toggle and propagete state to modular button This is simplest way in current state but should be changed to not really on tab view forcing the state. | |
| void | OnTabLeft () |
| void | OnTabRight () |
| void | UpdatePagingButtons (bool animate=true) |
| Enable or disable paging buttons, if it's possible to page to the right or left. | |
| void | AddActionListeners () |
| void | RemoveActionListeners () |
Protected Attributes | |
| ref array< ref SCR_TabViewContent > | m_aElements |
| bool | m_ListenToActions |
| string | m_sSwitchSound |
| bool | m_bShowTextOnlyWhenSelectedTab |
| Widget | m_wButtons |
| Widget | m_wButtonBar |
| Widget | m_wContentOverlay |
| SCR_PagingButtonComponent | m_PagingLeft |
| SCR_PagingButtonComponent | m_PagingRight |
| ref ScriptInvokerTabViewIndex | m_OnChanged |
| ref ScriptInvokerTabViewIndex | m_OnContentCreate |
| ref ScriptInvokerTabView | m_OnContentShow |
| ref ScriptInvokerTabView | m_OnContentHide |
| ref ScriptInvokerTabView | m_OnContentRemove |
| ref ScriptInvokerTabView | m_OnTabChange |
| ref ScriptInvokerTabViewContentIndex | m_OnContentSelect |
Protected Attributes inherited from SCR_ScriptedWidgetComponent | |
| Widget | m_wRoot |
Static Protected Attributes | |
| const float | BUTTON_PADDING_RIGHT = 4 |
| const int | MANW_TAB_WIDTH = 270 |
| const string | MANW_IDENTIFIER = "MANW" |
Additional Inherited Members | |
Static Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
| static SCR_ScriptedWidgetComponent | GetComponent (TypeName componentType, string name, Widget parent, bool searchAllChildren=true) |
| Base method for component lookup through the widget library. | |
|
protected |
| void SCR_TabViewComponent.AddContentElement | ( | SCR_TabViewContent | content | ) |
| void SCR_TabViewComponent.AddTab | ( | ResourceName | layout, |
| string | content, | ||
| bool | enabled = true, | ||
| ResourceName | tabImage = string::Empty, | ||
| ResourceName | iconLayout = string::Empty, | ||
| float | width = 32, | ||
| float | height = 32, | ||
| string | contentParam1 = string::Empty, | ||
| string | contentParam2 = string::Empty, | ||
| string | identifier = string::Empty ) |
|
protected |
| void SCR_TabViewComponent.CreateTab | ( | SCR_TabViewContent | content | ) |
|
protected |
| void SCR_TabViewComponent.Enable | ( | bool | enable | ) |
| void SCR_TabViewComponent.EnableAllTabs | ( | bool | enable, |
| bool | ignoreCurrentActive = true, | ||
| bool | animate = true ) |
| void SCR_TabViewComponent.EnableTab | ( | int | tabIndex, |
| bool | enable, | ||
| bool | animate = true ) |
| void SCR_TabViewComponent.FocusFirstWidget | ( | Widget | w | ) |
| bool SCR_TabViewComponent.GetCanNavigate | ( | ) |
| SCR_TabViewContent SCR_TabViewComponent.GetContent | ( | int | index | ) |
| array< ref SCR_TabViewContent > SCR_TabViewComponent.GetContents | ( | ) |
| Widget SCR_TabViewComponent.GetContentWidget | ( | int | index | ) |
| SCR_TabViewContent SCR_TabViewComponent.GetEntryContent | ( | int | index | ) |
| Widget SCR_TabViewComponent.GetEntryIcon | ( | int | entry | ) |
| bool SCR_TabViewComponent.GetListenToActions | ( | ) |
| int SCR_TabViewComponent.GetNextValidItem | ( | bool | toLeft | ) |
| ScriptInvokerTabViewIndex SCR_TabViewComponent.GetOnChanged | ( | ) |
| ScriptInvokerTabViewIndex SCR_TabViewComponent.GetOnContentCreate | ( | ) |
| ScriptInvokerTabView SCR_TabViewComponent.GetOnContentHide | ( | ) |
| ScriptInvokerTabView SCR_TabViewComponent.GetOnContentRemove | ( | ) |
| ScriptInvokerTabViewContentIndex SCR_TabViewComponent.GetOnContentSelect | ( | ) |
| ScriptInvokerTabView SCR_TabViewComponent.GetOnContentShow | ( | ) |
| ScriptInvokerTabView SCR_TabViewComponent.GetOnTabChange | ( | ) |
| int SCR_TabViewComponent.GetShownTab | ( | ) |
| SCR_TabViewContent SCR_TabViewComponent.GetShownTabComponent | ( | ) |
| int SCR_TabViewComponent.GetTabCount | ( | ) |
| override void SCR_TabViewComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
| override void SCR_TabViewComponent.HandlerDeattached | ( | Widget | w | ) |
| void SCR_TabViewComponent.Init | ( | ) |
| bool SCR_TabViewComponent.IsIconShown | ( | int | entry | ) |
| bool SCR_TabViewComponent.IsTabEnabled | ( | int | tabIndex | ) |
|
protected |
|
protected |
React to button toggle and propagete state to modular button This is simplest way in current state but should be changed to not really on tab view forcing the state.
|
protected |
|
protected |
|
protected |
| void SCR_TabViewComponent.RemoveTab | ( | int | index | ) |
| void SCR_TabViewComponent.RemoveTabByIdentifier | ( | string | identifier | ) |
|
protected |
| void SCR_TabViewComponent.SetCanNavigate | ( | bool | isAllowed | ) |
| void SCR_TabViewComponent.SetEntryIconSize | ( | int | index, |
| float | width = -1, | ||
| float | height = -1 ) |
| void SCR_TabViewComponent.SetListenToActions | ( | bool | isAllowed | ) |
| void SCR_TabViewComponent.SetPagingButtonsVisible | ( | bool | visible, |
| bool | animate = true ) |
| void SCR_TabViewComponent.SetTabImage | ( | int | index, |
| ResourceName | tabImage ) |
| void SCR_TabViewComponent.SetTabText | ( | int | index, |
| string | text, | ||
| string | textParam1 = string::Empty, | ||
| string | textParam2 = string::Empty ) |
| void SCR_TabViewComponent.SetTabVisible | ( | int | tabIndex, |
| bool | visible, | ||
| bool | animate = true ) |
| void SCR_TabViewComponent.ShowAllTabsText | ( | bool | show, |
| int | buttonWidth = -1, | ||
| bool | ignoreSelected = true ) |
| void SCR_TabViewComponent.ShowIcon | ( | int | entry, |
| bool | show ) |
| void SCR_TabViewComponent.ShowImage | ( | int | index, |
| bool | show ) |
| void SCR_TabViewComponent.ShowTab | ( | int | i, |
| bool | callAction = true, | ||
| bool | playSound = true ) |
| void SCR_TabViewComponent.ShowTabByIdentifier | ( | string | identifier, |
| bool | callAction = true, | ||
| bool | playSound = true ) |
| void SCR_TabViewComponent.ShowTabText | ( | int | index, |
| bool | show, | ||
| int | buttonWidth = -1 ) |
|
protected |
Enable or disable paging buttons, if it's possible to page to the right or left.
|
staticprotected |
|
protected |
| bool SCR_TabViewComponent.m_bCreateAllTabsAtStart |
| bool SCR_TabViewComponent.m_bCycleMode |
| bool SCR_TabViewComponent.m_bKeepHiddenTabs |
| bool SCR_TabViewComponent.m_bManualInit |
|
protected |
| ref Color SCR_TabViewComponent.m_ColorBackground |
| float SCR_TabViewComponent.m_fTabWidth |
| float SCR_TabViewComponent.m_fTabWidthTextHidden |
| int SCR_TabViewComponent.m_iSelectedTab |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| string SCR_TabViewComponent.m_sActionLeft |
| string SCR_TabViewComponent.m_sActionRight |
|
protected |
| ResourceName SCR_TabViewComponent.m_TabLayout |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |