示例#1
0
        public override void OnInspectorGUIClickedSaveButton()
        {
            base.OnInspectorGUIClickedSaveButton();

            MonsterTestList.SaveMonsterTestList();

            Owner.RebuildList();
        }
示例#2
0
        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));
        }
示例#3
0
        protected override void RemoveItemWithCompareString(string CompareString)
        {
            MonsterTestList.EditorRemoveMonsterTests(CompareString);

            MonsterTestList.SaveMonsterTestList();
        }