From 8283e16e69b9f30d6b77c7d98b1334ea4be042bb Mon Sep 17 00:00:00 2001 From: NPBruce Date: Tue, 4 Jul 2017 08:40:30 +1000 Subject: [PATCH] #561 Save on test. --- unity/Assets/Resources/Text/Localization.txt | 2 +- unity/Assets/Scripts/QuestEditor/ToolsButton.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/unity/Assets/Resources/Text/Localization.txt b/unity/Assets/Resources/Text/Localization.txt index 6c32d01cb..d274f2ccf 100644 --- a/unity/Assets/Resources/Text/Localization.txt +++ b/unity/Assets/Resources/Text/Localization.txt @@ -30,7 +30,7 @@ ACTIVATIONS,Activations,Activaciones,Activations,Aktivierungen,Attivazioni,Ativa ADD_COMPONENTS,Add Components:,Añadir Componentes:,Ajouter éléments :,Komponente hinzufügen:,Aggiungi Componente,Adicionar Componentes,,, COMPONENTS,Components,Componentes,,Komponenten,,,,, RENAME,Rename,Renombrar,,Umbenennen,,,,, -TEST,Test,,,,,,,, +SAVE_TEST,Save & Test,,,,,,,, SOURCE,Source,Origen,,Quelle,,,,, COMMENT,Comment,Comentar,,Kommentar,,,,, TRUE,True,Verdadero,,,,,,, diff --git a/unity/Assets/Scripts/QuestEditor/ToolsButton.cs b/unity/Assets/Scripts/QuestEditor/ToolsButton.cs index ad64b5eec..b25456dfa 100644 --- a/unity/Assets/Scripts/QuestEditor/ToolsButton.cs +++ b/unity/Assets/Scripts/QuestEditor/ToolsButton.cs @@ -27,8 +27,8 @@ public ToolsButton() new UIElementBorder(ui); ui = new UIElement(Game.QUESTUI); - ui.SetLocation(UIScaler.GetRight(-14), 0, 4, 1); - ui.SetText(new StringKey("val", "TEST")); + ui.SetLocation(UIScaler.GetRight(-18), 0, 8, 1); + ui.SetText(new StringKey("val", "SAVE_TEST")); ui.SetButton(Test); new UIElementBorder(ui); } @@ -37,6 +37,8 @@ public void Test() { if (GameObject.FindGameObjectWithTag(Game.DIALOG) != null) return; + QuestEditor.Save(); + Game game = Game.Get(); string path = game.quest.questPath; Destroyer.Destroy();