mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-30 07:50:22 +00:00
some improvements for FileBrowser
This commit is contained in:
parent
74ce1ddc95
commit
49ebfc6a9b
1 changed files with 4 additions and 3 deletions
|
@ -104,7 +104,7 @@ public class FileBrowser {
|
|||
if (m_centredText == null) {
|
||||
m_centredText = new GUIStyle(GUI.skin.label);
|
||||
m_centredText.alignment = TextAnchor.MiddleLeft;
|
||||
m_centredText.fixedHeight = GUI.skin.button.fixedHeight;
|
||||
m_centredText.fixedHeight = this.ButtonStyle.fixedHeight;
|
||||
}
|
||||
return m_centredText;
|
||||
}
|
||||
|
@ -115,8 +115,9 @@ public class FileBrowser {
|
|||
protected GUIStyle ButtonStyle {
|
||||
get {
|
||||
if (null == m_buttonStyle) {
|
||||
m_buttonStyle = new GUIStyle(GUI.skin.button);
|
||||
m_buttonStyle.fixedHeight = 25;
|
||||
// m_buttonStyle = new GUIStyle(GUI.skin.button);
|
||||
// m_buttonStyle.fixedHeight = 25;
|
||||
m_buttonStyle = GUI.skin.button;
|
||||
}
|
||||
return m_buttonStyle;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue