Commit 0e59ad9b authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent 9fdef4bf
...@@ -130,7 +130,7 @@ public class Setting : WindowServant2D ...@@ -130,7 +130,7 @@ public class Setting : WindowServant2D
public void SetScreenSizeValue() public void SetScreenSizeValue()
{ {
var target = $"{Screen.currentResolution.width} x {Screen.currentResolution.height}"; var target = $"{Screen.width} x {Screen.height}";
if (_screen.value != target) _screen.value = target; if (_screen.value != target) _screen.value = target;
} }
...@@ -235,6 +235,8 @@ public class Setting : WindowServant2D ...@@ -235,6 +235,8 @@ public class Setting : WindowServant2D
var mats = UIHelper.getByName<UIPopupList>(gameObject, "screen_").value var mats = UIHelper.getByName<UIPopupList>(gameObject, "screen_").value
.Split(new[] {" x "}, StringSplitOptions.RemoveEmptyEntries); .Split(new[] {" x "}, StringSplitOptions.RemoveEmptyEntries);
Assert.IsTrue(mats.Length == 2); Assert.IsTrue(mats.Length == 2);
Debug.Log(int.Parse(mats[0]));
Debug.Log(int.Parse(mats[1]));
Screen.SetResolution(int.Parse(mats[0]), int.Parse(mats[1]), Screen.SetResolution(int.Parse(mats[0]), int.Parse(mats[1]),
UIHelper.getByName<UIToggle>(gameObject, "full_").value); UIHelper.getByName<UIToggle>(gameObject, "full_").value);
Program.go(100, () => Program.go(100, () =>
......
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