mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Updated to OTCv8 3.1 rev 131
This commit is contained in:
@@ -3,11 +3,8 @@ gameMapPanel = nil
|
||||
gameRightPanels = nil
|
||||
gameLeftPanels = nil
|
||||
gameBottomPanel = nil
|
||||
gameBottomActionPanel = nil
|
||||
gameLeftActionPanel = nil
|
||||
gameRightActionPanel = nil
|
||||
gameActionPanel = nil
|
||||
gameLeftActions = nil
|
||||
gameTopBar = nil
|
||||
logoutButton = nil
|
||||
mouseGrabberWidget = nil
|
||||
countWindow = nil
|
||||
@@ -50,10 +47,7 @@ function init()
|
||||
gameRightPanels = gameRootPanel:getChildById('gameRightPanels')
|
||||
gameLeftPanels = gameRootPanel:getChildById('gameLeftPanels')
|
||||
gameBottomPanel = gameRootPanel:getChildById('gameBottomPanel')
|
||||
gameBottomActionPanel = gameRootPanel:getChildById('gameBottomActionPanel')
|
||||
gameRightActionPanel = gameRootPanel:getChildById('gameRightActionPanel')
|
||||
gameLeftActionPanel = gameRootPanel:getChildById('gameLeftActionPanel')
|
||||
gameTopBar = gameRootPanel:getChildById('gameTopBar')
|
||||
gameActionPanel = gameRootPanel:getChildById('gameActionPanel')
|
||||
gameLeftActions = gameRootPanel:getChildById('gameLeftActions')
|
||||
connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
|
||||
|
||||
@@ -883,20 +877,8 @@ function getBottomPanel()
|
||||
return gameBottomPanel
|
||||
end
|
||||
|
||||
function getBottomActionPanel()
|
||||
return gameBottomActionPanel
|
||||
end
|
||||
|
||||
function getLeftActionPanel()
|
||||
return gameLeftActionPanel
|
||||
end
|
||||
|
||||
function getRightActionPanel()
|
||||
return gameRightActionPanel
|
||||
end
|
||||
|
||||
function getTopBar()
|
||||
return gameTopBar
|
||||
function getActionPanel()
|
||||
return gameActionPanel
|
||||
end
|
||||
|
||||
function refreshViewMode()
|
||||
@@ -963,10 +945,9 @@ function refreshViewMode()
|
||||
|
||||
if classic then
|
||||
g_game.changeMapAwareRange(19, 15)
|
||||
gameMapPanel:addAnchor(AnchorLeft, 'gameLeftActionPanel', AnchorRight)
|
||||
gameMapPanel:addAnchor(AnchorRight, 'gameRightActionPanel', AnchorLeft)
|
||||
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomActionPanel', AnchorTop)
|
||||
gameMapPanel:addAnchor(AnchorTop, 'gameTopBar', AnchorBottom)
|
||||
gameMapPanel:addAnchor(AnchorLeft, 'gameLeftPanels', AnchorRight)
|
||||
gameMapPanel:addAnchor(AnchorRight, 'gameRightPanels', AnchorLeft)
|
||||
gameMapPanel:addAnchor(AnchorBottom, 'gameActionPanel', AnchorTop)
|
||||
gameMapPanel:setKeepAspectRatio(true)
|
||||
gameMapPanel:setLimitVisibleRange(false)
|
||||
gameMapPanel:setZoom(11)
|
||||
|
@@ -96,22 +96,6 @@ UIWidget
|
||||
type: horizontalBox
|
||||
fit-children: true
|
||||
spacing: -1
|
||||
|
||||
Panel
|
||||
id: gameLeftActionPanel
|
||||
phantom: true
|
||||
focusable: false
|
||||
anchors.top: gameTopBar.bottom
|
||||
anchors.left: gameLeftPanels.right
|
||||
anchors.bottom: bottomSplitter.top
|
||||
margin-top: 3
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
layout:
|
||||
type: horizontalBox
|
||||
fit-children: true
|
||||
|
||||
Panel
|
||||
id: gameRightPanels
|
||||
@@ -123,22 +107,6 @@ UIWidget
|
||||
type: horizontalBox
|
||||
fit-children: true
|
||||
spacing: -1
|
||||
|
||||
Panel
|
||||
id: gameRightActionPanel
|
||||
phantom: true
|
||||
focusable: false
|
||||
anchors.top: gameTopBar.bottom
|
||||
anchors.right: gameRightPanels.left
|
||||
anchors.bottom: bottomSplitter.top
|
||||
margin-top: 3
|
||||
|
||||
$mobile:
|
||||
visible: false
|
||||
|
||||
layout:
|
||||
type: horizontalBox
|
||||
fit-children: true
|
||||
|
||||
Splitter
|
||||
id: bottomSplitter
|
||||
@@ -155,7 +123,7 @@ UIWidget
|
||||
visible: false
|
||||
|
||||
Panel
|
||||
id: gameBottomActionPanel
|
||||
id: gameActionPanel
|
||||
phantom: true
|
||||
focusable: false
|
||||
|
||||
@@ -177,9 +145,9 @@ UIWidget
|
||||
Panel
|
||||
id: gameBottomPanel
|
||||
$!mobile:
|
||||
anchors.left: gameBottomActionPanel.left
|
||||
anchors.right: gameBottomActionPanel.right
|
||||
anchors.top: gameBottomActionPanel.bottom
|
||||
anchors.left: gameActionPanel.left
|
||||
anchors.right: gameActionPanel.right
|
||||
anchors.top: gameActionPanel.bottom
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
$mobile:
|
||||
@@ -191,18 +159,3 @@ UIWidget
|
||||
id: mouseGrabber
|
||||
focusable: false
|
||||
visible: false
|
||||
|
||||
Panel
|
||||
id: gameTopBar
|
||||
image-source: /images/ui/panel_bottom2
|
||||
anchors.top: parent.top
|
||||
anchors.left: gameBottomActionPanel.left
|
||||
anchors.right: gameBottomActionPanel.right
|
||||
focusable: false
|
||||
|
||||
$mobile:
|
||||
height: 0
|
||||
|
||||
layout:
|
||||
type: verticalBox
|
||||
fit-children: true
|
@@ -35,7 +35,6 @@ Module
|
||||
- game_shop
|
||||
- game_itemselector
|
||||
- client_textedit
|
||||
- client_profiles
|
||||
- game_actionbar
|
||||
- game_prey
|
||||
- game_imbuing
|
||||
|
Reference in New Issue
Block a user