public override void Click() { if (targetFeild0.text == "") { error0.SetActive(true); ok = false; } else { error0.SetActive(false); ok = true; } if (MapDataManager.IsValidPath(targetFeild1.text)) { error1.SetActive(false); ok1 = true; } else { error1.SetActive(true); ok1 = false; } if (ok && ok1) { UiManager.DestroyAllFocus(); Debug.LogError("NOT IMPLEMENTED!"); //MapDataManager.MapDataOpenMap(targetFeild0.text, targetFeild1.text); } }
public override void Click() { if (targetFeild0.text == "") { error0.SetActive(true); ok = false; } else { error0.SetActive(false); ok = true; } if (MapDataManager.IsValidPath(targetFeild1.text)) { error1.SetActive(false); ok1 = true; } else { error1.SetActive(true); ok1 = false; } if (ok && ok1) { MapDataManager.mapDataFileName = targetFeild0.text; if (MapDataManager.MapDataExportToFile(XCPManager.currentXCP.xpcMaps[MapDataManager.mapDataXCPIndex], targetFeild1.text, targetFeild0.text + ".berrymap")) { UiManager.DestroyAllFocus(); } } }
public void OpenMap() { UiManager.DestroyAllFocus(); MapDataManager.MapDataOpenXCPMap(selectedItem.itemTarget.index); if (ScenePrimer.curEditorPrimer != null) { if (!ScenePrimer.curEditorPrimer.editorCreated) { ScenePrimer.curEditorPrimer.PrimerInitialize(); } else { ScenePrimer.curPrimerComponent.PrimerCreateCamera(); } } else { ScenePrimer.curSceneprimer.PrimerStartEditor(); } }
public override void Click() { if (targetField.text == "") { Error.SetActive(true); } else { // Clear the passed prewive game if (ScenePrimer.curGamePrimer != null) { if (ScenePrimer.curGamePrimer.primerParrentObj != null) { GameObject.Destroy(ScenePrimer.curGamePrimer.primerParrentObj); ScenePrimer.curGamePrimer = null; } ScenePrimer.curGamePrimer = null; } UiManager.DestroyAllFocus(); MapDataManager.MapDataCreateEmptyMap(targetField.text); if (ScenePrimer.curEditorPrimer != null) { if (!ScenePrimer.curEditorPrimer.editorCreated) { ScenePrimer.curEditorPrimer.PrimerInitialize(); } else { ScenePrimer.curPrimerComponent.PrimerCreateCamera(); } } else { ScenePrimer.curSceneprimer.PrimerStartEditor(); } } }
public override void WindowCreate(int sizeX, int sizeY, GameObject windowRef) { MapDataManager.SwitchLayer(sizeX, true); UiManager.DestroyAllFocus(); }