예제 #1
0
 public LevelBuilder() : base()
 {
     tbTextures = new ToolBarTextures();
     Add(tbTextures);
     tbObjects        = new ToolBarObjects();
     tbObjects.active = false;
     Add(tbObjects);
     Add(new ToolBarSelector(tbTextures, tbObjects));
 }
예제 #2
0
 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)
     };
 }