Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 0c6546a

Browse files
committed
Update modsmenu GUI
1 parent cc5cc84 commit 0c6546a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

ModLoader/UI/ModsMenuGUI.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ private void Start()
3737
this._modInformationStyle.margin.top = 10;
3838

3939
this._modInformationTextStyle.fontSize = 20;
40+
this._modInformationTextStyle.padding.top = 3;
4041
this._modInformationTextStyle.normal.textColor = Color.white;
4142

4243
this._titleStyle.fontSize = 30;
@@ -100,12 +101,10 @@ private void modInformation(SFSMod mod)
100101

101102
GUILayout.BeginVertical(this._modInformationStyle,GUILayout.Width(this._windowsPosition.width-20));
102103

103-
GUILayout.BeginHorizontal();
104-
GUILayout.Label($"Mod: {mod.Name}",this._modInformationTextStyle);
105-
GUILayout.Label($"Version: {mod.Version}", this._modInformationTextStyle);
104+
GUILayout.Label($"Mod: {mod.Name} {mod.Version}",this._modInformationTextStyle);
106105
GUILayout.Label($"Author: {mod.Author}", this._modInformationTextStyle);
107-
GUILayout.EndHorizontal();
108-
GUILayout.Label($"Description:\n{mod.Description}", this._modInformationTextStyle);
106+
string description = mod.Description != "" ? mod.Description : "N/A";
107+
GUILayout.Label($"Description:\n{description}", this._modInformationTextStyle);
109108
//bool click = GUILayout.Button("Config");
110109
GUILayout.EndVertical();
111110
}

0 commit comments

Comments
 (0)