Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TooltipAreaEditorUIComponent.c
Go to the documentation of this file.
1
2
4{
5 [Attribute()]
7
8 [Attribute()]
9 protected string m_sControllerWidgetName;
10
11 [Attribute()]
12 protected int m_iOffsetTop;
13
14 [Attribute()]
15 protected int m_iOffsetRight;
16
17 [Attribute()]
18 protected int m_iOffsetBottom;
19
20 [Attribute()]
21 protected int m_iOffsetLeft;
22
26
27 //------------------------------------------------------------------------------------------------
30 {
31 if (m_InputManager.IsUsingMouseAndKeyboard())
33 else
34 return m_ControllerWidget;
35 }
36
37 //------------------------------------------------------------------------------------------------
42 void GetOffsets(out int top, out int right, out int bottom, out int left)
43 {
44 top = m_iOffsetTop;
45 right = m_iOffsetRight;
46 bottom = m_iOffsetBottom;
47 left = m_iOffsetLeft;
48 }
49
50 //------------------------------------------------------------------------------------------------
57
58 //------------------------------------------------------------------------------------------------
59 protected void ClearAreaWidget(Widget w)
60 {
61 Widget child = w.GetChildren();
62 while (child)
63 {
64 child.RemoveFromHierarchy();
65 child = child.GetSibling();
66 }
67 }
68
69 //------------------------------------------------------------------------------------------------
71 {
72 m_InputManager = GetGame().GetInputManager();
73
76 Print(string.Format("Widget '%1' not found!", m_sMouseAndKeyboardWidgetName), LogLevel.NORMAL);
77
80 Print(string.Format("Widget '%1' not found!", m_sControllerWidgetName), LogLevel.NORMAL);
81 }
82}
ArmaReforgerScripted GetGame()
Definition game.c:1398
Input management system for user interactions.
void GetOffsets(out int top, out int right, out int bottom, out int left)
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
SCR_FieldOfViewSettings Attribute