Exemplo n.º 1
0
 public static void Dismiss()
 {
     if (_vbs != null && _vbs.Active == true)
     {
         _vbs.Dismiss();
         _vbs = null;
     }
 }
Exemplo n.º 2
0
 public void Render(Gk3Main.Graphics.SpriteBatch sb, int tickCount)
 {
     if (_vbs != null)
     {
         if (_vbs.Active)
         {
             _vbs.Render(sb, tickCount);
         }
         else
         {
             _vbs = null;
         }
     }
 }
Exemplo n.º 3
0
        public void OnMouseUp(int button, int x, int y)
        {
            Gk3Main.Graphics.Camera camera = Gk3Main.SceneManager.CurrentCamera;
            if (camera != null && button == 0)
            {
                if (_vbs != null)
                {
                    _vbs.OnMouseUp(x, y);
                }
                else if (x == _mouseDownX && y == _mouseDownY && camera != null)
                {
                    List <Gk3Main.Game.NounVerbCase> nvcs = getNounVerbCasesUnderCursor(camera, x, y);

                    if (nvcs != null)
                    {
                        _vbs = new Gk3Main.Gui.VerbButtonSet(_content, x, y, nvcs, true);
                        _vbs.KeepInsideViewport(Gk3Main.Graphics.RendererManager.CurrentRenderer.Viewport);
                    }
                }
            }
        }