Commit 7b185e10 authored by mercury233's avatar mercury233 Committed by nanahira

add auto reset pic size when it is too big

parent 4b403cda
...@@ -121,8 +121,16 @@ public class CardDescription : Servant ...@@ -121,8 +121,16 @@ public class CardDescription : Servant
{ {
try try
{ {
underSprite.width = int.Parse(Config.Get("CA","200")); var ca = int.Parse(Config.Get("CA", "230"));
picSprite.height = int.Parse(Config.Get("CB","100")); var cb = int.Parse(Config.Get("CB", "270"));
if (cb > Screen.height)
{
// some dumb ass repack the program and set the pic size so large that small screen users can't realize there is card description under it.
cb = Screen.height / 2;
ca = (int)(cb * 0.68) + 50;
}
underSprite.width = ca;
picSprite.height = cb;
} }
catch (System.Exception e) catch (System.Exception e)
{ {
......
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