This repository was archived by the owner on Oct 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments