Exemplo n.º 1
0
        public int getSceneName(double x, double y, double w, double h, String text)
        {
            if (w < 40)
            {
                w = 40;
            }
            if (h < 40)
            {
                h = 40;
            }
            var a = new Graphics.GUI.Scene.ScriptedInfoPanel();

            a.Initialize();
            a.SetPosition(new Microsoft.Xna.Framework.Vector2((float)x, (float)y));
            a.SetSize(new Microsoft.Xna.Framework.Vector2((float)w, (float)h));
            a.Text = text;
            Graphics.GUI.GUIEngine.AddHUDScene(a);
            return(a.ID);
        }
Exemplo n.º 2
0
 public int getSceneName(double x, double y, double w, double h, String text)
 {
     if (w < 40)
         w = 40;
     if (h < 40)
         h = 40;
     var a = new Graphics.GUI.Scene.ScriptedInfoPanel();
     a.Initialize();
     a.SetPosition(new Microsoft.Xna.Framework.Vector2((float)x, (float)y));
     a.SetSize(new Microsoft.Xna.Framework.Vector2((float)w, (float)h));
     a.Text = text;
     Graphics.GUI.GUIEngine.AddHUDScene(a);
     return a.ID;
 }