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();