mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-20 14:58:29 +00:00
make some vars available in Inspector
This commit is contained in:
parent
d703a8cae9
commit
3c9168e295
1 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,9 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
public int maxNumChatMessages = 5;
|
||||
|
||||
public ScreenCorner chatAreaCorner = ScreenCorner.BottomLeft;
|
||||
public Vector2 chatAreaPadding = new Vector2(50, 50);
|
||||
|
||||
|
||||
|
||||
void Start()
|
||||
|
@ -43,7 +46,7 @@ namespace SanAndreasUnity.UI
|
|||
|
||||
float width = Screen.width * 0.25f;
|
||||
float height = Screen.height * 0.33f;
|
||||
Rect rect = GUIUtils.GetCornerRect(ScreenCorner.BottomLeft, new Vector2(width, height), Vector2.one * 50);
|
||||
Rect rect = GUIUtils.GetCornerRect(this.chatAreaCorner, new Vector2(width, height), this.chatAreaPadding);
|
||||
|
||||
GUILayout.BeginArea(rect);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue