Commit 9db8d18d authored by SherryChaos's avatar SherryChaos

bug fix

parent 80c9d4e1
...@@ -1309,6 +1309,12 @@ namespace MDPro3 ...@@ -1309,6 +1309,12 @@ namespace MDPro3
void OnSupportExpansions() void OnSupportExpansions()
{ {
if (Program.I().ocgcore.isShowed)
{
MessageManager.Cast(InterString.Get("决斗中不能更改此选项。"));
return;
}
if (supportExpansionsValue.text == InterString.Get("否")) if (supportExpansionsValue.text == InterString.Get("否"))
{ {
supportExpansionsValue.text = InterString.Get("是"); supportExpansionsValue.text = InterString.Get("是");
...@@ -1319,12 +1325,18 @@ namespace MDPro3 ...@@ -1319,12 +1325,18 @@ namespace MDPro3
supportExpansionsValue.text = InterString.Get("否"); supportExpansionsValue.text = InterString.Get("否");
Config.Set("Expansions", "0"); Config.Set("Expansions", "0");
} }
UIManager.ChangeLanguage(); Program.I().InitializeForDataChange();
} }
bool checking; bool checking;
void OnUpdatePrerelease() void OnUpdatePrerelease()
{ {
if (Program.I().ocgcore.isShowed)
{
MessageManager.Cast(InterString.Get("决斗中不能进行此操作。"));
return;
}
if (!checking) if (!checking)
{ {
checking = true; checking = true;
......
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