1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-16 01:17:10 -05:00

Merge pull request #958 from juander-ux/ui_manager_reset

Properly reset uiManager
This commit is contained in:
Tim Sarbin 2020-12-02 08:11:21 -05:00 committed by GitHub
commit b6518af6b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,8 @@ func (ui *UIManager) Reset() {
ui.widgets = nil
ui.clickableWidgets = nil
ui.pressedWidget = nil
ui.widgetsGroups = nil
ui.tooltips = nil
}
func (ui *UIManager) addClickable(widget ClickableWidget) {

View File

@ -395,7 +395,7 @@ func (g *GameControls) OnKeyDown(event d2interface.KeyEvent) bool {
case d2enum.ToggleInventoryPanel:
g.toggleInventoryPanel()
case d2enum.ToggleSkillTreePanel:
g.toggleInventoryPanel()
g.toggleSkilltreePanel()
case d2enum.ToggleCharacterPanel:
g.toggleHeroStatsPanel()
case d2enum.ToggleQuestLog: