Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FieldManualPiece_LineBreak.c
Go to the documentation of this file.
1[BaseContainerProps(insertable: false), SCR_BaseContainerStaticTitleField("<br/>")]
3{
4 protected const ResourceName LAYOUT = "{D06D740EB045FC14}UI/layouts/Menus/FieldManual/Pieces/FieldManual_Piece_Text.layout";
5
6 override void CreateWidget(notnull Widget parent)
7 {
8 Widget createdWidget = GetGame().GetWorkspace().CreateWidgets(LAYOUT, parent);
9 if (!createdWidget)
10 {
11 Print(string.Format("created widget (%1) was null | " + FilePath.StripPath(__FILE__) + ":" + __LINE__, LAYOUT), LogLevel.DEBUG);
12 return;
13 }
14
15 TextWidget textWidget = TextWidget.Cast(createdWidget);
16 if (!textWidget)
17 {
18 textWidget = TextWidget.Cast(SCR_WidgetHelper.GetWidgetOrChild(createdWidget, "Text"));
19 }
20
21 if (!textWidget)
22 {
23 Print("created widget could not be set text | " + FilePath.StripPath(__FILE__) + ":" + __LINE__, LogLevel.DEBUG);
24 return;
25 }
26
27 textWidget.SetText("");
28 }
29}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Attribute to manually set a static title.
Definition Attributes.c:11
override void CreateWidget(notnull Widget parent)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14