2
0
Fork 0
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:
in0finite 2019-11-16 16:02:49 +01:00
parent d703a8cae9
commit 3c9168e295

View file

@ -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);