Skip to content

Commit

Permalink
Fixed UI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dastan21 committed Nov 16, 2021
1 parent ab01591 commit 9e4e666
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions PantheonsHitCounter/Pantheon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ public int TotalHitsPb
get { return bosses.Any(boss => boss.hitsPb > -1) ? bosses.Sum(boss => Math.Max(0, boss.hitsPb)) : -1; }
}

public Pantheon(int number)
{
this.number = number;
switch (number)
{
case 1: name = "Pantheon of the Master"; break;
case 2: name = "Pantheon of the Artist"; break;
case 3: name = "Pantheon of the Sage"; break;
case 4: name = "Pantheon of the Knight"; break;
default: name = "Pantheon of Hallownest"; break;
}
}

public static int FindPantheon(List<Pantheon> pantheons, string previousSceneName, string nextSceneName)
{
// not a pantheon
Expand Down
2 changes: 1 addition & 1 deletion PantheonsHitCounter/UI/CounterUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static void UpdateUI(Pantheon pantheon)
bossPanel.GetImage("BossImageSelected").SetActive(activeSplit);
bossPanel.GetImage("BossImage").UpdateImage(bossImg, new Rect(0, 0, bossImg.width, bossImg.height));
bossPanel.GetImage("BossImageAnonymized").SetActive(anonymizeSplit);
bossPanel.GetImage("BossImage").SetActive(!anonymizeSplit);
bossPanel.GetImage("BossImage").SetActive(!anonymizeSplit && _panel.Active);
bossPanel.GetText("BossName").UpdateText(anonymizeSplit ? "????" : boss.name);
bossPanel.GetText("BossHits").UpdateText(anonymizeSplit ? "?" : boss.hits + "");
bossPanel.GetText("BossHitsPB").UpdateText(anonymizeSplit ? "?" : boss.hitsPb < 0 ? "-" : boss.hitsPb + "");
Expand Down
Binary file modified PantheonsHitCounter/UI/Images/AnonymizedBoss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9e4e666

Please sign in to comment.