Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FieldManualPiece_Keybind.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseContainerLocalizedTitleField("m_sDescription", "Keybind: %1")]
3 {
4  [Attribute("<action name=\"ActionName\"/>", uiwidget: UIWidgets.LocaleEditBox)]
5  string m_sKeybind;
6 
7  [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
8  string m_sDescription;
9 
10  [Attribute(defvalue: "{76A21E3BDBC15712}UI/layouts/Menus/FieldManual/Pieces/FieldManual_Piece_Keybind.layout", uiwidget: UIWidgets.EditBoxWithButton, params: "layout")]
11  ResourceName m_Layout; // m_s
12 
13  //------------------------------------------------------------------------------------------------
14  override void CreateWidget(notnull Widget parent)
15  {
16  CreateWidget(parent, true);
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  void CreateWidget(notnull Widget parent, bool isLastElement)
21  {
22  Widget createdWidget = GetGame().GetWorkspace().CreateWidgets(m_Layout, parent);
23  if (!createdWidget)
24  return;
25 
26  TextWidget keybindWidget = TextWidget.Cast(createdWidget.FindAnyWidget("Keybind"));
27  if (keybindWidget)
28  keybindWidget.SetText(m_sKeybind);
29 
30  TextWidget descriptionWidget = TextWidget.Cast(createdWidget.FindAnyWidget("Description"));
31  if (descriptionWidget)
32  descriptionWidget.SetText(m_sDescription);
33 
34  if (!isLastElement)
35  return;
36 
37  Widget separator = createdWidget.FindAnyWidget("Separator");
38  if (separator)
39  separator.SetOpacity(0);
40  }
41 }
SCR_FieldManualPiece
Definition: SCR_FieldManualPiece.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_BaseContainerLocalizedTitleField
SCR_TabViewComponent SCR_ScriptedWidgetComponent SCR_BaseContainerLocalizedTitleField("m_sTabButtonContent")
Definition: SCR_TabViewComponent.c:963
SCR_FieldManualPiece_Keybind
Definition: SCR_FieldManualPiece_Keybind.c:2
m_Layout
ResourceName m_Layout
Definition: SCR_ActionsToolbarEditorUIComponent.c:6
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_sDescription
string m_sDescription
Definition: SCR_FlashlightComponent.c:3
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468