mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
improve gui
This commit is contained in:
parent
f4173e5164
commit
933c3ed089
2 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,7 @@ namespace SanAndreasUnity.UI {
|
|||
// create file browser
|
||||
if (null == m_fileBrowser)
|
||||
{
|
||||
m_fileBrowser = new FileBrowser (new Rect (new Vector2 (0, 0), this.WindowSize), "", this.OnSelectedPath) {
|
||||
m_fileBrowser = new FileBrowser (new Rect (new Vector2 (8, 30), new Vector2(this.WindowSize.x - 16, this.WindowSize.y - 30 - 10)), "", this.OnSelectedPath) {
|
||||
BrowserType = FileBrowserType.Directory
|
||||
};
|
||||
}
|
||||
|
|
|
@ -439,6 +439,8 @@ public class FileBrowser {
|
|||
GUI.enabled = true;
|
||||
GUILayout.EndScrollView();
|
||||
|
||||
GUILayout.Space(5);
|
||||
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.FlexibleSpace();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue