1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-04 09:17:17 -05:00

Merge pull request #953 from gucio321/hotfix

Hotfix: minipanel bugs
This commit is contained in:
Tim Sarbin 2020-11-26 14:58:51 -05:00 committed by GitHub
commit 301a9698c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ func (m *miniPanel) Toggle() {
} }
func (m *miniPanel) Open() { func (m *miniPanel) Open() {
if !m.movedLeft && !m.movedRight { if !(m.movedRight && m.movedLeft) {
m.panelGroup.SetVisible(true) m.panelGroup.SetVisible(true)
} }
@ -294,6 +294,7 @@ func (m *miniPanel) moveRight() {
func (m *miniPanel) undoMoveRight() { func (m *miniPanel) undoMoveRight() {
m.panelGroup.OffsetPosition(-panelOffsetRight, 0) m.panelGroup.OffsetPosition(-panelOffsetRight, 0)
m.tooltipGroup.OffsetPosition(-panelOffsetRight, 0)
} }
func (m *miniPanel) moveLeft() { func (m *miniPanel) moveLeft() {