4 [
Attribute(
"<action name=\"ActionName\"/>", uiwidget: UIWidgets.LocaleEditBox)]
7 [
Attribute(uiwidget: UIWidgets.LocaleEditBox)]
10 [
Attribute(defvalue:
"{76A21E3BDBC15712}UI/layouts/Menus/FieldManual/Pieces/FieldManual_Piece_Keybind.layout", uiwidget: UIWidgets.EditBoxWithButton,
params:
"layout")]
11 ResourceName m_Layout;
14 override void CreateWidget(notnull Widget parent)
16 CreateWidget(parent,
true);
20 void CreateWidget(notnull Widget parent,
bool isLastElement)
22 Widget createdWidget =
GetGame().GetWorkspace().CreateWidgets(
m_Layout, parent);
26 TextWidget keybindWidget = TextWidget.Cast(createdWidget.FindAnyWidget(
"Keybind"));
28 keybindWidget.SetText(m_sKeybind);
30 TextWidget descriptionWidget = TextWidget.Cast(createdWidget.FindAnyWidget(
"Description"));
31 if (descriptionWidget)
37 Widget separator = createdWidget.FindAnyWidget(
"Separator");
39 separator.SetOpacity(0);