Skip to content

Commit 2456c2a

Browse files
committed
better style for DGS message
1 parent 775966c commit 2456c2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/Scripts/ApplicationLifecycle/ApplicationController.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ protected override void Configure(IContainerBuilder builder)
7171
#if UNITY_EDITOR && UNITY_SERVER
7272
void OnGUI()
7373
{
74-
GUI.Label(new Rect(10, 10, 500, 20), "Dedicated Server Running");
74+
var styleToUse = GUI.skin.label;
75+
styleToUse.fontSize = 50;
76+
styleToUse.alignment = TextAnchor.LowerLeft;
77+
var textToDisplay = "Dedicated Server Running";
78+
var textWidth = styleToUse.fontSize * textToDisplay.Length;
79+
GUI.Label(new Rect(10, 10, textWidth, styleToUse.fontSize * 2), textToDisplay, styleToUse);
7580
}
7681
#endif
7782

0 commit comments

Comments
 (0)