예제 #1
0
        public static void Show(WidgetTooltip tooltip, Vector2 position, RectangleF region)
        {
            Hide();

            tooltip.ZIndex = int.MaxValue;
            WidgetManager.GetTopmostWindow().AddChild(tooltip);
            tooltip.Update(); // make sure all sizes are settled up

            tooltip.Region = region;
            tooltip.UpdatePosition(position);

            WindowController.Instance.OnTouch += tooltip.UnHoverTouch;

            s_currentTooltip = tooltip;
        }
예제 #2
0
        public void Show(Vector2 position, bool autohide = true)
        {
            Hide();

            WidgetManager.GetTopmostWindow().AddChild(this);

            this.Position = position - m_padding.TopLeft;

            Visible = true;

            if (autohide)
            {
                WidgetManager.SetExclusive(this);
            }

//                WidgetManager.WindowController.OnTouch += UnHoverTouch;

            m_autohide = autohide;
        }