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_BaseSelectionMenuDisplay.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
(configRoot:
true
)]
3
class
SCR_BaseSelectionMenuDisplay
4
{
6
protected
bool
m_bIsOpen
;
7
10
void
SetDefault
();
11
13
void
SetContent
(array<BaseSelectionMenuEntry> allEntries, array<BaseSelectionMenuEntry> disabledEntries);
14
16
void
SetSelection
(
BaseSelectionMenuEntry
selectedEntry,
vector
selectionInput,
float
selectionAngle,
float
minInputMagnitude);
17
19
void
SetSelection
(
BaseSelectionMenuEntry
selectedEntry);
20
22
void
SetOpen
(
IEntity
owner,
bool
open) {
m_bIsOpen
= open; }
23
};
24
25
//------------------------------------------------------------------------------------------------
26
class
SCR_RadialMenuIcons
27
{
28
static
const
string
RADIALMENU_ICON_EMPTY =
"{74DDB9BCF5A40173}UI/Textures/RadialMenu/RadialMenuEmpty.edds"
;
29
static
const
string
RADIALMENU_ICON_DEFAULT_WEAPONSWITCHING =
"{74753A21981BB84D}UI/Textures/RadialMenu/RadialMenuDefaultWeapon.edds"
;
30
static
const
string
RADIALMENU_ICON_DEFAULT_AIMESSAGE =
"{164112D4DD73C39F}UI/Textures/RadialMenu/RadialMenuDefaultAIMessage.edds"
;
31
32
//------------------------------------------------------------------------------------------------
34
protected
static
string
GetSafeIconPath
(
string
iconPath)
35
{
36
if
(iconPath ==
string
.Empty)
37
return
RADIALMENU_ICON_EMPTY;
38
39
return
iconPath;
40
}
41
42
//------------------------------------------------------------------------------------------------
45
static
string
GetDefaultIconPath
(
Class
instance)
46
{
47
auto
baseEntry =
BaseSelectionMenuEntry
.Cast(instance);
48
if
(!baseEntry)
49
return
RADIALMENU_ICON_EMPTY;
50
51
auto
aiMessageEntry =
AIMessageSelectionMenuEntry
.Cast(instance);
52
if
(aiMessageEntry)
53
{
54
return
GetSafeIconPath
(RADIALMENU_ICON_DEFAULT_AIMESSAGE);
55
}
56
57
return
RADIALMENU_ICON_EMPTY;
58
}
59
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
AIMessageSelectionMenuEntry
Definition
AIMessageSelectionMenuEntry.c:13
BaseSelectionMenuEntry
Definition
BaseSelectionMenuEntry.c:13
Class
Super root of all classes in Enforce script.
Definition
Types.c:35
IEntity
Definition
IEntity.c:13
SCR_BaseSelectionMenuDisplay
Definition
SCR_BaseSelectionMenuDisplay.c:4
SCR_BaseSelectionMenuDisplay::SetOpen
void SetOpen(IEntity owner, bool open)
Used to set open state.
Definition
SCR_BaseSelectionMenuDisplay.c:22
SCR_BaseSelectionMenuDisplay::SetContent
void SetContent(array< BaseSelectionMenuEntry > allEntries, array< BaseSelectionMenuEntry > disabledEntries)
Used to pass in the radial menu content.
SCR_BaseSelectionMenuDisplay::m_bIsOpen
bool m_bIsOpen
Is the menu open, should this display be drawn?
Definition
SCR_BaseSelectionMenuDisplay.c:6
SCR_BaseSelectionMenuDisplay::SetDefault
void SetDefault()
SCR_BaseSelectionMenuDisplay::SetSelection
void SetSelection(BaseSelectionMenuEntry selectedEntry)
Generaly Used for setting selected entry.
SCR_BaseSelectionMenuDisplay::SetSelection
void SetSelection(BaseSelectionMenuEntry selectedEntry, vector selectionInput, float selectionAngle, float minInputMagnitude)
Used to set selected entry. Can be null as for no selection.
SCR_RadialMenuIcons
Definition
SCR_BaseSelectionMenuDisplay.c:27
SCR_RadialMenuIcons::GetSafeIconPath
static string GetSafeIconPath(string iconPath)
Returns provided icon path if its valid, or default (empty) icon otherwise.
Definition
SCR_BaseSelectionMenuDisplay.c:34
SCR_RadialMenuIcons::GetDefaultIconPath
static string GetDefaultIconPath(Class instance)
Definition
SCR_BaseSelectionMenuDisplay.c:45
vector
Definition
vector.c:13
scripts
Game
UI
HUD
SelectionMenu
SCR_BaseSelectionMenuDisplay.c
Generated by
1.17.0