Skip to content

Commit

Permalink
FIx items red background on secondary vault display
Browse files Browse the repository at this point in the history
  • Loading branch information
hguy committed Aug 20, 2023
1 parent 528c05e commit 838115b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/TQVaultAE.GUI/Components/EquipmentPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,11 @@ protected override void PaintAreaUnderItem(PaintEventArgs e)
// If we are showing the cannot equip background then
// change to invalid color and adjust the alpha.
else if (
(Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item))
|| !IsSuitableForCurrentPlayer(item)
!this.SecondaryVaultShown
&& (
(Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item))
|| !IsSuitableForCurrentPlayer(item)
)
)
{
backgroundColor = this.HighlightInvalidItemColor;
Expand Down
7 changes: 5 additions & 2 deletions src/TQVaultAE.GUI/Components/SackPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2544,8 +2544,11 @@ protected virtual void PaintAreaUnderItem(PaintEventArgs e)
// If we are showing the cannot equip background then
// change to invalid color and adjust the alpha.
else if (
(Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item))
|| !IsSuitableForCurrentPlayer(item)
!this.SecondaryVaultShown
&& (
(Config.UserSettings.Default.EnableItemRequirementRestriction && !this.PlayerMeetRequierements(item))
|| !IsSuitableForCurrentPlayer(item)
)
)
{
backgroundColor = this.HighlightInvalidItemColor;
Expand Down

0 comments on commit 838115b

Please sign in to comment.