Commit c3613e75 authored by hex's avatar hex

Adapt to special-shaped screen

parent a7bb8593
Pipeline #39585 failed
...@@ -1260,6 +1260,7 @@ public class Program : MonoBehaviour ...@@ -1260,6 +1260,7 @@ public class Program : MonoBehaviour
void OnGUI() void OnGUI()
{ {
if (Event.current.type == EventType.ScrollWheel) if (Event.current.type == EventType.ScrollWheel)
{ {
_padScroll = -Event.current.delta.y / 100; _padScroll = -Event.current.delta.y / 100;
...@@ -1275,7 +1276,7 @@ public class Program : MonoBehaviour ...@@ -1275,7 +1276,7 @@ public class Program : MonoBehaviour
FPS = FPS.Substring(0, 5); FPS = FPS.Substring(0, 5);
} }
catch { } catch { }
GUI.Label(new Rect(10, 5, 200, 200), "[Ver 1.036.2-TCube] " + "FPS: " + FPS); GUI.Label(new Rect(Screen.safeArea.x + 10, 5, 200, 200), "[Ver 1.036.2-TCube] " + "FPS: " + FPS);
} }
......
...@@ -1417,7 +1417,7 @@ MonoBehaviour: ...@@ -1417,7 +1417,7 @@ MonoBehaviour:
keepCrispWhenShrunk: 1 keepCrispWhenShrunk: 1
mTrueTypeFont: {fileID: 12800000, guid: f775853fdfd14bb47934543e95c3bae3, type: 3} mTrueTypeFont: {fileID: 12800000, guid: f775853fdfd14bb47934543e95c3bae3, type: 3}
mFont: {fileID: 0} mFont: {fileID: 0}
mText: KoishiPro2 iOS 1.036.2-tcube mText: KoishiPro2 iOS 1.036.2-TCube
mFontSize: 18 mFontSize: 18
mFontStyle: 0 mFontStyle: 0
mAlignment: 1 mAlignment: 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