Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_PlayerCommandingConfigActionPair Managed SCR_BaseContainerLocalizedTitleField("m_sCommandName")
SCR_FieldOfViewSettings Attribute