Commit a9b76ddd authored by mercury233's avatar mercury233 Committed by nanahira

fix card desc scroll

parent 50ea2be5
...@@ -73,6 +73,7 @@ public class CardDescription : Servant ...@@ -73,6 +73,7 @@ public class CardDescription : Servant
void onb() void onb()
{ {
description.textLabel.fontSize += 1; description.textLabel.fontSize += 1;
description.scrollValue = 0;
description.Rebuild(); description.Rebuild();
Config.Set("fontSize", description.textLabel.fontSize.ToString()); Config.Set("fontSize", description.textLabel.fontSize.ToString());
} }
...@@ -80,6 +81,7 @@ public class CardDescription : Servant ...@@ -80,6 +81,7 @@ public class CardDescription : Servant
void ons() void ons()
{ {
description.textLabel.fontSize -= 1; description.textLabel.fontSize -= 1;
description.scrollValue = 0;
description.Rebuild(); description.Rebuild();
Config.Set("fontSize", description.textLabel.fontSize.ToString()); Config.Set("fontSize", description.textLabel.fontSize.ToString());
} }
...@@ -194,11 +196,13 @@ public class CardDescription : Servant ...@@ -194,11 +196,13 @@ public class CardDescription : Servant
if (tail == "") if (tail == "")
{ {
description.Clear(); description.Clear();
description.scrollValue = 0;
description.Add(smallstr + card.Desc); description.Add(smallstr + card.Desc);
} }
else else
{ {
description.Clear(); description.Clear();
description.scrollValue = 0;
description.Add(smallstr + "[FFD700]" + tail + "[-]" + card.Desc); description.Add(smallstr + "[FFD700]" + tail + "[-]" + card.Desc);
} }
picLoader.code = card.Id; picLoader.code = card.Id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment