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
void onb()
{
description.textLabel.fontSize += 1;
description.scrollValue = 0;
description.Rebuild();
Config.Set("fontSize", description.textLabel.fontSize.ToString());
}
......@@ -80,6 +81,7 @@ public class CardDescription : Servant
void ons()
{
description.textLabel.fontSize -= 1;
description.scrollValue = 0;
description.Rebuild();
Config.Set("fontSize", description.textLabel.fontSize.ToString());
}
......@@ -194,11 +196,13 @@ public class CardDescription : Servant
if (tail == "")
{
description.Clear();
description.scrollValue = 0;
description.Add(smallstr + card.Desc);
}
else
{
description.Clear();
description.scrollValue = 0;
description.Add(smallstr + "[FFD700]" + tail + "[-]" + card.Desc);
}
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