Commit 695be855 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix windows size

parent cf43f240
Pipeline #5247 passed with stages
in 2 minutes and 49 seconds
...@@ -444,9 +444,7 @@ public class Servant ...@@ -444,9 +444,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.trySetLableText(currentMSwindow, "hint_", hint); UIHelper.trySetLableText(currentMSwindow, "hint_", hint);
...@@ -483,9 +481,7 @@ public class Servant ...@@ -483,9 +481,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(yesOrNoForce); UIHelper.InterGameObject(yesOrNoForce);
UIHelper.trySetLableText(yesOrNoForce, "hint_", hint); UIHelper.trySetLableText(yesOrNoForce, "hint_", hint);
...@@ -514,9 +510,7 @@ public class Servant ...@@ -514,9 +510,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.registEvent(currentMSwindow, "yes_", ES_RMSpremono, first); UIHelper.registEvent(currentMSwindow, "yes_", ES_RMSpremono, first);
...@@ -535,9 +529,7 @@ public class Servant ...@@ -535,9 +529,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.trySetLableText(currentMSwindow, "hint_", hint); UIHelper.trySetLableText(currentMSwindow, "hint_", hint);
...@@ -557,9 +549,7 @@ public class Servant ...@@ -557,9 +549,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
var sp = UIHelper.getByName<UISprite>(currentMSwindow, "under"); var sp = UIHelper.getByName<UISprite>(currentMSwindow, "under");
sp.height = 70 + options.Count * 48; sp.height = 70 + options.Count * 48;
...@@ -598,9 +588,7 @@ public class Servant ...@@ -598,9 +588,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
var sp = UIHelper.getByName<UISprite>(currentMSwindow, "under"); var sp = UIHelper.getByName<UISprite>(currentMSwindow, "under");
sp.height = 70 + UIHelper.get_zonghangshu(options.Count, 5) * 40; sp.height = 70 + UIHelper.get_zonghangshu(options.Count, 5) * 40;
...@@ -637,9 +625,7 @@ public class Servant ...@@ -637,9 +625,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.registEvent(currentMSwindow, "atk_", ES_RMSpremono, atk); UIHelper.registEvent(currentMSwindow, "atk_", ES_RMSpremono, atk);
...@@ -678,9 +664,7 @@ public class Servant ...@@ -678,9 +664,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.registEvent(currentMSwindow, "jiandao_", ES_RMSpremono, jiandao); UIHelper.registEvent(currentMSwindow, "jiandao_", ES_RMSpremono, jiandao);
...@@ -699,9 +683,7 @@ public class Servant ...@@ -699,9 +683,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.trySetLableText(currentMSwindow, "hint_", hint); UIHelper.trySetLableText(currentMSwindow, "hint_", hint);
...@@ -726,9 +708,7 @@ public class Servant ...@@ -726,9 +708,7 @@ public class Servant
MSentre(), MSentre(),
Vector3.zero, Vector3.zero,
true, true,
Program.I().ui_main_2d, Program.I().ui_main_2d
true,
new Vector3(Screen.height / 700f, Screen.height / 700f, Screen.height / 700f)
); );
UIHelper.InterGameObject(currentMSwindow); UIHelper.InterGameObject(currentMSwindow);
UIHelper.getByName<UITexture>(currentMSwindow, "face_").mainTexture = UIHelper.getFace(name); UIHelper.getByName<UITexture>(currentMSwindow, "face_").mainTexture = UIHelper.getFace(name);
......
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