Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_TimePresetsAttributeUIComponent.c
Go to the documentation of this file.
1
class
SCR_TimePresetsAttributeUIComponent
:
SCR_ButtonBoxAttributeUIComponent
2
{
3
protected
bool
m_bIsReseting
=
false
;
4
5
override
void
SetFromVar
(
SCR_BaseEditorAttributeVar
var)
6
{
7
if
(!var)
8
return
;
9
10
if
(!
m_bButtonValueInitCalled
)
11
super.SetFromVar(var);
12
else
//Time slider sets is changed thus setting the button disabled. This will set it enabled again on reset.
13
GetGame
().GetCallqueue().CallLater(
DelayedReset
, 1,
false
, var);
14
}
15
16
protected
void
DelayedReset
(
SCR_BaseEditorAttributeVar
var)
17
{
18
m_bIsReseting
=
true
;
19
m_ToolBoxComponent
.SetItemSelected(var.
GetInt
(),
true
);
20
m_bIsReseting
=
false
;
21
}
22
23
override
bool
OnChangeInternal
(
Widget
w,
int
x,
int
y,
bool
finished)
24
{
25
if
(
m_bIsReseting
)
26
return
false
;
27
else
28
return
super.OnChangeInternal(w, x, y, finished);
29
}
30
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::GetInt
int GetInt()
Definition
SCR_BaseEditorAttributeVar.c:20
SCR_ButtonBoxAttributeUIComponent
Definition
SCR_ButtonBoxAttributeUIComponent.c:4
SCR_ButtonBoxAttributeUIComponent::m_ToolBoxComponent
SCR_ToolboxComponent m_ToolBoxComponent
Definition
SCR_ButtonBoxAttributeUIComponent.c:23
SCR_ButtonBoxAttributeUIComponent::m_bButtonValueInitCalled
bool m_bButtonValueInitCalled
Definition
SCR_ButtonBoxAttributeUIComponent.c:27
SCR_TimePresetsAttributeUIComponent
Definition
SCR_TimePresetsAttributeUIComponent.c:2
SCR_TimePresetsAttributeUIComponent::DelayedReset
void DelayedReset(SCR_BaseEditorAttributeVar var)
Definition
SCR_TimePresetsAttributeUIComponent.c:16
SCR_TimePresetsAttributeUIComponent::SetFromVar
override void SetFromVar(SCR_BaseEditorAttributeVar var)
Definition
SCR_TimePresetsAttributeUIComponent.c:5
SCR_TimePresetsAttributeUIComponent::m_bIsReseting
bool m_bIsReseting
Definition
SCR_TimePresetsAttributeUIComponent.c:3
SCR_TimePresetsAttributeUIComponent::OnChangeInternal
override bool OnChangeInternal(Widget w, int x, int y, bool finished)
Definition
SCR_TimePresetsAttributeUIComponent.c:23
Widget
Definition
Widget.c:13
scripts
Game
Editor
UI
Components
Attributes
SCR_TimePresetsAttributeUIComponent.c
Generated by
1.17.0