public AlphPaletteState(Palette p) : base(p) { ThingNames = MakeAlphapbet().ToArray(); }
// Just do what the parent does. protected RichPaletteState(Palette p) : base(p) { _position = p.Position; }
public PositionPaletteState(Palette p) : base(p) { }
public SizePaletteState(Palette p) : base(p) { ThingNames = _sizes; }
protected PaletteState(Palette p) { if (p == null) throw new ArgumentNullException("p"); Parent = p; }
public NumPaletteState(Palette p) : base(p) { ThingNames = _numbers; }
public ShapePaletteState(Palette p) : base(p) { ThingNames = _shapeNames; }
public ColorPaletteState(Palette p) : base(p) { ThingNames = _names; }
public override void LoadContent() { base.LoadContent(); intUpTimePosition = (new Vector2(520, 50)); intHoldTimePosition = (new Vector2(785, 50)); font = Content.Load<SpriteFont>("font"); // Load all o' dem buttons btns.Add("Home", MakeButton(30, 35, "LevelEditorGUI/homeButton")); btns.Add("Menu", MakeButton(95, 35, "LevelEditorGUI/menuButton")); btns.Add("HoldTime", MakeButton(700, 35, "LevelEditorGUI/holdTimeButton")); btns.Add("Multiple", MakeButton(355, 35, "LevelEditorGUI/multipleToggleOff")); btns.Add("Play", MakeButton(290, 35, "LevelEditorGUI/playButton")); btns.Add("Redo", MakeButton(215, 35, "LevelEditorGUI/redoButton")); btns.Add("Undo", MakeButton(160, 35, "LevelEditorGUI/undoButton")); btns.Add("UpTime", MakeButton(440, 35, "LevelEditorGUI/upTimeButton")); btns.Add("MoreUp", MakeButton(560, 35, "LevelEditorGUI/moreButton")); btns.Add("MoreHold", MakeButton(820, 35, "LevelEditorGUI/moreButton")); btns.Add("LessUp", MakeButton(615, 35, "LevelEditorGUI/lessButton")); btns.Add("LessHold", MakeButton(875, 35, "LevelEditorGUI/lessButton")); btns.Add("AddShape", MakeButton(1040, 35, "LevelEditorGUI/addShapeButton")); btns.Add("AddAlpha", MakeButton(1105, 35, "LevelEditorGUI/addAlphButton")); btns.Add("AddNumbr", MakeButton(1170, 35, "LevelEditorGUI/addNumButton")); //btns.Add("Edit", MakeButton(1230, 35, "LevelEditorGUI/editButton")); btns.Add("HelpBtn", MakeButton(((ScreenWidth) - 55), 35, "HELP/LEhelpIcon")); // Also, the grid. grid = Content.Load<Texture2D>("LevelEditorGUI/placementGrid"); addLabel = Content.Load<Texture2D>("LevelEditorGUI/addLabel"); //setup the rectangle for the grid this.gridRect = new Rectangle(0, 110, ScreenWidth, ScreenHeight); //register this gridRect with the game manager GameManager.GlobalInstance.gridRectangle = this.gridRect; // Sets upTime and holdTime if already been set if (myLevel.upTime > 0) { intUpTime = myLevel.upTime; } else { intUpTime = 5; } if (myLevel.holdTime >= 0) { intHoldTime = myLevel.holdTime; } else { intHoldTime = 1; } // Place the palette. palette = new Palette((ScreenWidth / 2) - 50 , 100); palette.Hide(); // Keep it hidden! palette.LoadContent(Content); }