Arma Reforger Script API
|
Public Member Functions | |
override void | OnMenuOpen (SCR_ConfigurableDialogUiPreset preset) |
Called last of all, after all the initialization of main element done. | |
override void | OnMenuClose () |
override void | OnConfirm () |
override void | OnCancel () |
void | Init (Room room, SCR_EJoinFailUI mode, MissionWorkshopItem scenario, ScriptInvokerVoid onFavoritesResponse=null) |
void | UpdateInfo () |
void | SetScenarioImage (MissionWorkshopItem scenario) |
ScriptInvokerRoom | GetOnRetryFullServerJoin () |
ScriptInvokerRoom | GetOnLeaveQueueRequest () |
ScriptInvokerVoid | GetOnFavorite () |
Public Member Functions inherited from SCR_ConfigurableDialogUi | |
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 () |
void | OnMenuClose () |
Static Protected Attributes | |
const string | WIDGET_BACKGROUND_IMAGE = "BackgroundImageBackend" |
const string | WIDGET_SIDE_SPINNER = "SideSpinner" |
const string | INPUT_BUTTON_FIELD_MANUAL = "FieldManual" |
const string | INPUT_BUTTON_FAVORITES = "Favorites" |
const string | MOUSE_BUTTON_FAVORITES = "FavoriteButton" |
const int | ENQUEUED_TIME_UPDATE_FREQUENCY = 1000 |
const string | MESSAGE_SERVER_FULL = "#AR-ServerBrowser_FullServer" |
const string | MESSAGE_SERVER_POPULATION = "#AR-Scenario_Players" |
const string | MESSAGE_QUEUE_FULL = "#AR-ServerQueue_QueueFull_Header" |
const string | MESSAGE_QUEUE_DISABLED = "#AR-ServerQueue_QueueDisabled_Header" |
const string | MESSAGE_QUEUE_POPULATION = "#AR-ServerQueue_PlayersInQueue" |
const string | MESSAGE_QUEUE_MAX_SIZE = "#AR-ServerQueue_MaxSize" |
const string | MESSAGE_ENQUEUED = "#AR-ServerQueue_Enqueued_Header" |
const string | MESSAGE_ENQUEUED_POSITION = "#AR-ServerQueue_CurrentPosition" |
const string | MESSAGE_QUEUE_WAIT_TIME = "#AR-ServerQueue_AvgWaitTime" |
const string | MESSAGE_QUEUE_EXPLANATION = "#AR-ServerQueue_Enqueued_Message" |
const string | MESSAGE_QUEUE_EXPLANATION_TIME = "#AR-ServerQueue_Enqueued_Message_Time" |
const string | LABEL_LEAVE_QUEUE = "#AR-ServerQueue_LeaveQueue_Button" |
const string | LABEL_CANCEL = "#AR-Workshop_ButtonCancel" |
Static Protected Attributes inherited from SCR_ConfigurableDialogUi | |
static SCR_ConfigurableDialogUi | m_CurrentDialog |
Additional Inherited Members | |
Static Public Member Functions inherited from SCR_ConfigurableDialogUi | |
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) |
Public Attributes inherited from SCR_ConfigurableDialogUi | |
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 Public Attributes inherited from SCR_ConfigurableDialogUi | |
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 Protected Member Functions inherited from SCR_ConfigurableDialogUi | |
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. | |
|
protected |
ScriptInvokerVoid SCR_ServerFullDialog.GetOnFavorite | ( | ) |
ScriptInvokerRoom SCR_ServerFullDialog.GetOnLeaveQueueRequest | ( | ) |
ScriptInvokerRoom SCR_ServerFullDialog.GetOnRetryFullServerJoin | ( | ) |
void SCR_ServerFullDialog.Init | ( | Room | room, |
SCR_EJoinFailUI | mode, | ||
MissionWorkshopItem | scenario, | ||
ScriptInvokerVoid | onFavoritesResponse = null |
||
) |
override void SCR_ServerFullDialog.OnCancel | ( | ) |
Implements SCR_ConfigurableDialogUi.
override void SCR_ServerFullDialog.OnConfirm | ( | ) |
Implements SCR_ConfigurableDialogUi.
|
protected |
|
protected |
|
protected |
override void SCR_ServerFullDialog.OnMenuClose | ( | ) |
Implements SCR_ConfigurableDialogUi.
override void SCR_ServerFullDialog.OnMenuOpen | ( | SCR_ConfigurableDialogUiPreset | preset | ) |
Called last of all, after all the initialization of main element done.
Here you can perform custom initialization.
Implements SCR_ConfigurableDialogUi.
|
protected |
|
protected |
|
protected |
|
protected |
void SCR_ServerFullDialog.SetScenarioImage | ( | MissionWorkshopItem | scenario | ) |
|
protected |
|
protected |
void SCR_ServerFullDialog.UpdateInfo | ( | ) |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |