Arma Reforger Script API
|
Public Member Functions | |
override void | OnMenuOpen (SCR_ConfigurableDialogUiPreset preset) |
OVERRIDES. | |
void | SetSave (WorldSaveItem save) |
PUBLIC. | |
![]() | |
void | SCR_ScenarioConfirmationDialogUi (MissionWorkshopItem scenario, ScriptInvokerBool onFavoritesResponse=null) |
override void | OnMenuClose () |
override void | OnButtonPressed (SCR_InputButtonComponent button) |
override SCR_InputButtonComponent | CreateButton (SCR_ConfigurableDialogUiButtonPreset buttonPreset) |
MissionWorkshopItem | GetScenario () |
PUBLIC. | |
ScriptInvokerMissionWorkshopItem | GetOnFavorite () |
![]() | |
Widget | GetRootWidget () |
OverlayWidget | GetDialogBaseOverlay () |
Returns the base dialog overlay (the rectangle covered by the background). Useful for dialog wide darkening (e.g. by SCR_LoadingOverlay) | |
Widget | GetContentLayoutRoot () |
Returns the root of the content layout. | |
SCR_ConfigurableDialogUiPreset | GetDialogPreset () |
void | Close () |
void | SetTitle (string text) |
void | SetMessage (string text) |
void | SetMessageColor (Color color) |
TextWidget | GetMessageWidget () |
string | GetMessageStr () |
void | SetTitleIcon (ResourceName image, string imageName) |
Set title icons with custom image. | |
void | SetIconColor (Color color) |
Set title icons with custom image. | |
void | SetStyle (EConfigurableDialogStyle type) |
Sets colors based on style. | |
void | BindButtonConfirm (SCR_InputButtonComponent button) |
Allows to register a custom button to call OnConfirm (i.e. one not in the conf files but placed by hand in the layout) | |
void | BindButtonCancel (SCR_InputButtonComponent button) |
Allows to register a custom button to call OnCancel (i.e. one not in the conf files but placed by hand in the layout) | |
void | BindButtonGeneric (SCR_InputButtonComponent button, string tag=string.Empty) |
Allows to register a custom button to call OnButtonPressed (i.e. one not in the conf files but placed by hand in the layout). An empty tag will result in the widget's name being used instead. | |
SCR_InputButtonComponent | FindButton (string tag) |
Returns a button with given tag. | |
string | GetButtonTag (SCR_InputButtonComponent button) |
Returns a button's tag. | |
void | OnMenuUpdate (float tDelta) |
void | OnMenuFocusGained () |
void | OnMenuFocusLost () |
void | OnMenuShow () |
void | OnMenuHide () |
Protected Member Functions | |
void | FillSaveDetails () |
PROTECTED. | |
![]() | |
void | OnCommStatusCheckFinished (SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime) |
PROTECTED. | |
void | OnFavoritesButton () |
void | UpdateFavoriteWidgets (bool isFavorite) |
![]() | |
void | OnConfirm () |
void | OnCancel () |
void | Init (Widget root, SCR_ConfigurableDialogUiPreset preset, MenuBase proxyMenu) |
void | InitWidgets () |
void | Internal_Close () |
void | InitAttributedVariables () |
Verifies that all attributed variables are set up. | |
Additional Inherited Members | |
![]() | |
static SCR_ConfigurableDialogUi | CreateFromPreset (ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null) |
Creates a dialog from preset. | |
static SCR_ConfigurableDialogUi | GetCurrentDialog () |
static string | GetCurrentDialogTag () |
static bool | IsPresetValid (ResourceName presetsResourceName, string tag) |
![]() | |
MissionWorkshopItem | m_Scenario |
![]() | |
ref ScriptInvoker | m_OnConfirm = new ScriptInvoker() |
ref ScriptInvoker | m_OnCancel = new ScriptInvoker() |
ref ScriptInvoker | m_OnClose = new ScriptInvoker() |
ref ScriptInvoker | m_OnCloseStart = new ScriptInvoker() |
ref ScriptInvoker | m_OnButtonPressed = new ScriptInvoker() |
![]() | |
static const ResourceName | NAVIGATION_BUTTON_LAYOUT = "{87037226B1A2064B}UI/layouts/WidgetLibrary/Buttons/WLib_NavigationButtonSuperSmall.layout" |
static const string | BUTTON_CONFIRM = "confirm" |
static const string | BUTTON_CANCEL = "cancel" |
![]() | |
static SCR_ConfigurableDialogUi | CreateByPreset (SCR_ConfigurableDialogUiPreset preset, SCR_ConfigurableDialogUi customDialogObj=null) |
static Widget | GetContentWidget (Widget baseWidget) |
Returns the container in which to place the content layout. Container must be called ContentLayoutContainer. | |
![]() | |
static SCR_ConfigurableDialogUi | m_CurrentDialog |
|
protected |
PROTECTED.
Update visuals
Content layout
Source addon
Star button
Favorites widgets update
override void SCR_GMSaveDialog.OnMenuOpen | ( | SCR_ConfigurableDialogUiPreset | preset | ) |
OVERRIDES.
Implements SCR_ScenarioConfirmationDialogUi.
void SCR_GMSaveDialog.SetSave | ( | WorldSaveItem | save | ) |
PUBLIC.
|
protected |