Example #1
0
        internal void NextLoad(SoulGame game)
        {
            GameParent = game;

            OnLoad();
            Load.SafeInvoke(this, LoadEventArgs.Empty);
        }
Example #2
0
        public HUD(SoulGame game, ContentManager content, GraphicsDevice graphicsDevice)
        {
            Container = new Container(game, content, graphicsDevice);
            btn1 = new Button();
            btn1.X = 100;
            btn1.Y = 100;
            btn1.Text = "oi";
            btn1.Width = 100;
            btn1.Height = 50;
            btn1.Font = content.Load<SpriteFont>("World");
            btn1.Click += btn1_Click;
            Container.Add(btn1);

            txt1 = new TextBox();
            txt1.X = 300;
            txt1.Y = 300;
            txt1.Width = 200;
            txt1.Height = 30;
            txt1.Font = content.Load<SpriteFont>("World");
            Container.Add(txt1);
            txt1.EnterPressed += txt1_EnterPressed;
        }
Example #3
0
 public VirtualMouse(SoulGame game)
 {
     this.game = game;
 }