Skip to content

Commit

Permalink
fix: Interface Anchors (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkullzOTS authored Aug 29, 2024
1 parent 66bdb8b commit 3c1191d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions modules/game_interface/gameinterface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ function setupViewMode(mode)
gameMapPanel:addAnchor(AnchorRight, 'gameRightPanel', AnchorLeft)
gameMapPanel:addAnchor(AnchorRight, 'gameRightExtraPanel', AnchorLeft)
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomPanel', AnchorTop)
gameRootPanel:addAnchor(AnchorTop, 'topMenu', AnchorBottom)
gameRootPanel:addAnchor(AnchorTop, 'parent', AnchorTop)
gameLeftPanel:setOn(modules.client_options.getOption('showLeftPanel'))
gameRightExtraPanel:setOn(modules.client_options.getOption('showRightExtraPanel'))
gameLeftExtraPanel:setOn(modules.client_options.getOption('showLeftExtraPanel'))
Expand Down Expand Up @@ -1276,12 +1276,6 @@ function setupViewMode(mode)
gameRightPanel:setImageColor('alpha')
gameRightExtraPanel:setImageColor('alpha')
gameLeftExtraPanel:setImageColor('alpha')
gameLeftPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameLeftPanel:getPaddingTop())
gameRightPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameRightPanel:getPaddingTop())
gameRightExtraPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() -
gameRightExtraPanel:getPaddingTop())
gameLeftExtraPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() -
gameLeftExtraPanel:getPaddingTop())
gameLeftPanel:setOn(true)
gameLeftPanel:setVisible(true)
gameRightPanel:setOn(true)
Expand Down

0 comments on commit 3c1191d

Please sign in to comment.