Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_StaticDataPageConfig.c
Go to the documentation of this file.
2{
3 [Attribute("{21EBD81BCE6E763B}UI/layouts/Gadgets/BallisticTable/BallisticTable_US_MortarManual.layout", UIWidgets.ResourceNamePicker, "Layout name", "layout", category: "Layouts")]
5
6 //------------------------------------------------------------------------------------------------
7 override void DrawPageData(notnull Widget root, notnull IEntity surfaceEntity, notnull SCR_DataDisplayGadgetComponent drawingGadget, int pageID)
8 {
9 Widget content = root.GetChildren();
10 if (content)
11 {
12 content.RemoveFromHierarchy();
13 delete content;
14 }
15
16 content = GetGame().GetWorkspace().CreateWidgets(m_sLayoutName, root);
17 if (!content)
18 return;
19
20 TextWidget pageNumber = TextWidget.Cast(root.FindAnyWidget(drawingGadget.PAGE_NUMBER_NAME));
21 if (pageNumber)
22 pageNumber.SetText(string.Format(drawingGadget.PAGE_NUMBER_FORMAT, (pageID + 1), drawingGadget.GetNumberOfPages()));
23 }
24}
class RestAPIHelper< JsonApiStruct T > content
ArmaReforgerScripted GetGame()
Definition game.c:1398
override void DrawPageData(notnull Widget root, notnull IEntity surfaceEntity, notnull SCR_DataDisplayGadgetComponent drawingGadget, int pageID)
SCR_FieldOfViewSettings Attribute