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
void OnGUI()
{
if (Event.current.type == EventType.ScrollWheel)
{
_padScroll = -Event.current.delta.y / 100;
......@@ -1275,7 +1276,7 @@ public class Program : MonoBehaviour
FPS = FPS.Substring(0, 5);
}
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:
keepCrispWhenShrunk: 1
mTrueTypeFont: {fileID: 12800000, guid: f775853fdfd14bb47934543e95c3bae3, type: 3}
mFont: {fileID: 0}
mText: KoishiPro2 iOS 1.036.2-tcube
mText: KoishiPro2 iOS 1.036.2-TCube
mFontSize: 18
mFontStyle: 0
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