Skip to content

Commit

Permalink
Merge branch 'dev-untested' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
NPBruce committed Jul 4, 2017
2 parents 615e86c + 8283e16 commit 1ee5eab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion unity/Assets/Resources/Text/Localization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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,,,,,,,
Expand Down
6 changes: 4 additions & 2 deletions unity/Assets/Scripts/QuestEditor/ToolsButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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();
Expand Down

0 comments on commit 1ee5eab

Please sign in to comment.