1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-10 18:00:42 +00:00

Fix layout/viewport not updated when panel is closed from UI button

This commit is contained in:
cardoso 2021-01-22 15:14:24 -03:00
parent e982430c55
commit f83c74ffde

View File

@ -621,6 +621,7 @@ func (g *GameControls) togglePartyPanel() {
} }
func (g *GameControls) onCloseHeroStatsPanel() { func (g *GameControls) onCloseHeroStatsPanel() {
g.updateLayout()
} }
func (g *GameControls) toggleLeftSkillPanel() { func (g *GameControls) toggleLeftSkillPanel() {
@ -642,6 +643,7 @@ func (g *GameControls) toggleQuestLog() {
} }
func (g *GameControls) onCloseQuestLog() { func (g *GameControls) onCloseQuestLog() {
g.updateLayout()
} }
func (g *GameControls) toggleHelpOverlay() { func (g *GameControls) toggleHelpOverlay() {
@ -659,6 +661,7 @@ func (g *GameControls) toggleInventoryPanel() {
} }
func (g *GameControls) onCloseInventory() { func (g *GameControls) onCloseInventory() {
g.updateLayout()
} }
func (g *GameControls) toggleSkilltreePanel() { func (g *GameControls) toggleSkilltreePanel() {
@ -666,6 +669,7 @@ func (g *GameControls) toggleSkilltreePanel() {
} }
func (g *GameControls) onCloseSkilltree() { func (g *GameControls) onCloseSkilltree() {
g.updateLayout()
} }
func (g *GameControls) openEscMenu() { func (g *GameControls) openEscMenu() {