Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_PlatformGridOverride.c
Go to the documentation of this file.
2{
3 [Attribute(uiwidget: UIWidgets.Flags, enums: ParamEnumArray.FromEnum(SCR_EPlatform))]
4 private SCR_EPlatform m_eOverrideOnPlatform;
5
6 [Attribute("1", params: "1 inf")]
7 protected int m_iColumnSpan;
8
9 [Attribute("1", params: "1 inf")]
10 protected int m_iRowSpan;
11
12 //------------------------------------------------------------------------------------------------
13 override void HandlerAttached (Widget w)
14 {
15 // Get current Platform in EPlatform enum
16 EPlatform currentPlatform = System.GetPlatform();
17
18 if ((m_eOverrideOnPlatform & (1 << currentPlatform)) != (1 << currentPlatform))
19 return;
20
21 GridSlot.SetColumnSpan(w, m_iColumnSpan);
22 GridSlot.SetRowSpan(w, m_iRowSpan);
23 }
24}
override void HandlerAttached(Widget w)
SCR_FieldOfViewSettings Attribute
EPlatform
Definition EPlatform.c:13