mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Few minor fixes from previous commit.
This commit is contained in:
@@ -137,11 +137,11 @@ function Minimap.onButtonClick(id)
|
||||
minimapWidget:setZoom(math.max(minimapWidget:getMaxZoomIn(), minimapWidget:getZoom()-15))
|
||||
elseif id == "zoomOut" then
|
||||
minimapWidget:setZoom(math.min(minimapWidget:getMaxZoomOut(), minimapWidget:getZoom()+15))
|
||||
elseif id == "levelUp" then
|
||||
elseif id == "floorUp" then
|
||||
local pos = minimapWidget:getCameraPosition()
|
||||
pos.z = pos.z - 1
|
||||
minimapWidget:setCameraPosition(pos)
|
||||
elseif id == "levelDown" then
|
||||
elseif id == "floorDown" then
|
||||
local pos = minimapWidget:getCameraPosition()
|
||||
pos.z = pos.z + 1
|
||||
minimapWidget:setCameraPosition(pos)
|
||||
|
@@ -78,18 +78,18 @@ MiniWindow
|
||||
image-color: #ffffff88
|
||||
|
||||
FloorUpControl
|
||||
id: levelUp
|
||||
anchors.left: minimap.right
|
||||
anchors.top: compass.bottom
|
||||
id: floorUp
|
||||
anchors.left: minimap.right
|
||||
anchors.top: compass.bottom
|
||||
margin-top: 10
|
||||
margin-left: 15
|
||||
enabled: true
|
||||
@onClick: Minimap.onButtonClick(self:getId())
|
||||
|
||||
FloorDownControl
|
||||
id: levelDown
|
||||
anchors.left: levelUp.left
|
||||
anchors.top: levelUp.bottom
|
||||
id: floorDown
|
||||
anchors.left: floorUp.left
|
||||
anchors.top: floorUp.bottom
|
||||
margin-top: 4
|
||||
enabled: true
|
||||
@onClick: Minimap.onButtonClick(self:getId())
|
||||
@@ -98,8 +98,8 @@ MiniWindow
|
||||
id: zoomIn
|
||||
text: +
|
||||
size: 16 16
|
||||
anchors.left: levelUp.right
|
||||
anchors.top: levelUp.top
|
||||
anchors.left: floorUp.right
|
||||
anchors.top: floorUp.top
|
||||
margin-left: 10
|
||||
enabled: true
|
||||
@onClick: Minimap.onButtonClick(self:getId())
|
||||
@@ -109,8 +109,8 @@ MiniWindow
|
||||
text: -
|
||||
font: terminus-14px-bold
|
||||
size: 16 16
|
||||
anchors.left: levelDown.right
|
||||
anchors.top: levelDown.top
|
||||
anchors.left: floorDown.right
|
||||
anchors.top: floorDown.top
|
||||
margin-left: 10
|
||||
enabled: true
|
||||
@onClick: Minimap.onButtonClick(self:getId())
|
||||
|
Reference in New Issue
Block a user