Exemple #1
0
        public void ButtonDraw(bool nextlevel)
        {
            var button  = new knop(buttont, buttonf);
            var buttonQ = new knop(buttont, buttonf);

            if (nextlevel)
            {
                button = new knop(buttong, buttonf)
                {
                    pos         = new Vector2(400, 200),
                    displaytext = "Ga naar level 2",
                };

                button.clicker += GOTONEXTLEVEL;

                buttonQ = new knop(buttong, buttonf)
                {
                    pos         = new Vector2(400, 250),
                    displaytext = "Exit",
                };

                buttonQ.clicker += STOP_CLICK;
            }
            if (!nextlevel)
            {
                button = new knop(buttont, buttonf)
                {
                    pos         = new Vector2(430, 200),
                    displaytext = "Nieuw spel",
                };

                button.clicker += NEWGameButton_Click;

                buttonQ = new knop(buttont, buttonf)
                {
                    pos         = new Vector2(430, 250),
                    displaytext = "Exit",
                };

                buttonQ.clicker += STOP_CLICK;
            }
            screen = new List <screen>()
            {
                button,
                buttonQ,
            };
        }
Exemple #2
0
        public void ButtonDraw()
        {
            var button1 = new knop(buttont, buttonf)
            {
                pos         = new Vector2(400, 200),
                displaytext = "Terug naar hoofdmenu",
            };

            button1.clicker += GOTOHOME_BUTTON;

            var buttonQ = new knop(buttont, buttonf)
            {
                pos         = new Vector2(400, 250),
                displaytext = "Exit",
            };

            buttonQ.clicker += STOP_CLICK;

            screen = new List <screen>()
            {
                button1,
                buttonQ,
            };
        }
Exemple #3
0
        public void ButtonDraw()
        {
            var button1 = new knop(buttont, buttonf)
            {
                pos         = new Vector2(400, 200),
                displaytext = "Opnieuw proberen",
            };

            button1.clicker += NEWTRY_BUTTON;

            var buttonQ = new knop(buttont, buttonf)
            {
                pos         = new Vector2(400, 250),
                displaytext = "Exit",
            };

            buttonQ.clicker += STOP_CLICK;

            screen = new List <screen>()
            {
                button1,
                buttonQ,
            };
        }