Commit 89299a43 authored by mercury233's avatar mercury233

win effect can be turned off

parent b91b8340
...@@ -32,6 +32,7 @@ public class LAZYsetting : MonoBehaviour { ...@@ -32,6 +32,7 @@ public class LAZYsetting : MonoBehaviour {
public UIToggle Vactt; public UIToggle Vactt;
public UIToggle Vlink; public UIToggle Vlink;
public UIToggle Vfield; public UIToggle Vfield;
public UIToggle Vwin;
public UIToggle resize; public UIToggle resize;
public UIToggle hand; public UIToggle hand;
......
...@@ -2648,20 +2648,24 @@ public class Ocgcore : ServantWithCardDescription ...@@ -2648,20 +2648,24 @@ public class Ocgcore : ServantWithCardDescription
EventDelegate.Execute(UIHelper.getByName<UIButton>(toolBar, "stop_").onClick); EventDelegate.Execute(UIHelper.getByName<UIButton>(toolBar, "stop_").onClick);
} }
} }
UIHelper.playSound("explode", 0.4f);
float real = (Program.fieldSize - 1) * 0.9f + 1f;
RMSshow_clear(); RMSshow_clear();
GameObject explode = create(result == duelResult.win ? Program.I().mod_winExplode : Program.I().mod_loseExplode); float real = (Program.fieldSize - 1) * 0.9f + 1f;
var co = explode.AddComponent<animation_screen_lock>(); var point = Program.camera_game_main.WorldToScreenPoint(new Vector3(0, 0, -5.65f * real));
co.screen_point = Program.camera_game_main.WorldToScreenPoint(new Vector3(0, 0, -5.65f * real)); point.z = 2;
co.screen_point.z = 2; if (Program.I().setting.setting.Vwin.value)
explode.transform.position = Camera.main.ScreenToWorldPoint(co.screen_point); {
UIHelper.playSound("explode", 0.4f);
GameObject explode = create(result == duelResult.win ? Program.I().mod_winExplode : Program.I().mod_loseExplode);
var co = explode.AddComponent<animation_screen_lock>();
co.screen_point = point;
explode.transform.position = Camera.main.ScreenToWorldPoint(point);
}
if (condition == Condition.record) if (condition == Condition.record)
{ {
winCaculator = create winCaculator = create
( (
Program.I().New_winCaculatorRecord, Program.I().New_winCaculatorRecord,
Program.camera_main_2d.ScreenToWorldPoint(co.screen_point), Program.camera_main_2d.ScreenToWorldPoint(point),
new Vector3(0, 0, 0), new Vector3(0, 0, 0),
true, true,
Program.ui_main_2d, Program.ui_main_2d,
...@@ -2674,7 +2678,7 @@ public class Ocgcore : ServantWithCardDescription ...@@ -2674,7 +2678,7 @@ public class Ocgcore : ServantWithCardDescription
winCaculator = create winCaculator = create
( (
Program.I().New_winCaculator, Program.I().New_winCaculator,
Program.camera_main_2d.ScreenToWorldPoint(co.screen_point), Program.camera_main_2d.ScreenToWorldPoint(point),
new Vector3(0, 0, 0), new Vector3(0, 0, 0),
true, true,
Program.ui_main_2d, Program.ui_main_2d,
......
...@@ -53,7 +53,7 @@ public class Setting : WindowServant2D ...@@ -53,7 +53,7 @@ public class Setting : WindowServant2D
{ {
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" || collection[i].name == "*Efield") if (collection[i].name== "*mouseParticle" || collection[i].name == "*showOff" || collection[i].name == "*Efield" || collection[i].name == "*Ewin")
{ {
collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "1")); collection[i].value = UIHelper.fromStringToBool(Config.Get(collection[i].name, "1"));
} }
......
This diff is collapsed.
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