public override void HandleDoubleClick() { if (IndexToWatch != -1) { MonsterTest CurrentValue = Owner.GetManager().EditorGetValueAtIndex(IndexToWatch); MonsterTestWindow.CurrentlyOpenTest = CurrentValue; MonsterTestWindow.Init(); } }
static public void SaveTestStateList() { MonsterTestManager.GetActiveInstance().SaveEntities(); if (CurrentlyOpenTest != null) { CurrentlyOpenTest.EditorSaveMonsterTest(); } MonsterTestWindow.GetInstance().SerializeBoxMetadata(true); }
static public void Init() { /* if(MonsterTestManager.GetActiveInstance() == null) * { * ChapterManager.GetInstance().GetGameStart(); * }*/ WindowInstance = (MonsterTestWindow)EditorWindow.GetWindow <MonsterTestWindow>("Monster Test", typeof(SceneView)); WindowInstance.Initialize(); ReloadTestFromFile(); }
public static MonsterTest CreateNewMonsterTest() { MonsterTest NewTest = new MonsterTest(); NewTest.CreateStaticNodesIfNotPresent(); NewTest.LoadTestStates(); NewTest.EditorSetFilename(MonsterTestListWindow.NewTestName); NewTest.EditorSaveMonsterTest(); MonsterTestWindow.CurrentlyOpenTest = NewTest; MonsterTestWindow.Init(); MonsterTestList.EditorMoveTestToMainList(NewTest); return(NewTest); }
public MonsterTestInputOutputBox(MonsterTestWindow Owner, MonsterTestBase EntityToWatch, string InBoxTitle, bool InbIsInputBox) : base(Owner, EntityToWatch, InBoxTitle, InbIsInputBox) { }