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_MapMarkerEntryImageText.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
3
[
BaseContainerProps
(),
SCR_MapMarkerTitle
()]
4
class
SCR_MapMarkerEntryImageText
:
SCR_MapMarkerEntryConfig
5
{
6
[
Attribute
(
""
,
UIWidgets
.Object,
"Predefined marker simple entries"
)]
7
protected
ref array<ref SCR_MarkerSimpleConfig>
m_aSimpleEntries
;
8
9
//------------------------------------------------------------------------------------------------
10
override
SCR_EMapMarkerType
GetMarkerType
()
11
{
12
return
SCR_EMapMarkerType
.SIMPLE;
13
}
14
15
//------------------------------------------------------------------------------------------------
16
override
void
InitClientSettings
(
SCR_MapMarkerBase
marker,
SCR_MapMarkerWidgetComponent
widgetComp,
bool
skipProfanityFilter =
false
)
17
{
18
super.InitClientSettings(marker, widgetComp);
19
20
int
cfgID = marker.
GetMarkerConfigID
();
21
if
(cfgID >= 0)
22
{
23
foreach
(SCR_MarkerSimpleConfig cfg :
m_aSimpleEntries
)
24
{
25
if
(cfg.GetEntryID() == cfgID)
26
{
27
string
imgset, icon;
28
cfg.GetIconResource(imgset, icon);
29
30
widgetComp.
SetImage
(imgset, icon);
31
widgetComp.
SetColor
(cfg.GetColor());
32
widgetComp.
SetText
(cfg.GetText());
33
}
34
}
35
}
36
}
37
38
}
39
40
//------------------------------------------------------------------------------------------------
42
[
BaseContainerProps
(),
SCR_MapMarkerSimpleTitle
()]
43
class
SCR_MarkerSimpleConfig
44
{
45
[
Attribute
(
"UNNAMED"
)]
46
protected
string
m_sName
;
47
48
[
Attribute
(
"0"
,
desc
:
"Unique secondary ID (primary is EMarkerType) used to reduce toll on the network during synchronization by loading const data from config"
)]
49
protected
int
m_iEntryID;
50
51
[
Attribute
(
"{2EFEA2AF1F38E7F0}UI/Textures/Icons/icons_wrapperUI-64.imageset"
,
UIWidgets
.ResourcePickerThumbnail,
desc
:
"Image resource"
,
params
:
"imageset"
)]
52
protected
ResourceName
m_sIconImageset;
53
54
[
Attribute
(
""
,
desc
:
"Imageset quad"
)]
55
protected
string
m_sIconImagesetQuad
;
56
57
[
Attribute
(
"1.0 1.0 1.0 1.0"
)]
58
protected
ref
Color
m_Color
;
59
60
[
Attribute
(
""
,
desc
:
"Text under the marker icon"
)]
61
protected
string
m_sText
;
62
63
//------------------------------------------------------------------------------------------------
64
int
GetEntryID()
65
{
66
return
m_iEntryID;
67
}
68
69
//------------------------------------------------------------------------------------------------
70
void
GetIconResource(out
ResourceName
imageset, out
string
imageQuad)
71
{
72
imageset = m_sIconImageset;
73
imageQuad =
m_sIconImagesetQuad
;
74
}
75
76
//------------------------------------------------------------------------------------------------
77
Color
GetColor
()
78
{
79
return
Color
.FromInt(
m_Color
.PackToInt());
80
}
81
82
//------------------------------------------------------------------------------------------------
83
string
GetText
()
84
{
85
return
m_sText
;
86
}
87
88
}
89
90
//------------------------------------------------------------------------------------------------
91
class
SCR_MapMarkerSimpleTitle
:
BaseContainerCustomTitle
92
{
93
//------------------------------------------------------------------------------------------------
94
override
bool
_WB_GetCustomTitle(
BaseContainer
source, out
string
title)
95
{
96
source.Get(
"m_sName"
, title);
97
98
return
true
;
99
}
100
}
GetText
string GetText()
Definition
SCR_BaseEditorAttribute.c:488
m_sIconImagesetQuad
string m_sIconImagesetQuad
Definition
SCR_CustomReconMarkerEntry.c:119
GetColor
Color GetColor()
Definition
SCR_EditableCommentComponent.c:52
m_Color
ref Color m_Color
Definition
SCR_GeneratorBaseEntity.c:25
m_sName
LocalizedString m_sName
Definition
SCR_GroupIdentityComponent.c:19
SCR_EMapMarkerType
SCR_EMapMarkerType
Definition
SCR_MapMarkerConfig.c:6
SCR_MapMarkerSimpleTitle
SCR_MapMarkerEntryImageText SCR_MapMarkerEntryConfig SCR_MapMarkerSimpleTitle()] class SCR_MarkerSimpleConfig
Definition
SCR_MapMarkerEntryImageText.c:42
BaseContainerProps
SCR_MapMarkerEntryImageText SCR_MapMarkerEntryConfig BaseContainerProps()
Placed marker color entry.
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
params
category params
Definition
SCR_SpherePointGeneratorPreviewComponent.c:21
BaseContainerCustomTitle
Definition
BaseContainerCustomTitle.c:35
BaseContainer
Definition
BaseContainer.c:13
Color
Definition
Color.c:13
ResourceName
Definition
ResourceName.c:13
SCR_MapMarkerBase
Definition
SCR_MapMarkerBase.c:4
SCR_MapMarkerBase::GetMarkerConfigID
int GetMarkerConfigID()
Definition
SCR_MapMarkerBase.c:71
SCR_MapMarkerEntryConfig
Base entry config.
Definition
SCR_MapMarkerConfig.c:54
SCR_MapMarkerEntryImageText
Basic image & text entry.
Definition
SCR_MapMarkerEntryImageText.c:5
SCR_MapMarkerEntryImageText::GetMarkerType
override SCR_EMapMarkerType GetMarkerType()
Definition
SCR_MapMarkerEntryImageText.c:10
SCR_MapMarkerEntryImageText::InitClientSettings
override void InitClientSettings(SCR_MapMarkerBase marker, SCR_MapMarkerWidgetComponent widgetComp, bool skipProfanityFilter=false)
Definition
SCR_MapMarkerEntryImageText.c:16
SCR_MapMarkerEntryImageText::m_aSimpleEntries
ref array< ref SCR_MarkerSimpleConfig > m_aSimpleEntries
Definition
SCR_MapMarkerEntryImageText.c:7
SCR_MapMarkerSimpleTitle
Definition
SCR_MapMarkerEntryImageText.c:92
SCR_MapMarkerTitle
Definition
SCR_MapMarkerEntryPlaced.c:200
SCR_MapMarkerWidgetComponent
Definition
SCR_MapMarkerWidgetComponent.c:4
SCR_MapMarkerWidgetComponent::SetText
void SetText(string text, bool skipProfanityFilter=false)
Definition
SCR_MapMarkerWidgetComponent.c:127
SCR_MapMarkerWidgetComponent::SetColor
void SetColor(Color color)
Definition
SCR_MapMarkerWidgetComponent.c:240
SCR_MapMarkerWidgetComponent::SetImage
void SetImage(ResourceName icon, string quad, float aspectRatio=1)
Definition
SCR_MapMarkerWidgetComponent.c:75
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
m_sText
string m_sText
Definition
EnWidgets.c:82
scripts
Game
Map
Markers
Config
SCR_MapMarkerEntryImageText.c
Generated by
1.17.0