mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-13 12:56:35 -05:00
d2player/game_controls: Fix health/mana globe text locking (#882)
when you click on a either of the globes the values should appear above them.
This commit is contained in:
parent
b1058d6085
commit
4506380dbb
@ -1348,7 +1348,7 @@ func (g *GameControls) renderHealthTooltip(target d2interface.Surface) {
|
||||
strPanelHealth := fmt.Sprintf(fmtHealth, healthCurr, healthMax)
|
||||
|
||||
// Display current hp and mana stats hpGlobe or manaGlobe region is clicked
|
||||
if !g.actionableRegions[hpGlobe].rect.IsInRect(mx, my) || g.hpStatsIsVisible {
|
||||
if !(g.actionableRegions[hpGlobe].rect.IsInRect(mx, my) || g.hpStatsIsVisible) {
|
||||
return
|
||||
}
|
||||
|
||||
@ -1365,7 +1365,7 @@ func (g *GameControls) renderManaTooltip(target d2interface.Surface) {
|
||||
manaCurr, manaMax := g.hero.Stats.Mana, g.hero.Stats.MaxMana
|
||||
strPanelMana := fmt.Sprintf(fmtMana, manaCurr, manaMax)
|
||||
|
||||
if !g.actionableRegions[manaGlobe].rect.IsInRect(mx, my) || g.manaStatsIsVisible {
|
||||
if !(g.actionableRegions[manaGlobe].rect.IsInRect(mx, my) || g.manaStatsIsVisible) {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user