8 [
Attribute(
"{E78DE3FD19654C1B}UI/layouts/Campaign/SpawnPointElement.layout",
params:
"layout")]
11 [
Attribute(
"{8CA518E4D3AE9F28}UI/layouts/Task/TaskMap.layout",
params:
"layout")]
14 [
Attribute(
"{C013EB43E812F9C1}UI/layouts/Menus/DeployMenu/WarningHintTemp.layout")]
31 [
Attribute(
"",
UIWidgets.Auto,
"Show only task typenames, which is in the list, only if m_bShowAllTaskType is false")]
62 if (playerFaction && playerFaction.GetFactionKey() == spawnPoint.
GetFactionKey())
91 if (icon && icon.GetSpawnPointId() ==
id)
104 if (icon && icon.GetSpawnPointId() == spawnPointId)
107 w.RemoveFromHierarchy();
130 PlayerController pc =
GetGame().GetPlayerController();
137 m_PlyGroupComp = SCR_PlayerControllerGroupComponent.Cast(pc.FindComponent(SCR_PlayerControllerGroupComponent));
161 Widget sibling = child.GetSibling();
202 w.RemoveFromHierarchy();
212 void OnMapPan(
float panX,
float panY,
bool adjustedPan)
223 if (!icon || !widget)
226 vector pos = icon.GetPos();
228 m_MapEntity.WorldToScreen(pos[0], pos[2], x, y,
true);
230 x =
GetGame().GetWorkspace().DPIUnscale(x);
231 y =
GetGame().GetWorkspace().DPIUnscale(y);
239 float screenWidth = workspace.GetWidth();
240 float screenHeight = workspace.GetHeight();
241 float screenWUnscaled = workspace.DPIUnscale(screenWidth);
242 float screenHUnscaled = workspace.DPIUnscale(screenHeight);
243 float ctverecWidth, ctverecHeight;
248 if (x > screenWUnscaled)
253 if (y > screenHUnscaled)
256 m_wWarningWidget.SetVisible(x < 0 || x > screenWUnscaled || y < 0 || y > screenHUnscaled);
272 array<SCR_SpawnPoint> infos = {};
279 infos =
SCR_SpawnPoint.GetSpawnPointsForFaction(playerFaction.GetFactionKey());
308 handler.
Init(spawnPoint);
309 handler.SetParent(
this);
329 array<SCR_Task> availableTasks = {};
333 m_TaskSystem.GetTasksVisibleFor(availableTasks, executor);
370 handler.SetParent(
this);
389 if (factions && !factions.IsEmpty() && !factions.Contains(factionKey))
420 component.GetRootWidget().RemoveFromHierarchy();
430 Widget sibling = child.GetSibling();
443 delete SCR_MapHelper<Widget, SCR_MapUIElement>.GetKeyByValue(
m_mIcons, icon);
451 if (icon && icon.GetSpawnPointId() ==
id)
563 if (taskComponent.
GetTask().GetTaskID() == taskID)
564 return taskComponent;
ArmaReforgerScripted GetGame()
SCR_BaseGameMode GetGameMode()
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
void SCR_FactionManager(IEntitySource src, IEntity parent)
EMapEntityMode
Mode of the map.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SCR_Task(IEntitySource src, IEntity parent)
Replication item identifier.
void SCR_MapUIBaseComponent()
SCR_MapEntity m_MapEntity
override void OnMapClose(MapConfiguration config)
SCR_MapUISpawnPoint FindSpawnPoint(RplId id)
void OnElementSelected(notnull SCR_MapUIElement element)
ScriptInvoker GetOnElementSelected()
void ShowSpawnPoint(notnull SCR_SpawnPoint spawnPoint)
SCR_PlayerFactionAffiliationComponent m_PlyFactionAffilComp
ref ScriptInvoker< SCR_MapUIElement > m_OnElementSelected
void OnSpawnPointSelected(RplId spId=RplId.Invalid())
void OnMapPan(float panX, float panY, bool adjustedPan)
void OnPlayerGroupChanged(SCR_AIGroup group)
void InitTaskMarkers()
Creates task icon for every task which is visible on map for player.
void HideSpawnPoint(RplId spawnPointId)
SCR_BaseGameMode m_GameMode
override void OnMapOpen(MapConfiguration config)
void OnPlayerFactionResponse(SCR_PlayerFactionAffiliationComponent component, int factionIndex, bool response)
void InitTaskIcon(SCR_Task task)
bool m_bShowAllTaskTypenames
ref map< Widget, SCR_MapUIElement > m_mIcons
bool m_bShowSpawnPointsHint
void OnSpawnPointSelectedExt(RplId id)
ResourceName m_sSpawnPointElement
void OnTaskAdded(SCR_Task task)
ref ScriptInvoker< RplId > m_OnSpawnPointSelected
SCR_MapUIElement FindSpawnPointIconById(RplId id)
ref array< string > m_aAllowedTaskTypenames
SCR_TaskSystem m_TaskSystem
void UpdateIconPosition(Widget widget, SCR_MapUIElement icon, float x, float y)
void UpdateSpawnPointName(RplId id, string name)
ScriptInvoker GetOnSpawnPointSelected()
ResourceName m_sTaskElement
void OnTaskRemoved(notnull SCR_Task task)
ResourceName m_sWarningWidget
void RemoveIcon(SCR_MapUIElement icon)
void RemoveSpawnPoint(SCR_SpawnPoint spawnPoint)
void OnSpawnPointFactionChange(SCR_SpawnPoint spawnPoint)
void AddSpawnPoint(SCR_SpawnPoint spawnPoint)
SCR_PlayerControllerGroupComponent m_PlyGroupComp
SCR_TaskMapUIComponent GetTaskFromID(string taskID)
void SelectIcon(bool invoke=true)
override RplId GetSpawnPointId()
void Init(notnull SCR_SpawnPoint spawnPoint)
static int GetLocalPlayerId()
Returns either a valid ID of local player or 0.
Spawn point entity defines positions on which players can possibly spawn.
bool IsSpawnPointVisibleForPlayer(int pid)
static ref SCR_SpawnPointNameChanged_Invoker OnSpawnPointNameChanged
static SCR_SpawnPoint GetSpawnPointByRplId(RplId id)
void InitTask(notnull SCR_Task task)
SCR_FieldOfViewSettings Attribute