Arma Reforger Script API
|
Component for addons presets submenu behavior. More...
Public Member Functions | |
override void | OnMenuFocusGained () |
override void | HandlerAttached (Widget w) |
override void | HandlerDeattached (Widget w) |
override void | OnTabShow () |
override void | OnTabCreate (Widget menuRoot, ResourceName buttonsLayout, int index) |
Public Member Functions inherited from SCR_SubMenuBase | |
void | OnMenuFocusGained () |
void | OnMenuFocusLost () |
void | OnMenuShow () |
void | OnMenuHide () |
void | OnMenuUpdate (float tDelta) |
void | OnTabCreate (Widget menuRoot, ResourceName buttonsLayout, int index) |
void | OnTabShow () |
void | OnTabHide () |
void | OnTabRemove () |
void | OnTabChange () |
bool | GetShown () |
int | GetIndex () |
ScriptInvokerVoid | GetOnRequestCloseMenu () |
ScriptInvokerInt2 | GetOnRequestTabChange () |
Public Member Functions inherited from SCR_ScriptedWidgetComponent | |
override void | HandlerAttached (Widget w) |
override bool | OnClick (Widget w, int x, int y, int button) |
Widget | GetRootWidget () |
bool | IsVisible () |
Protected Member Functions | |
void | UpdatePresetListbox () |
Display list of current addon presets. | |
bool | HasAllPresetAddons (SCR_AddonLinePresetComponent line) |
Return true if all mods are available offline. | |
bool | CanCreatePreset (SCR_WorkshopAddonPreset preset) |
Show error if preset can't be created. | |
bool | IsPresetAddonsListEmpty (SCR_WorkshopAddonPreset preset) |
Show no mods enabled error is no mods is selected for preset. | |
bool | IsAddonsListEmpty (array< ref SCR_WorkshopItem > items) |
Show no mods enabled error is no mods is selected for preset. | |
bool | IsNameValid (string name) |
Show invalid name error dialog. | |
void | OnUsedPresetChanged (string name) |
bool | IsNameUnique (SCR_WorkshopAddonPreset preset, string name) |
Show override dialog if name is reapeted in addon preset list. | |
void | CreateNewPreset () |
Create new preset with curent mods. | |
void | Callback_OnNameNewPreset (SCR_AddonLinePresetComponent line, string name) |
void | Callback_OnNewPresetFocusLost (SCR_AddonLinePresetComponent line) |
void | SetupLineCreationState (SCR_AddonLinePresetComponent line) |
void | ClearLineCreationState (SCR_AddonLinePresetComponent line) |
void | SetExistingLinesEnabled (bool enabled) |
void | LoadPreset (SCR_AddonLinePresetComponent line) |
Activate mods of given preset. | |
void | OverridePreset (SCR_AddonLinePresetComponent line) |
Change mod setup of given preset. | |
void | Callback_OnConfirmOverride (SCR_WorkshopPresetConfirmDialog dlg) |
void | DeletePreset (SCR_AddonLinePresetComponent line) |
Delete given preset. | |
void | Callback_OnConfirmDelete (SCR_WorkshopPresetConfirmDialog dlg) |
void | RenamePreset (SCR_AddonLinePresetComponent line, string name) |
Change name of given preset. | |
void | OnNameEditStart (SCR_AddonLinePresetComponent line) |
void | OnLineFocus (SCR_AddonLinePresetComponent line) |
void | OnLineButtonClick (SCR_AddonLinePresetComponent line) |
Call this when any inner buttons is clicked. | |
SCR_AddonLinePresetComponent | FocusedPresetLine () |
Return addon preset line component of currently focused widget if has any. | |
void | OnNewPresetFocus () |
void | OnNewPresetFocusLost () |
void | OnLoadButton () |
void | OnOverrideButton () |
void | OnRenameButton () |
void | OnDeleteButton () |
void | SetToFocusPreset (SCR_AddonLinePresetComponent line, bool maintainIndex=false) |
void | HandleFocus () |
Protected Member Functions inherited from SCR_SubMenuBase | |
void | ShowNavigationButtons (bool show) |
void | FlagNavigationButtonVisibility (SCR_InputButtonComponent button, bool show) |
void | SetNavigationButtonVisibile (SCR_InputButtonComponent button, bool show, bool animate=false) |
SCR_InputButtonComponent | CreateNavigationButton (string actionName, string label, bool rightFooter=false, bool show=true) |
void | RequestCloseMenu () |
void | RequestTabChange (int newTabIndex) |
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. | |
Public Attributes inherited from SCR_ScriptedWidgetComponent | |
ref ScriptInvoker | m_OnClick = new ScriptInvoker |
Component for addons presets submenu behavior.
Player can display, save, override and delete mod presets (setups). This component can be use later on in addons manager tool dialog.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Show error if preset can't be created.
|
protected |
|
protected |
Create new preset with curent mods.
|
protected |
Delete given preset.
|
protected |
Return addon preset line component of currently focused widget if has any.
|
protected |
override void SCR_AddonsPresetsSubMenuComponent.HandlerAttached | ( | Widget | w | ) |
Implements SCR_ScriptedWidgetComponent.
override void SCR_AddonsPresetsSubMenuComponent.HandlerDeattached | ( | Widget | w | ) |
|
protected |
Return true if all mods are available offline.
|
protected |
Show no mods enabled error is no mods is selected for preset.
|
protected |
Show override dialog if name is reapeted in addon preset list.
|
protected |
Show invalid name error dialog.
|
protected |
Show no mods enabled error is no mods is selected for preset.
|
protected |
Activate mods of given preset.
|
protected |
|
protected |
Call this when any inner buttons is clicked.
|
protected |
|
protected |
override void SCR_AddonsPresetsSubMenuComponent.OnMenuFocusGained | ( | ) |
Implements SCR_SubMenuBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
override void SCR_AddonsPresetsSubMenuComponent.OnTabCreate | ( | Widget | menuRoot, |
ResourceName | buttonsLayout, | ||
int | index | ||
) |
Implements SCR_SubMenuBase.
override void SCR_AddonsPresetsSubMenuComponent.OnTabShow | ( | ) |
Implements SCR_SubMenuBase.
|
protected |
|
protected |
Change mod setup of given preset.
|
protected |
Change name of given preset.
|
protected |
|
protected |
|
protected |
|
protected |
Display list of current addon presets.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |