public override void OnInspectorGUIClickedSaveButton() { base.OnInspectorGUIClickedSaveButton(); MonsterTestList.SaveMonsterTestList(); Owner.RebuildList(); }
protected override ListItem <MonsterTest> CreateNewItem(int IndexToWatch) { if (IndexToWatch == -1) { MonsterTest NewTest = MonsterTestItem.CreateNewMonsterTest(); string CompareString = NewTest.GetFilename(); IndexToWatch = GetManager().EditorHasCompareString(CompareString); MonsterTestList.SaveMonsterTestList(); RebuildList(); } return(new MonsterTestItem(this, IndexToWatch)); }
protected override void RemoveItemWithCompareString(string CompareString) { MonsterTestList.EditorRemoveMonsterTests(CompareString); MonsterTestList.SaveMonsterTestList(); }