mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
@@ -660,8 +660,7 @@ function setupViewMode(mode)
|
||||
gameMapPanel:addAnchor(AnchorRight, 'gameRightPanel', AnchorLeft)
|
||||
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomPanel', AnchorTop)
|
||||
gameRootPanel:addAnchor(AnchorTop, 'topMenu', AnchorBottom)
|
||||
gameLeftPanel:setOn(false)
|
||||
gameLeftPanel:setVisible(false)
|
||||
gameLeftPanel:setOn(modules.client_options.getOption('showLeftPanel'))
|
||||
gameLeftPanel:setImageColor('white')
|
||||
gameRightPanel:setImageColor('white')
|
||||
gameLeftPanel:setMarginTop(0)
|
||||
@@ -689,12 +688,13 @@ function setupViewMode(mode)
|
||||
gameRootPanel:fill('parent')
|
||||
gameLeftPanel:setImageColor('alpha')
|
||||
gameRightPanel:setImageColor('alpha')
|
||||
gameLeftPanel:setMarginTop(36)
|
||||
gameRightPanel:setMarginTop(36)
|
||||
gameLeftPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameLeftPanel:getPaddingTop())
|
||||
gameRightPanel:setMarginTop(modules.client_topmenu.getTopMenu():getHeight() - gameRightPanel:getPaddingTop())
|
||||
gameLeftPanel:setOn(true)
|
||||
gameLeftPanel:setVisible(true)
|
||||
gameRightPanel:setOn(true)
|
||||
gameBottomPanel:setImageColor('#00000099')
|
||||
gameMapPanel:setOn(true)
|
||||
gameBottomPanel:setImageColor('#ffffff88')
|
||||
modules.client_topmenu.getTopMenu():setImageColor('#ffffff66')
|
||||
if not limitZoom then
|
||||
g_game.changeMapAwareRange(24, 20)
|
||||
|
@@ -4,6 +4,9 @@ GameSidePanel < UIMiniWindowContainer
|
||||
image-border: 4
|
||||
padding: 4
|
||||
width: 198
|
||||
layout:
|
||||
type: verticalBox
|
||||
//spacing: 1
|
||||
|
||||
GameBottomPanel < Panel
|
||||
image-source: /images/ui/panel_bottom
|
||||
@@ -14,6 +17,9 @@ GameMapPanel < UIGameMap
|
||||
image-source: /images/ui/panel_map
|
||||
image-border: 4
|
||||
|
||||
$on:
|
||||
padding: 0
|
||||
|
||||
UIWidget
|
||||
id: gameRootPanel
|
||||
anchors.fill: parent
|
||||
@@ -36,7 +42,6 @@ UIWidget
|
||||
|
||||
GameSidePanel
|
||||
id: gameLeftPanel
|
||||
layout: verticalBox
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
@@ -49,7 +54,6 @@ UIWidget
|
||||
|
||||
GameSidePanel
|
||||
id: gameRightPanel
|
||||
layout: verticalBox
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
|
Reference in New Issue
Block a user