diff --git a/Plugin.cs b/Plugin.cs index 4d7d7c0..0475c16 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -77,7 +77,7 @@ public static GameObject CreateTemplate() rect.SetParent(blank.GetComponent()); rect.SetAnchor(AnchorPresets.TopLeft); rect.SetPivot(PivotPresets.TopLeft); - rect.anchoredPosition = new Vector2(0,0); + rect.anchoredPosition = new Vector2(102,0); rect.sizeDelta = new Vector2(300,25); title.GetComponent().text = "Title"; title.GetComponent().fontSize = 20; @@ -90,7 +90,7 @@ public static GameObject CreateTemplate() rect.SetAsLastSibling(); rect.SetAnchor(AnchorPresets.TopLeft); rect.SetPivot(PivotPresets.TopLeft); - rect.anchoredPosition = new Vector2(0,-25); + rect.anchoredPosition = new Vector2(102,-25); rect.sizeDelta = new Vector2(300,75); desc.GetComponent().text = "Description"; desc.GetComponent().fontSize = 18; @@ -100,7 +100,7 @@ public static GameObject CreateTemplate() rect = icon.GetComponent(); rect.SetParent(blank.GetComponent()); rect.SetAsLastSibling(); - rect.anchoredPosition = new Vector2(-100,0); + rect.anchoredPosition = new Vector2(0,0); return blank; } @@ -145,7 +145,7 @@ private static GameObject CreatePanel() GameObject blank = CreateImage(); blank.name = "Panel"; RectTransform rect = blank.GetComponent(); - rect.sizeDelta = new Vector2(250,100); + rect.sizeDelta = new Vector2(350,100); rect.SetAnchor(AnchorPresets.BottomRight); rect.SetPivot(PivotPresets.BottomRight); blank.GetComponent().color = new Color(0.2745f,0.2745f,0.3529f,1f);