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_RadialMenuGameModeComponent.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/UI/RadialMenu"
, description:
"Common radial menu."
)]
2
class
SCR_RadialMenuGameModeComponentClass
:
ScriptComponentClass
3
{
4
}
5
6
class
SCR_RadialMenuGameModeComponent :
ScriptComponent
7
{
8
[
Attribute
()]
9
protected
ref
SCR_RadialMenu
m_Menu;
10
11
//------------------------------------------------------------------------------------------------
14
void
Update
(
float
timeSlice)
15
{
16
if
(!m_Menu)
17
{
18
Print
(
"[SCR_RadialMenuGameModeComponent] - Radial menu not assigned! Can't update!"
,
LogLevel
.WARNING);
19
return
;
20
}
21
22
m_Menu.
Update
(timeSlice);
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
void
OnPostInit
(
IEntity
owner)
27
{
28
ConnectToRadialMenuSystem
();
29
}
30
31
override
void
OnDelete
(
IEntity
owner)
32
{
33
DisconnectFromRadialMenuSystem
();
34
}
35
36
//------------------------------------------------------------------------------------------------
38
SCR_RadialMenu
GetMenu
()
39
{
40
return
m_Menu;
41
}
42
43
protected
void
ConnectToRadialMenuSystem
()
44
{
45
World
world =
GetOwner
().
GetWorld
();
46
RadialMenuSystem
updateSystem =
RadialMenuSystem
.Cast(world.FindSystem(
RadialMenuSystem
));
47
if
(!updateSystem)
48
return
;
49
50
updateSystem.
Register
(
this
);
51
}
52
53
protected
void
DisconnectFromRadialMenuSystem
()
54
{
55
World
world =
GetOwner
().
GetWorld
();
56
RadialMenuSystem
updateSystem =
RadialMenuSystem
.Cast(world.FindSystem(
RadialMenuSystem
));
57
if
(!updateSystem)
58
return
;
59
60
updateSystem.
Unregister
(
this
);
61
}
62
}
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
GetMenu
SCR_RadialMenu GetMenu()
Definition
SCR_RadialMenuGameModeComponent.c:38
ConnectToRadialMenuSystem
void ConnectToRadialMenuSystem()
Definition
SCR_RadialMenuGameModeComponent.c:43
DisconnectFromRadialMenuSystem
void DisconnectFromRadialMenuSystem()
Definition
SCR_RadialMenuGameModeComponent.c:53
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntity
Definition
IEntity.c:13
IEntity::GetWorld
proto external BaseWorld GetWorld()
RadialMenuSystem
Definition
RadialMenuSystem.c:2
RadialMenuSystem::Register
void Register(SCR_RadialMenuGameModeComponent component)
Definition
RadialMenuSystem.c:41
RadialMenuSystem::Unregister
void Unregister(SCR_RadialMenuGameModeComponent component)
Definition
RadialMenuSystem.c:53
SCR_RadialMenuGameModeComponentClass
Definition
SCR_RadialMenuGameModeComponent.c:3
SCR_RadialMenu
Definition
SCR_RadialMenu.c:19
SCR_RadialMenu::Update
override void Update(float timeSlice)
Definition
SCR_RadialMenu.c:181
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
ScriptComponent::GetOwner
proto external GenericEntity GetOwner()
Get owner entity.
World
Definition
World.c:16
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
Update
@ Update
Definition
SndComponentCallbacks.c:14
OnPostInit
@ OnPostInit
Definition
SndComponentCallbacks.c:15
OnDelete
@ OnDelete
Definition
SndComponentCallbacks.c:16
scripts
Game
UI
HUD
SelectionMenu
RadialMenu
SCR_RadialMenuGameModeComponent.c
Generated by
1.17.0