Esempio n. 1
0
        public override void Initialize()
        {
            var btn = new TestButton(4, new Vector2(400, 300), 200, 10, Color.BurlyWood, Gd);

            btn.PanelClickEvent += btnClick;
            PanelManager.AddPanel(btn);
        }
Esempio n. 2
0
        public override void Initialize()
        {
            sprite = new TSprite(0, "Test", "Patricia", new Vector2(50, 50));
            Objects.Add(sprite);

            var btn = new TestButton(1, new Vector2(100, 100), 200, 50, Color.White, Gd);

            var btn2 = new TestButton(2, new Vector2(100, 300), 200, 50, Color.Green, Gd);

            btn.PanelClickEvent  += Button1CLick;
            btn2.PanelClickEvent += Button2Click;

            btn.MouseEnterEvent += Button1Enter;
            btn.MouseLeaveEvent += Button1Leave;

            PanelManager.AddPanel(btn);
            PanelManager.AddPanel(btn2);
        }