4 protected int m_iLayerID;
5 protected ImageWidget m_wMarkerIcon;
6 protected TextWidget m_wMarkerText;
17 void SetLayerID(
int id)
27 void SetImage(ResourceName icon,
string quad,
float aspectRatio = 1,
int sizeFlag = 64)
29 m_wMarkerIcon.LoadImageFromSet(0, icon, quad);
30 if (aspectRatio != 1 && aspectRatio > 0)
31 m_wMarkerIcon.SetSize(sizeFlag * 0.9, (sizeFlag / aspectRatio) * 0.9);
36 void SetText(
string text)
38 m_wMarkerText.SetText(text);
43 void SetTextVisible(
bool state)
45 m_wMarkerText.SetVisible(state);
50 void SetColor(Color color)
52 m_wMarkerIcon.SetColor(color);
56 override void HandlerAttached(Widget w)
58 super.HandlerAttached(w);
60 m_wMarkerIcon = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"MarkerIcon"));
61 m_wMarkerText = TextWidget.Cast(
m_wRoot.FindAnyWidget(
"MarkerText"));