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_MapMarkerConfig.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
5
enum
SCR_EMapMarkerType
6
{
7
UNSET
= 0,
8
SIMPLE
,
// simple static marker entry
9
DYNAMIC_EXAMPLE
,
// example entry of a dynamic marker
10
PLACED_CUSTOM
,
// configurable placed static marker
11
PLACED_MILITARY
,
// placed static marker - predefined military symbol
12
SQUAD_LEADER
,
// dynamic squad leader marker
13
DOT_CIRCLE
,
// dotted circle - used in SF scenarios
14
PLACED_RECON
,
// placed static marker - predefined military and custom symbols
15
SQUAD_MEMBER
,
// dynamic squad member marker
16
}
17
18
//------------------------------------------------------------------------------------------------
20
[
BaseContainerProps
(configRoot:
true
)]
21
class
SCR_MapMarkerConfig
22
{
23
[
Attribute
(
""
,
UIWidgets
.Object,
"Definition of map marker types"
)]
24
protected
ref array<ref SCR_MapMarkerEntryConfig> m_aMarkerEntryConfigs;
25
26
//------------------------------------------------------------------------------------------------
28
array<ref SCR_MapMarkerEntryConfig> GetMarkerEntryConfigs()
29
{
30
return
m_aMarkerEntryConfigs;
31
}
32
33
//------------------------------------------------------------------------------------------------
35
SCR_MapMarkerEntryConfig GetMarkerEntryConfigByType(
SCR_EMapMarkerType
type
)
36
{
37
if
(!m_aMarkerEntryConfigs || m_aMarkerEntryConfigs.IsEmpty())
38
return
null;
39
40
foreach
(SCR_MapMarkerEntryConfig cfg : m_aMarkerEntryConfigs)
41
{
42
if
(cfg.GetMarkerType() ==
type
)
43
return
cfg;
44
}
45
46
return
null;
47
}
48
}
49
50
//------------------------------------------------------------------------------------------------
52
[
BaseContainerProps
(),
SCR_MapMarkerTitle
()]
53
class
SCR_MapMarkerEntryConfig
54
{
55
[
Attribute
(
"{DD15734EB89D74E2}UI/layouts/Map/MapMarkerBase.layout"
,
UIWidgets
.ResourceNamePicker,
desc
:
"Marker layout"
,
params
:
"layout"
)]
56
protected
ResourceName
m_sMarkerLayout
;
57
58
//------------------------------------------------------------------------------------------------
60
SCR_EMapMarkerType
GetMarkerType
()
61
{
62
return
SCR_EMapMarkerType
.UNSET;
63
}
64
65
//------------------------------------------------------------------------------------------------
66
ResourceName
GetMarkerLayout
()
67
{
68
return
m_sMarkerLayout
;
69
}
70
71
//------------------------------------------------------------------------------------------------
74
void
InitClientSettings
(
SCR_MapMarkerBase
marker,
SCR_MapMarkerWidgetComponent
widgetComp,
bool
skipProfanityFilter =
false
)
75
{
76
int
ownerID = marker.
GetMarkerOwnerID
();
77
78
if
(ownerID > 0)
79
{
80
SCR_PlayerController
playerController =
SCR_PlayerController
.Cast(
GetGame
().
GetPlayerController
());
81
if
(playerController)
82
playerController.SetPlatformImageToKind(
GetGame
().GetPlayerManager().GetPlatformKind(ownerID), widgetComp.
GetAuthorPlatformIcon
(), showOnPC:
true
, showOnXbox:
true
);
83
84
if
(
GetGame
().
GetPlayerController
().
GetPlayerId
() == ownerID)
85
{
86
widgetComp.
SetModeIcon
(
true
, marker.
GetMarkerID
() != -1);
87
widgetComp.
SetAuthorVisible
(
false
);
88
}
89
else
90
{
91
widgetComp.
SetAuthorVisible
(
true
);
92
}
93
94
widgetComp.
SetAuthor
(
SCR_PlayerNamesFilterCache
.GetInstance().GetPlayerDisplayName(ownerID));
95
}
96
}
97
98
//------------------------------------------------------------------------------------------------
101
void
InitClientSettingsDynamic
(notnull
SCR_MapMarkerEntity
marker, notnull
SCR_MapMarkerDynamicWComponent
widgetComp);
102
103
//------------------------------------------------------------------------------------------------
105
void
InitServerLogic
();
106
107
//------------------------------------------------------------------------------------------------
109
void
InitClientLogic
();
110
111
//------------------------------------------------------------------------------------------------
113
void
OnMapLayerChanged
(notnull
SCR_MapMarkerWidgetComponent
widgetComp,
int
layerID);
114
115
//------------------------------------------------------------------------------------------------
117
void
OnMapLayerChangedDynamic
(notnull
SCR_MapMarkerDynamicWComponent
widgetComp,
int
layerID);
118
119
//------------------------------------------------------------------------------------------------
121
void
OnMapInit
(notnull
SCR_MapEntity
mapEnt, notnull
SCR_MapMarkersUI
markerUIComp);
122
123
//------------------------------------------------------------------------------------------------
125
void
OnMapOpen
(notnull
SCR_MapEntity
mapEnt, notnull
SCR_MapMarkersUI
markerUIComp);
126
127
//------------------------------------------------------------------------------------------------
129
void
OnMapClose
(notnull
SCR_MapEntity
mapEnt, notnull
SCR_MapMarkersUI
markerUIComp);
130
}
SQUAD_LEADER
@ SQUAD_LEADER
Start with Squad leader, do not Go lower than 9000 always add new entries below.
Definition
ERoleCallsign.c:7
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
type
EDamageType type
Definition
SCR_DestructibleTreeV2.c:32
DOT_CIRCLE
DOT_CIRCLE
Definition
SCR_MapMarkerConfig.c:27
PLACED_MILITARY
PLACED_MILITARY
Definition
SCR_MapMarkerConfig.c:25
SIMPLE
SIMPLE
Definition
SCR_MapMarkerConfig.c:22
DYNAMIC_EXAMPLE
DYNAMIC_EXAMPLE
Definition
SCR_MapMarkerConfig.c:23
PLACED_RECON
PLACED_RECON
Definition
SCR_MapMarkerConfig.c:28
UNSET
UNSET
Definition
SCR_MapMarkerConfig.c:21
PLACED_CUSTOM
PLACED_CUSTOM
Definition
SCR_MapMarkerConfig.c:24
SCR_EMapMarkerType
SCR_EMapMarkerType
Definition
SCR_MapMarkerConfig.c:6
SQUAD_MEMBER
SQUAD_MEMBER
Definition
SCR_MapMarkerConfig.c:29
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
ResourceName
Definition
ResourceName.c:13
SCR_MapEntity
Definition
SCR_MapEntity.c:18
SCR_MapMarkerBase
Definition
SCR_MapMarkerBase.c:4
SCR_MapMarkerBase::GetMarkerOwnerID
int GetMarkerOwnerID()
Definition
SCR_MapMarkerBase.c:83
SCR_MapMarkerBase::GetMarkerID
int GetMarkerID()
Definition
SCR_MapMarkerBase.c:59
SCR_MapMarkerDynamicWComponent
Attached to root of marker dynamic base layout.
Definition
SCR_MapMarkerDynamicWComponent.c:3
SCR_MapMarkerEntity
Definition
SCR_MapMarkerEntity.c:19
SCR_MapMarkerEntryConfig
Base entry config.
Definition
SCR_MapMarkerConfig.c:54
SCR_MapMarkerEntryConfig::m_sMarkerLayout
ResourceName m_sMarkerLayout
Definition
SCR_MapMarkerConfig.c:56
SCR_MapMarkerEntryConfig::OnMapLayerChanged
void OnMapLayerChanged(notnull SCR_MapMarkerWidgetComponent widgetComp, int layerID)
Override this to set up client side behavior for when map changes zoom layers.
SCR_MapMarkerEntryConfig::InitClientLogic
void InitClientLogic()
Override this to set up logic & event behavior on client.
SCR_MapMarkerEntryConfig::OnMapClose
void OnMapClose(notnull SCR_MapEntity mapEnt, notnull SCR_MapMarkersUI markerUIComp)
Override this to set up client side behavior on map close.
SCR_MapMarkerEntryConfig::GetMarkerType
SCR_EMapMarkerType GetMarkerType()
Override this in child classes with own config entries to define type.
Definition
SCR_MapMarkerConfig.c:60
SCR_MapMarkerEntryConfig::GetMarkerLayout
ResourceName GetMarkerLayout()
Definition
SCR_MapMarkerConfig.c:66
SCR_MapMarkerEntryConfig::OnMapInit
void OnMapInit(notnull SCR_MapEntity mapEnt, notnull SCR_MapMarkersUI markerUIComp)
Override this to set up client side behavior on map init.
SCR_MapMarkerEntryConfig::InitClientSettingsDynamic
void InitClientSettingsDynamic(notnull SCR_MapMarkerEntity marker, notnull SCR_MapMarkerDynamicWComponent widgetComp)
SCR_MapMarkerEntryConfig::InitClientSettings
void InitClientSettings(SCR_MapMarkerBase marker, SCR_MapMarkerWidgetComponent widgetComp, bool skipProfanityFilter=false)
Definition
SCR_MapMarkerConfig.c:74
SCR_MapMarkerEntryConfig::OnMapLayerChangedDynamic
void OnMapLayerChangedDynamic(notnull SCR_MapMarkerDynamicWComponent widgetComp, int layerID)
Override this to set up client side behavior for when map changes zoom layers.
SCR_MapMarkerEntryConfig::OnMapOpen
void OnMapOpen(notnull SCR_MapEntity mapEnt, notnull SCR_MapMarkersUI markerUIComp)
Override this to set up client side behavior on map open.
SCR_MapMarkerEntryConfig::InitServerLogic
void InitServerLogic()
Override this to set up server side logic & event behavior for dynamic markers.
SCR_MapMarkerTitle
Definition
SCR_MapMarkerEntryPlaced.c:200
SCR_MapMarkerWidgetComponent
Definition
SCR_MapMarkerWidgetComponent.c:4
SCR_MapMarkerWidgetComponent::SetModeIcon
void SetModeIcon(bool state, bool isPublic)
Definition
SCR_MapMarkerWidgetComponent.c:226
SCR_MapMarkerWidgetComponent::SetAuthorVisible
void SetAuthorVisible(bool state)
Definition
SCR_MapMarkerWidgetComponent.c:215
SCR_MapMarkerWidgetComponent::SetAuthor
void SetAuthor(string text)
Definition
SCR_MapMarkerWidgetComponent.c:206
SCR_MapMarkerWidgetComponent::GetAuthorPlatformIcon
ImageWidget GetAuthorPlatformIcon()
Definition
SCR_MapMarkerWidgetComponent.c:255
SCR_MapMarkersUI
Markers UI map component.
Definition
SCR_MapMarkersUI.c:7
SCR_PlayerController
Definition
SCR_PlayerController.c:31
SCR_PlayerNamesFilterCache
Definition
SCR_PlayerNamesFilterCache.c:3
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
GetPlayerController
proto external PlayerController GetPlayerController()
Definition
SCR_PlayerDeployMenuHandlerComponent.c:307
GetPlayerId
proto external int GetPlayerId()
Definition
SCR_SpawnRequestComponent.c:39
scripts
Game
Map
Markers
Config
SCR_MapMarkerConfig.c
Generated by
1.17.0