17 return m_MapMarkerType;
24 m_MapMarkerType =
type;
36 override void RestoreToDefault(
bool includeChildren =
false,
bool reinitAfterRestoration =
false)
41 super.RestoreToDefault(includeChildren, reinitAfterRestoration);
50 if (!activationCondition.Init(
GetOwner()))
52 super.AfterAllChildrenSpawned(
this);
60 super.AfterAllChildrenSpawned(
this);
70 SCR_MapMarkerManagerComponent markerMgr = SCR_MapMarkerManagerComponent.GetInstance();
74 int markerID = m_MapMarker.GetMarkerID();
80 markerMgr.RemoveStaticMarker(marker);
87 SCR_MapMarkerManagerComponent mapMarkerMgr = SCR_MapMarkerManagerComponent.Cast(
GetGame().
GetGameMode().FindComponent(SCR_MapMarkerManagerComponent));
93 SCR_ScenarioFrameworkMarkerCustom mapMarkerCustom = SCR_ScenarioFrameworkMarkerCustom.Cast(m_MapMarkerType);
97 m_MapMarker.SetIconEntry(mapMarkerCustom.m_eMapMarkerIcon);
98 m_MapMarker.SetRotation(mapMarkerCustom.m_iMapMarkerRotation);
99 m_MapMarker.SetColorEntry(mapMarkerCustom.m_eMapMarkerColor);
103 SCR_ScenarioFrameworkMarkerMilitary mapMarkerMilitary = SCR_ScenarioFrameworkMarkerMilitary.Cast(m_MapMarkerType);
104 if (!mapMarkerMilitary)
107 m_MapMarker = mapMarkerMgr.PrepareMilitaryMarker(mapMarkerMilitary.m_eMapMarkerFactionIcon, mapMarkerMilitary.m_eMapMarkerDimension, mapMarkerMilitary.m_eMapMarkerType1Modifier | mapMarkerMilitary.m_eMapMarkerType2Modifier);
110 vector worldPos =
GetOwner().GetOrigin();
111 m_MapMarker.SetWorldPos(worldPos[0], worldPos[2]);
112 m_MapMarker.SetCustomText(m_MapMarkerType.m_sMapMarkerText);
114 FactionManager factionManager =
GetGame().GetFactionManager();
119 m_MapMarker.AddMarkerFactionFlags(factionManager.GetFactionIndex(faction));
122 mapMarkerMgr.InsertStaticMarker(m_MapMarker,
false,
true);
136 [
Attribute(
"0", UIWidgets.ComboBox,
"Marker Icon",
"", ParamEnumArray.FromEnum(SCR_EScenarioFrameworkMarkerCustom),
category:
"Map Marker")]
137 SCR_EScenarioFrameworkMarkerCustom m_eMapMarkerIcon;
139 [
Attribute(
"0", UIWidgets.ComboBox,
"Marker Color",
"", ParamEnumArray.FromEnum(SCR_EScenarioFrameworkMarkerCustomColor),
category:
"Map Marker")]
140 SCR_EScenarioFrameworkMarkerCustomColor m_eMapMarkerColor;
142 [
Attribute(defvalue:
"0", uiwidget: UIWidgets.Slider,
desc:
"Rotation of the Map Marker",
params:
"-180 180 1",
category:
"Map Marker")]
143 int m_iMapMarkerRotation;
155 [
Attribute(defvalue:
EMilitarySymbolIcon.INFANTRY.ToString(), UIWidgets.ComboBox,
"Marker Type 1 modifier. Not all of these combinations will work as they have to be properly defined in MapMarkerConfig.conf",
"", ParamEnumArray.FromEnum(
EMilitarySymbolIcon),
category:
"Map Marker")]
158 [
Attribute(defvalue:
EMilitarySymbolIcon.INFANTRY.ToString(), UIWidgets.ComboBox,
"Marker Type 2 modifier. Not all of these combinations will work as they have to be properly defined in MapMarkerConfig.conf",
"", ParamEnumArray.FromEnum(
EMilitarySymbolIcon),
category:
"Map Marker")]
162 enum SCR_EScenarioFrameworkMarkerCustom
222 TARGET_REFERENCE_POINT,
223 TARGET_REFERENCE_POINT2,
229 DIRECTION_OF_ATTACK_MAIN,
230 DIRECTION_OF_ATTACK_PLANNED,
256 enum SCR_EScenarioFrameworkMarkerCustomColor