Skip to content

Commit

Permalink
fixes for alpha comments
Browse files Browse the repository at this point in the history
  • Loading branch information
estarriol committed Dec 22, 2022
1 parent 35042cb commit c68a3f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion unity/Assets/Scripts/Quest/InventoryButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public InventoryButton()
if (game.gameType is MoMGameType) return;

UIElement ui = new UIElement(Game.QUESTUI);
ui.SetLocation(15.5f, UIScaler.GetBottom(-2.5f), 5, 2);
ui.SetLocation(17.5f, UIScaler.GetBottom(-2.5f), 6, 2);
ui.SetText(ITEMS);
ui.SetFont(game.gameType.GetHeaderFont());
ui.SetFontSize(UIScaler.GetMediumFont());
Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/Scripts/Quest/SkillButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public SkillButton()
if (game.gameType is MoMGameType) return;

UIElement ui = new UIElement(Game.QUESTUI);
ui.SetLocation(10.5f, UIScaler.GetBottom(-2.5f), 5, 2);
ui.SetLocation(11.5f, UIScaler.GetBottom(-2.5f), 6, 2);
ui.SetText(SKILLS);
ui.SetFont(game.gameType.GetHeaderFont());
ui.SetFontSize(UIScaler.GetMediumFont());
Expand Down
9 changes: 6 additions & 3 deletions unity/Assets/Scripts/QuestEditor/EditorComponentEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -913,9 +913,12 @@ public void AddVisibility(bool add, int index = -1)
traits.Add(CommonStringKeys.TYPE.Translate(), new string[] { "Special" });
traits.Add(CommonStringKeys.SOURCE.Translate(), new string[] { "Special" });

select.AddItem("#boardcomponents", traits);
select.AddItem("#monsters", traits);
select.AddItem("#shop", traits);
if (!add)
{
select.AddItem("#boardcomponents", traits);
select.AddItem("#monsters", traits);
select.AddItem("#shop", traits);
}

if (game.gameType is D2EGameType || game.gameType is IAGameType)
{
Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/Scripts/UI/LogButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public LogButton()
if (game.gameType is MoMGameType) return;

UIElement ui = new UIElement(Game.QUESTUI);
ui.SetLocation(5.5f, UIScaler.GetBottom(-2.5f),5, 2);
ui.SetLocation(5.5f, UIScaler.GetBottom(-2.5f),6, 2);
ui.SetText(LOG);
ui.SetFont(Game.Get().gameType.GetHeaderFont());
ui.SetFontSize(UIScaler.GetMediumFont());
Expand Down
2 changes: 1 addition & 1 deletion unity/Assets/Scripts/UI/Screens/OptionsScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private void CreateLanguageElements()
string currentLanguage = langs[i];

ui = new UIElement();
ui.SetLocation((0.25f * UIScaler.GetWidthUnits()) - 6, verticalStart + (2f * position), 8, 1.8f);
ui.SetLocation((0.25f * UIScaler.GetWidthUnits()) - 6, verticalStart + (1.8f * position), 8, 1.6f);
if (!enabled_langs.Contains(currentLanguage))
{
ui.SetText(currentLanguage, Color.red);
Expand Down

0 comments on commit c68a3f7

Please sign in to comment.