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

fix

parent 9fdef4bf
Pipeline #5198 canceled with stage
in 2 minutes and 25 seconds
......@@ -130,7 +130,7 @@ public class Setting : WindowServant2D
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;
}
......@@ -235,6 +235,8 @@ public class Setting : WindowServant2D
var mats = UIHelper.getByName<UIPopupList>(gameObject, "screen_").value
.Split(new[] {" x "}, StringSplitOptions.RemoveEmptyEntries);
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]),
UIHelper.getByName<UIToggle>(gameObject, "full_").value);
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