public virtual void CreateEditors()
        {
            editors.Clear();
            itemEditor = new EmptyEditor("Items editor", this);
            itemEditor.requiresDatabase = true;
            itemEditor.childEditors.Add(new ItemEditor("Item", "Items", this));
            itemEditor.childEditors.Add(new ItemCategoryEditor("Item category", "Item categories", this));
            itemEditor.childEditors.Add(new ItemPropertyEditor("Item property", "Item properties", this));
            itemEditor.childEditors.Add(new ItemRarityEditor("Item Rarity", "Item rarities", this));
            editors.Add(itemEditor);

            equipEditor = new EmptyEditor("Equip editor", this);
            equipEditor.requiresDatabase = true;
            equipEditor.childEditors.Add(new EquipEditor("Stats", this));
#if PLY_GAME
            equipEditor.childEditors.Add(new plyStatsEditor("Ply stats", this));
#endif
            equipEditor.childEditors.Add(new EquipTypeEditor("Equip type", "Equip types", this));
            editors.Add(equipEditor);

            craftingEditor = new CraftingEmptyEditor("Crafting editor", this);
            craftingEditor.requiresDatabase = true;
            editors.Add(craftingEditor);

            languageEditor = new LanguageEditor("Language editor");
            editors.Add(languageEditor);

            settingsEditor = new SettingsEditor("Settings editor");
            editors.Add(settingsEditor);
        }
        public virtual void CreateEditors()
        {
            editors.Clear();
            itemEditor = new EmptyEditor("Items editor", this);
            itemEditor.requiresDatabase = true;
            itemEditor.childEditors.Add(new ItemEditor("Item", "Items", this));
            itemEditor.childEditors.Add(new ItemCategoryEditor("Item category", "Item categories", this));
            itemEditor.childEditors.Add(new ItemPropertyEditor("Item property", "Item properties", this));
            itemEditor.childEditors.Add(new ItemRarityEditor("Item Rarity", "Item rarities", this));
            editors.Add(itemEditor);

            equipEditor = new EmptyEditor("Equip editor", this);
            equipEditor.requiresDatabase = true;
            equipEditor.childEditors.Add(new EquipEditor("Stats", this));
            #if PLY_GAME
            equipEditor.childEditors.Add(new plyStatsEditor("Ply stats", this));
            #endif
            equipEditor.childEditors.Add(new EquipTypeEditor("Equip type", "Equip types", this));
            editors.Add(equipEditor);

            craftingEditor = new CraftingEmptyEditor("Crafting editor", this);
            craftingEditor.requiresDatabase = true;
            editors.Add(craftingEditor);

            languageEditor = new LanguageEditor("Language editor");
            editors.Add(languageEditor);

            settingsEditor = new SettingsEditor("Settings editor");
            editors.Add(settingsEditor);
        }
Example #3
0
 public CraftingCategoryEditor(string singleName, string pluralName, EditorWindow window, CraftingEmptyEditor editor)
     : base(singleName, pluralName, window)
 {
     parentEditor = editor;
 }