public LevelBuilder() : base() { tbTextures = new ToolBarTextures(); Add(tbTextures); tbObjects = new ToolBarObjects(); tbObjects.active = false; Add(tbObjects); Add(new ToolBarSelector(tbTextures, tbObjects)); }
public ToolBarSelector(ToolBarTextures tbTextures, ToolBarObjects tbObjects) : base() { this.tbTextures = tbTextures; this.tbObjects = tbObjects; selected = -1; items = new List <ToolBarSelectorItem> { new ToolBarSelectorItem("Land Textures", LIST_TEXTURES), new ToolBarSelectorItem("Game Objects", LIST_OBJECTS) }; }