Skip to content

Commit

Permalink
Fixed Text size
Browse files Browse the repository at this point in the history
  • Loading branch information
NotLe0n committed Mar 21, 2021
1 parent ecdf060 commit e221dd5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion UIGenerator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UIGenerator", "UIGenerator\UIGenerator.csproj", "{ABBE6209-9DB2-449E-B1DD-E3145E5D22DB}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UIGenerator", "UIGenerator\UIGenerator.csproj", "{ABBE6209-9DB2-449E-B1DD-E3145E5D22DB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion UIGenerator/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ protected override void LoadContent()
#endif

fontMouseText = fontSystem.GetFont(20);
fontDeathText = fontSystem.GetFont(40);
fontDeathText = fontSystem.GetFont(80);

SceneUI.Backgrounds = new Texture2D[]
{
Expand Down
14 changes: 7 additions & 7 deletions UIGenerator/UI/UIStates/AddElements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public override void OnInitialize()
panel.Height.Set(100, 0);
AddElement(panel);

AddElement(new UIText("UIText", 1, true));
AddElement(new UIText("UIText", 2));

UITextPanel<string> textPanel = new UITextPanel<string>("UITextPanel", 1, true);
UITextPanel<string> textPanel = new UITextPanel<string>("UITextPanel", 2);
textPanel.Width.Set(0, 0.8f);
AddElement(textPanel);

UITextBox textBox = new UITextBox("UITextBox", 1, true);
UITextBox textBox = new UITextBox("UITextBox", 2);
textBox.Width.Set(0, 0.8f);
AddElement(textBox);

Expand All @@ -51,7 +51,7 @@ public override void OnInitialize()

/////////////////////////

UIText branding = new UIText("made by NotLe0n#7696", 1, true);
UIText branding = new UIText("made by NotLe0n#7696", 2);
branding.Left.Set(30, 0f);
branding.Top.Set(0, 0.92f);
Append(branding);
Expand All @@ -70,15 +70,15 @@ private void AddElement(UIElement element)
}
else if (element.GetType() == typeof(UIText))
{
NewInteractable(elm, new UIInteractableText("UIText", 1, true));
NewInteractable(elm, new UIInteractableText("UIText", 2));
}
else if (element.GetType() == typeof(UITextPanel<string>))
{
NewInteractable(elm, new UIInteractableTextPanel<string>("UITextPanel", 1, true));
NewInteractable(elm, new UIInteractableTextPanel<string>("UITextPanel", 2));
}
else if (element.GetType() == typeof(UITextBox))
{
NewInteractable(elm, new UIInteractableInput<string>("UITextBox", 1, true));
NewInteractable(elm, new UIInteractableInput<string>("UITextBox", 2));
}
else if (element.GetType() == typeof(UIImage))
{
Expand Down
2 changes: 1 addition & 1 deletion UIGenerator/UI/UIStates/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public override void OnInitialize()
panel.Append(gridToggle);
#endregion

UITextPanel<string> makeCodeBtn = new UITextPanel<string>("Generate Code", 1, true);
UITextPanel<string> makeCodeBtn = new UITextPanel<string>("Generate Code", 2);
makeCodeBtn.Left.Set(0, 0.8f);
makeCodeBtn.Top.Set(0, 0.9f);
makeCodeBtn.OnClick += (evt, elm) =>
Expand Down
6 changes: 3 additions & 3 deletions UIGenerator/UI/UIStates/SelectElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ public override void OnInitialize()
list.SetScrollbar(scrollbar);
Append(list);

var typeText = new UIText(Main.SelectedElement.Name, 1, true);
var typeText = new UIText(Main.SelectedElement.Name, 2);
typeText.HAlign = 0.5f;
typeText.VAlign = 0.05f;
Append(typeText);

CreateList();

UIText branding = new UIText("made by NotLe0n#7696", 1, true);
UIText branding = new UIText("made by NotLe0n#7696", 2);
branding.Left.Set(30, 0f);
branding.Top.Set(0, 0.92f);
Append(branding);
Expand Down Expand Up @@ -145,7 +145,7 @@ private void AddProperties(PropertyInfo[] properties)
{
if (properties[i].SetMethod != null)
{
var propertyText = new UIText(properties[i].Name, 1, true);
var propertyText = new UIText(properties[i].Name, 2);
propertyText.HAlign = 0.3f;
list.Add(propertyText);

Expand Down

0 comments on commit e221dd5

Please sign in to comment.