8 protected string m_sMarkerActive;
11 protected string m_sMarkerInactive;
13 [
Attribute(
"Default Name",
desc:
"Name of service to be shown on hover.")]
14 protected string m_sMarkerName;
16 [
Attribute(
"Default Description",
desc:
"Description of service to be shown on hover.")]
17 protected string m_sMarkerDesc;
19 [
Attribute(
"{94F1E2223D7E0588}UI/layouts/Campaign/ServiceHint.layout")]
26 protected SCR_MilitaryBaseComponent
m_Base;
31 void SetParentBase(SCR_MilitaryBaseComponent base,
bool duringInit =
false)
51 item.SetVisible(
true);
55 item.SetVisible(
false);
64 props.SetFrontColor(faction.GetFactionColor());
65 props.SetTextVisible(
false);
86 marker = m_sMarkerActive;
88 marker = m_sMarkerInactive;
90 item.SetImageDef(marker);
105 item.SetImageDef(m_sMarkerActive);
106 props.SetIconSize(32, 0.3, 0.3);
111 props.SetIconSize(32, 0.1, 0.1);
125 if (campaignBase.IsHQRadioTrafficPossible(f))
126 Item().GetProps().SetVisible(layer < 3);
140 WidgetManager.GetMousePos(mx, my);
142 mx =
GetGame().GetWorkspace().DPIUnscale(mx);
143 my =
GetGame().GetWorkspace().DPIUnscale(my);
160 resupplyText.SetVisible(
false);
165 if (m_sMarkerDesc !=
"Default Description")
167 serviceText.SetTextFormat(m_sMarkerDesc);
168 serviceText.SetVisible(
true);
172 serviceText.SetVisible(
false);