1
1
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:
gravestench 2021-01-13 21:02:05 +00:00 committed by GitHub
commit 9f5cde36df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()