Skip to content

Commit

Permalink
Corrected a style error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedDevStuff committed Sep 29, 2022
1 parent 3381c1c commit b637688
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static GameObject CreateTemplate()
rect.SetParent(blank.GetComponent<RectTransform>());
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>().text = "Title";
title.GetComponent<Text>().fontSize = 20;
Expand All @@ -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>().text = "Description";
desc.GetComponent<Text>().fontSize = 18;
Expand All @@ -100,7 +100,7 @@ public static GameObject CreateTemplate()
rect = icon.GetComponent<RectTransform>();
rect.SetParent(blank.GetComponent<RectTransform>());
rect.SetAsLastSibling();
rect.anchoredPosition = new Vector2(-100,0);
rect.anchoredPosition = new Vector2(0,0);
return blank;
}

Expand Down Expand Up @@ -145,7 +145,7 @@ private static GameObject CreatePanel()
GameObject blank = CreateImage();
blank.name = "Panel";
RectTransform rect = blank.GetComponent<RectTransform>();
rect.sizeDelta = new Vector2(250,100);
rect.sizeDelta = new Vector2(350,100);
rect.SetAnchor(AnchorPresets.BottomRight);
rect.SetPivot(PivotPresets.BottomRight);
blank.GetComponent<Image>().color = new Color(0.2745f,0.2745f,0.3529f,1f);
Expand Down

0 comments on commit b637688

Please sign in to comment.