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:
commit
b6518af6b3
@ -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) {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user