5 const int REAL_CURSOR_HIDE = 12;
6 const string layoutPath =
"{80F7ED5410342195}UI/layouts/Map/CursorCustom.layout";
8 protected bool m_bIsVisible;
9 protected Widget m_wRoot;
10 protected Widget m_wCursor;
11 protected ImageWidget m_wCursorImage;
20 WidgetManager.SetCursor(0);
27 WidgetManager.SetCursor(REAL_CURSOR_HIDE);
33 m_wCursorImage.LoadImageFromSet(0, stateCfg.m_sCursorIconsImageset, stateCfg.m_sImageQuadController);
35 m_wCursorImage.LoadImageFromSet(0, stateCfg.m_sCursorIconsImageset, stateCfg.m_sImageQuad);
37 AlignableSlot.SetPadding(m_wCursorImage, stateCfg.m_fPaddingLeft, stateCfg.m_fPaddingTop, 0, 0);
39 m_wCursorImage.SetColor(stateCfg.m_Color);
44 void SetOpacity(
float opacity)
46 m_wCursorImage.SetOpacity(opacity);
51 void Update(
float x,
float y)
53 FrameSlot.SetPos(m_wCursor, x, y);
60 m_wCursor =
m_wRoot.FindAnyWidget(
"CursorWidget");
61 m_wCursorImage = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"CursorImage"));
67 m_wCursorImage.RemoveFromHierarchy();