Browse Source

Fixed Write command "Clear Text" option not working #594

master
Christopher 8 years ago
parent
commit
6f9385cc22
  1. 3
      Assets/Fungus/Scripts/Components/Writer.cs
  2. 2046
      Assets/Tests/UI/TextTests.unity

3
Assets/Fungus/Scripts/Components/Writer.cs

@ -260,8 +260,6 @@ namespace Fungus
TokenType previousTokenType = TokenType.Invalid;
visibleCharacterCount = 0;
for (int i = 0; i < tokens.Count; ++i)
{
// Pause between tokens if Paused is set
@ -901,6 +899,7 @@ namespace Fungus
if (clear)
{
this.Text = "";
visibleCharacterCount = 0;
}
if (!HasTextObject())

2046
Assets/Tests/UI/TextTests.unity

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save