Esempio n. 1
0
        //!---CONSTRUCTORS---!
        public Main(ContentManager Content)
            : base()
        {
            bBackground = new GUIItems.Background(Content);

            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = Color.Black;
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 260;
            sPixel.Alpha = 0.7f;
            sPixel.Position = new Vector2(700, 0);

            sLine = new AnimatedSprite(Content, "pixel");
            sLine.Colour = Color.White;
            sLine.FrameHeight = 544;
            sLine.FrameWidth = 2;
            sLine.Alpha = 0.7f;
            sLine.Position = new Vector2(700, 0);

            float XOffset = 32;
            float YOffset = Dimensions.Height / 10;

            bPlay = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 4), "Play");
            bEditor = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 5), "Editor");
            bOptions = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 6), "Options");
            bHelp = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 7), "Help");
            bQuit = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 8), "Quit");
            bTest = new GUIItems.Button(Content, new Vector2(960 - 256 - 64, 544 - 128), "Test");
        }
Esempio n. 2
0
        public DeathState(ContentManager Content)
        {
            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 960;
            sPixel.Alpha = 0.7f;

            bBackground = new GUIItems.Background(Content);
            bNewGame = new GUIItems.Button(Content, new Vector2(352, 300), "New Game");
            bQuit = new GUIItems.Button(Content, new Vector2(352, 364), "Quit");
            sTextDied = "GAME OVER!!";
        }
Esempio n. 3
0
        //!---CONSTRUCTORS---!
        public Pause(ContentManager Content)
            : base()
        {
            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameWidth = Dimensions.Width;
            sPixel.FrameHeight = Dimensions.Height;
            sPixel.Alpha = 0.7f;

            float width = Dimensions.Width / 2 - 128;
            float height = Dimensions.Height / 5;

            bResume = new GUIItems.Button(Content, new Vector2(width, height * 1), "Resume");
            bControls = new GUIItems.Button(Content, new Vector2(width, height * 2), "Controls");
            bQuit = new GUIItems.Button(Content, new Vector2(width, height * 3), "Quit");
        }
Esempio n. 4
0
        public Controls(ContentManager Content)
            : base()
        {
            bBackground = new GUIItems.Background(Content);

            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 960;
            sPixel.Alpha = 0.7f;

            //  Buttons
            bBack = new GUIItems.Button(Content, new Vector2(64, 32), "Back");

            #if DESKTOP
            sKey = new AnimatedSprite(Content, "Menus/Key");
            sKey.Scale = 0.5f;
            sMouse = new AnimatedSprite(Content, "Menus/Mouse");
            sMouse.Position = new Vector2(640, 544 - sMouse.Texture.Height);
            #elif PSM
            sVita = new AnimatedSprite(Content, "Menus/Vita");
            #endif
        }
Esempio n. 5
0
        public Options(ContentManager Content)
            : base()
        {
            bBackground = new GUIItems.Background(Content);

            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 960;
            sPixel.Alpha = 0.7f;

            XOffset = 32;
            YOffset = Dimensions.Height / 10;

            #if DESKTOP
            bMusic = new GUIItems.Button(Content, new Vector2(XOffset, YOffset * 3), "Music");
            #endif
            //  Buttons
            tbMinRooms  = new Neuroleptic.Editor.GUI.Textbox(Content, new Vector2(XOffset, YOffset * 5),"Min Rooms");
            tbMaxRooms  = new Neuroleptic.Editor.GUI.Textbox(Content, new Vector2(XOffset, YOffset * 6),"Max Rooms");
            tbMinRooms.CurrentString = Option.RoomsMin.ToString();
            tbMaxRooms.CurrentString = Option.RoomsMax.ToString();

            bControls   = new GUIItems.Button(Content , new Vector2(XOffset, YOffset * 7), "Controls");
            bBack       = new GUIItems.Button(Content , new Vector2(XOffset, YOffset * 8), "Back");
        }
Esempio n. 6
0
        public WinState(ContentManager Content)
        {
            sPixel = new AnimatedSprite(Content, "pixel");
            sPixel.Colour = new Color(Color.Black, 1.0f);
            sPixel.FrameHeight = 544;
            sPixel.FrameWidth = 960;
            sPixel.Alpha = 0.0f;

            //bBackground = new GUIItems.Background(Content);
            bNewGame = new GUIItems.Button(Content, new Vector2(352, 300), "New Game");
            bQuit = new GUIItems.Button(Content, new Vector2(352, 364), "Quit");
            sTextWin = "YOU WIN!";
        }