From 0fe4de92faf2291b8f8141cf5a23a928ebfcfef6 Mon Sep 17 00:00:00 2001 From: anavoi Date: Sat, 15 Mar 2025 21:40:32 +0100 Subject: [PATCH] style: in-game guide formatting Make the in-game guide look nicer by formatting Add link to source code for further reference --- Addons/GBSUGui.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Addons/GBSUGui.cs b/Addons/GBSUGui.cs index fdd06f2..0dde94c 100644 --- a/Addons/GBSUGui.cs +++ b/Addons/GBSUGui.cs @@ -70,15 +70,15 @@ public class GBSUGui : MonoBehaviour GUI.skin.label.alignment = TextAnchor.UpperLeft; GUILayout.Label($@"==Guide== -CLI arguments have to be set to join or host: -ip, -port, -servername, -serverpassword +Set CLI arguments: -ip, -port, -servername, -serverpassword [Hosting] 1. Create a config in Gang Beasts_Data/Config/Rotation/config.json -2.Press the 'Host' button while in the Main Menu. +2. Press the 'Host' button while in the Main Menu [Joining] 1. Go to Online -2. Press the 'Join' button."); +2. Press the 'Join' button"); if (GUI.Button(new Rect(320f, 10f, 55f, 30f), "KILL")) { Application.Quit(0); @@ -139,14 +139,18 @@ CLI arguments have to be set to join or host: -ip, -port, -servername, -serverpa QualitySettings.vSyncCount = vsync_switch; } - GUI.Label(new Rect(20f, 365f, 365f, 400f), $@"Current map: {currentmap} + GUI.Label(new Rect(20f, 365f, 365f, 400f), $@" + +Current map: {currentmap} Lobby State: {LobbyManager.Instance.LobbyStates.SelfState} Game State: {_internalCurrentState} Vsync: {QualitySettings.vSyncCount} Target FPS: {Application.targetFrameRate} {UpdateScoreDisplay()} -Made with <3 by anavoi at Gaboule Community (gaboule.com)"); +Made with <3 by anavoi at Gaboule Community (gaboule.com) +Free and open-source software under GPLv3. Our source code is availaible at git.gaboule.com/Gaboule/GBSU +Please refer to the documentation for more information."); GUI.DragWindow(new Rect(0, 0, 10000, 10000)); }