Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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 }
SCR_BaseContainerStaticTitleField
Attribute to manually set a static title.
Definition: Attributes.c:10
SCR_FieldManualPiece
Definition: SCR_FieldManualPiece.c:2
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_WidgetHelper
Definition: SCR_WidgetHelper.c:1
SCR_FieldManualPiece_LineBreak
Definition: SCR_FieldManualPiece_LineBreak.c:2
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