Commit d5ee4498 authored by mercury233's avatar mercury233

update default config

parent 69ee13db
Pipeline #15323 failed with stages
in 84 minutes and 38 seconds
...@@ -75,7 +75,7 @@ public class CardDescription : Servant ...@@ -75,7 +75,7 @@ public class CardDescription : Servant
lineSprite = UIHelper.getByName<UISprite>(gameObject, "line"); lineSprite = UIHelper.getByName<UISprite>(gameObject, "line");
try try
{ {
description.textLabel.fontSize = int.Parse(Config.Get("fontSize", "16")); description.textLabel.fontSize = int.Parse(Config.Get("fontSize", "14"));
} }
catch (Exception e) catch (Exception e)
{ {
......
...@@ -40,12 +40,12 @@ public class Setting : WindowServant2D ...@@ -40,12 +40,12 @@ public class Setting : WindowServant2D
UIHelper.getByName<UIToggle>(gameObject, "smartSelect_").value = UIHelper.getByName<UIToggle>(gameObject, "smartSelect_").value =
UIHelper.fromStringToBool(Config.Get("smartSelect_", "1")); UIHelper.fromStringToBool(Config.Get("smartSelect_", "1"));
UIHelper.getByName<UIToggle>(gameObject, "autoChain_").value = UIHelper.getByName<UIToggle>(gameObject, "autoChain_").value =
UIHelper.fromStringToBool(Config.Get("autoChain_", "1")); UIHelper.fromStringToBool(Config.Get("autoChain_", "0"));
UIHelper.getByName<UIToggle>(gameObject, "handPosition_").value = UIHelper.getByName<UIToggle>(gameObject, "handPosition_").value =
UIHelper.fromStringToBool(Config.Get("handPosition_", "1")); UIHelper.fromStringToBool(Config.Get("handPosition_", "1"));
UIHelper.getByName<UIToggle>(gameObject, "handmPosition_").value = UIHelper.getByName<UIToggle>(gameObject, "handmPosition_").value =
UIHelper.fromStringToBool(Config.Get("handmPosition_", "1")); UIHelper.fromStringToBool(Config.Get("handmPosition_", "1"));
UIHelper.getByName<UIToggle>(gameObject, "spyer_").value = UIHelper.fromStringToBool(Config.Get("spyer_", "1")); UIHelper.getByName<UIToggle>(gameObject, "spyer_").value = UIHelper.fromStringToBool(Config.Get("spyer_", "0"));
UIHelper.getByName<UIToggle>(gameObject, "resize_").canChange = false; UIHelper.getByName<UIToggle>(gameObject, "resize_").canChange = false;
// UIHelper.getByName<UIToggle>(gameObject, "resize_").value = // UIHelper.getByName<UIToggle>(gameObject, "resize_").value =
// UIHelper.fromStringToBool(Config.Get("resize_", "0")); // UIHelper.fromStringToBool(Config.Get("resize_", "0"));
...@@ -75,11 +75,10 @@ public class Setting : WindowServant2D ...@@ -75,11 +75,10 @@ public class Setting : WindowServant2D
for (var i = 0; i < collection.Length; i++) for (var i = 0; i < collection.Length; i++)
if (collection[i].name.Length > 0 && collection[i].name[0] == '*') if (collection[i].name.Length > 0 && collection[i].name[0] == '*')
{ {
if (collection[i].name == "*mouseParticle" || collection[i].name == "*showOff" || if (collection[i].name == "*MonsterCloud")
collection[i].name == "*Efield" || collection[i].name == "*Ewin")
collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "1"));
else
collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "0")); collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "0"));
else
collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "1"));
} }
setting.showoffATK.value = Config.Get("showoffATK", "1800"); setting.showoffATK.value = Config.Get("showoffATK", "1800");
......
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