1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-12-25 19:46:50 -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() {
if !m.movedLeft && !m.movedRight {
if !(m.movedRight && m.movedLeft) {
m.panelGroup.SetVisible(true)
}
@ -294,6 +294,7 @@ func (m *miniPanel) moveRight() {
func (m *miniPanel) undoMoveRight() {
m.panelGroup.OffsetPosition(-panelOffsetRight, 0)
m.tooltipGroup.OffsetPosition(-panelOffsetRight, 0)
}
func (m *miniPanel) moveLeft() {