mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-14 16:26:31 -05:00
Merge pull request #1029 from gucio321/game-control-refactor
bugfix: prevent opening panels (skill/ inventory, etc) when escape menu is open
This commit is contained in:
commit
9f5cde36df
@ -573,7 +573,7 @@ func (g *GameControls) clearScreen() {
|
||||
}
|
||||
|
||||
func (g *GameControls) openLeftPanel(panel Panel) {
|
||||
if !g.HelpOverlay.IsOpen() {
|
||||
if !g.HelpOverlay.IsOpen() && !g.escapeMenu.IsOpen() {
|
||||
isOpen := panel.IsOpen()
|
||||
|
||||
g.clearLeftScreenSide()
|
||||
@ -587,7 +587,7 @@ func (g *GameControls) openLeftPanel(panel Panel) {
|
||||
}
|
||||
|
||||
func (g *GameControls) openRightPanel(panel Panel) {
|
||||
if !g.HelpOverlay.IsOpen() {
|
||||
if !g.HelpOverlay.IsOpen() && !g.escapeMenu.IsOpen() {
|
||||
isOpen := panel.IsOpen()
|
||||
|
||||
g.clearRightScreenSide()
|
||||
|
Loading…
Reference in New Issue
Block a user