Skip to content

Commit

Permalink
Fixing buttons not updating when adding text.
Browse files Browse the repository at this point in the history
  • Loading branch information
NPBruce committed May 26, 2017
1 parent bfadb49 commit 2a6a804
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unity/Assets/Scripts/QuestEditor/EditorComponentEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,6 @@ public void UpdateText()
else
{
LocalizationRead.updateScenarioText(eventComponent.text_key, eventTextUIE.GetText());
eventComponent.display = true;
if (eventComponent.buttons.Count == 0)
{
eventComponent.buttons.Add(eventComponent.genQuery("button1"));
Expand All @@ -583,6 +582,11 @@ public void UpdateText()
LocalizationRead.updateScenarioText(eventComponent.genKey("button1"),
CONTINUE.Translate());
}
if (!eventComponent.display)
{
eventComponent.display = true;
Update();
}
}
}
}
Expand Down

0 comments on commit 2a6a804

Please sign in to comment.