public EditorScreen(BaseScreen prev, string level) : base(prev) { // Load the level to edit. m_level = new Level(Content, LevelData.Load(level), level + "_Score.txt"); m_levelName = level; // Initialise variables to default values. m_selected = null; m_dragging = false; m_visible = true; }
public EditorObjectScreen(BaseScreen prev, Level level, IDrawable selected) : base(prev) { m_level = level; m_selected = selected; float posY = GraphicsDevice.Viewport.Height - 40; m_deleteButton = new Button(Content, "Menu/Buttons/Remove", new Vector2(100, posY)); m_textureButton = new Button(Content, "Menu/Buttons/SetTexture", new Vector2(300, posY)); m_visible = true; }
public GameScreen(BaseScreen prev, string level) : base(prev) { m_level = new Level(Content, LevelData.Load(level), level + "_Score.txt"); }
/// <summary> /// Instantiate the screen by getting the required variables from another screen. /// </summary> public BaseScreen(BaseScreen other) : this(other.GraphicsDevice, other.Content, other.Screens, other.Input) { }
public HelpScreen(BaseScreen prev) : base(prev) { m_helpTexture = Content.Load <Texture2D>("Menu/Help"); m_backButton = new Button(Content, "Menu/Buttons/Back", new Vector2(1131, 600)); }