Texture2D trans_BlackBars; // Black bars that draw onto the sides of the backgrounds that scroll *this is polish* #endregion Fields #region Constructors /// <summary> /// Creates the Start screen scene. This holds all of its controls as well. /// </summary> public Scene_Start(ContentManager contentmanager, int screenwidth, int screenheight) { contentManager = contentmanager; // Load textures for this Scene logo = contentManager.Load<Texture2D>("assets/gui/logo_2"); messagebox = contentManager.Load<Texture2D>("assets/gui/messagebox"); // Intro backgrounds bg_courtyard = contentManager.Load<Texture2D>("assets/backgrounds/school_courtyard"); bg_gate = contentManager.Load<Texture2D>("assets/backgrounds/school_gate"); bg_forest = contentManager.Load<Texture2D>("assets/backgrounds/school_forest1"); trans_BlackBars = contentmanager.Load<Texture2D>("assets/gui/trans_blackbars"); // Fonts nFont = contentManager.Load<SpriteFont>("fonts/debugfont"); debugFont_tiny = contentManager.Load<SpriteFont>("fonts/debugfontsmall"); // Create scene controls: btnStart = new Button(contentManager, "Start Game", new Rectangle(320, 200, 160, 40), 1); btnContinue = new Button(contentManager, "Continue", new Rectangle(320, 240, 160, 40), 2); btnQuit = new Button(contentManager, "Quit", new Rectangle(320, 280, 160, 40), 3); btnDemo = new Button(contentManager, "Demo", new Rectangle(320, 320, 160, 40), 4); btnOptions = new Button(contentmanager, "Options", new Rectangle(320, 360, 160, 40), 5); // Other Scenes and Windows sceneOptions = new Scene_StartOptions(contentmanager); }
int currentAnswerAmount = 0; // How many answers are available currently #endregion Fields #region Constructors /// <summary> /// Creates a Question Scene. Needs content manager. /// </summary> public Scene_Questions(ContentManager content, int ButtonAmount = 5) { Content = content; buttonAmount = ButtonAmount; btnList = new Button[ButtonAmount]; // Set up all the buttons int spacer = 50; for (int i = 1; i < ButtonAmount; i++) { btnList[i] = new Button(content, "0", new Rectangle(200, spacer, 500, 40), i); spacer += 50; } }
public ActionMenu(ContentManager content) { btnSleep = new Button(content, "Sleep", new Rectangle(-280, 220, 130, 30), 1); btnText = new Button(content, "Text", new Rectangle(-140, 220, 130, 30), 7); btnTV = new Button(content, "TV", new Rectangle(-280, 260, 130, 30), 2); btnEat = new Button(content, "Eat", new Rectangle(-140, 260, 130, 30), 8); btnGame = new Button(content, "Play Game", new Rectangle(-280, 300, 130, 30), 3); btnClass = new Button(content, "Class", new Rectangle(-140, 300, 130, 30), 9); btnWrite = new Button(content, "Write", new Rectangle(-280, 340, 130, 30), 4); btnHomework = new Button(content, "Homework", new Rectangle(-140, 340, 130, 30), 10); btnMusic = new Button(content, "Music", new Rectangle(-280, 380, 130, 30), 5); btnPorn = new Button(content, "P**n", new Rectangle(-140, 380, 130, 30), 11); btnWalk = new Button(content, "Walk", new Rectangle(-280, 420, 130, 30), 6); btnSave = new Button(content, "Save", new Rectangle(-140, 420, 130, 30), 12); // Load in background background = content.Load<Texture2D>("assets/gui/notebook/notebookAsset"); homeworkBubble = content.Load<Texture2D>("assets/gui/gui_homeworkelert"); smallFont = content.Load<SpriteFont>("fonts/debugfontsmall"); bigFont = content.Load<SpriteFont>("fonts/debugfont"); }