Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public GameScreen(BaseScreen prev, string level) : base(prev)
 {
     m_level = new Level(Content, LevelData.Load(level), level + "_Score.txt");
 }
Ejemplo n.º 4
0
 /// <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)
 {
 }
Ejemplo n.º 5
0
 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));
 }