[F] Skip button background
Build AquaMai / build (push) Has been cancelled Details

pull/84/head
Clansty 2024-11-06 12:10:20 +08:00
parent 85dd8029af
commit 1542f3811d
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 2 additions and 2 deletions

View File

@ -47,14 +47,14 @@ public class ShowQuickEndPlay
public void OnGUI() public void OnGUI()
{ {
if (!_showUi) return; if (!_showUi) return;
var style = GUI.skin.GetStyle("button");
style.fontSize = GuiSizes.FontSize;
// 这里重新 setup 一下 style 也可以
var x = GuiSizes.PlayerCenter; var x = GuiSizes.PlayerCenter;
var y = Screen.height - GuiSizes.PlayerWidth * .37f; var y = Screen.height - GuiSizes.PlayerWidth * .37f;
var width = GuiSizes.PlayerWidth * .25f; var width = GuiSizes.PlayerWidth * .25f;
var height = GuiSizes.PlayerWidth * .13f; var height = GuiSizes.PlayerWidth * .13f;
GUI.Box(new Rect(x, y, width, height), "");
GUI.Button(new Rect(x, y, width, height), Locale.Skip); GUI.Button(new Rect(x, y, width, height), Locale.Skip);
} }
} }