|
|
@ -1,23 +1,20 @@
|
|
|
|
MapControl < Button
|
|
|
|
MapControl < Button
|
|
|
|
size: 16 16
|
|
|
|
size: 20 20
|
|
|
|
|
|
|
|
|
|
|
|
$pressed:
|
|
|
|
$pressed:
|
|
|
|
image-clip: 0 0 16 16
|
|
|
|
icon-clip: 0 0 16 16
|
|
|
|
|
|
|
|
|
|
|
|
$hover !pressed:
|
|
|
|
$hover !pressed:
|
|
|
|
image-clip: 0 16 16 16
|
|
|
|
icon-clip: 0 16 16 16
|
|
|
|
|
|
|
|
|
|
|
|
$!pressed !hover:
|
|
|
|
$!pressed !hover:
|
|
|
|
image-clip: 0 32 16 16
|
|
|
|
icon-clip: 0 32 16 16
|
|
|
|
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
|
|
|
|
image-color: #ffffff88
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FloorUpControl < MapControl
|
|
|
|
FloorUpControl < MapControl
|
|
|
|
image-source: /game_minimap/floor_up.png
|
|
|
|
icon-source: /game_minimap/floor_up.png
|
|
|
|
|
|
|
|
|
|
|
|
FloorDownControl < MapControl
|
|
|
|
FloorDownControl < MapControl
|
|
|
|
image-source: /game_minimap/floor_down.png
|
|
|
|
icon-source: /game_minimap/floor_down.png
|
|
|
|
|
|
|
|
|
|
|
|
//ZoomOutControl < MapControl
|
|
|
|
//ZoomOutControl < MapControl
|
|
|
|
//image-source: /game_minimap/zoom_out.png
|
|
|
|
//image-source: /game_minimap/zoom_out.png
|
|
|
@ -37,70 +34,66 @@ MiniWindow
|
|
|
|
padding: 3
|
|
|
|
padding: 3
|
|
|
|
UIMap
|
|
|
|
UIMap
|
|
|
|
id: minimap
|
|
|
|
id: minimap
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.top: parent.top
|
|
|
|
|
|
|
|
size: 110 110
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UIButton
|
|
|
|
UIButton
|
|
|
|
id: compass
|
|
|
|
id: compass
|
|
|
|
image-source: /game_minimap/compass.png
|
|
|
|
image-source: /game_minimap/compass.png
|
|
|
|
|
|
|
|
image-smooth: true
|
|
|
|
color: #ffffff
|
|
|
|
color: #ffffff
|
|
|
|
anchors.left: minimap.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: minimap.top
|
|
|
|
anchors.top: parent.top
|
|
|
|
size: 60 60
|
|
|
|
size: 48 48
|
|
|
|
margin-top: 3
|
|
|
|
margin-top: 4
|
|
|
|
margin-left: 5
|
|
|
|
margin-left: 4
|
|
|
|
@onClick: function(...) Minimap.compassClick(...) end
|
|
|
|
@onClick: function(...) Minimap.compassClick(...) end
|
|
|
|
|
|
|
|
|
|
|
|
UIButton
|
|
|
|
UIButton
|
|
|
|
id: compassReset
|
|
|
|
id: compassReset
|
|
|
|
text: Reset
|
|
|
|
text: R
|
|
|
|
font: verdana-11px-rounded
|
|
|
|
font: verdana-11px-rounded
|
|
|
|
anchors.left: compass.left
|
|
|
|
anchors.centerIn: compass
|
|
|
|
anchors.top: compass.top
|
|
|
|
margin-top: 2
|
|
|
|
margin-top: 25
|
|
|
|
margin-right: 1
|
|
|
|
margin-left: 14
|
|
|
|
|
|
|
|
@onClick: function(...) Minimap.center(...) end
|
|
|
|
@onClick: function(...) Minimap.center(...) end
|
|
|
|
$pressed:
|
|
|
|
$pressed:
|
|
|
|
color: #eb9f4f88
|
|
|
|
color: #eb9f4f88
|
|
|
|
margin-top: 26
|
|
|
|
|
|
|
|
margin-left: 15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$hover !pressed:
|
|
|
|
$hover !pressed:
|
|
|
|
color: #eb9f4f
|
|
|
|
color: #eb9f4f
|
|
|
|
|
|
|
|
|
|
|
|
$!pressed !hover:
|
|
|
|
$!pressed !hover:
|
|
|
|
color: #ffffff
|
|
|
|
color: #ffffff
|
|
|
|
margin-top: 25
|
|
|
|
|
|
|
|
margin-left: 14
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
$disabled:
|
|
|
|
image-color: #ffffff88
|
|
|
|
image-color: #ffffff88
|
|
|
|
|
|
|
|
|
|
|
|
FloorUpControl
|
|
|
|
FloorUpControl
|
|
|
|
id: floorUp
|
|
|
|
id: floorUp
|
|
|
|
anchors.left: minimap.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: compass.bottom
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-top: 10
|
|
|
|
margin-right: 28
|
|
|
|
margin-left: 15
|
|
|
|
margin-bottom: 28
|
|
|
|
enabled: true
|
|
|
|
enabled: true
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
|
|
|
|
|
|
|
FloorDownControl
|
|
|
|
FloorDownControl
|
|
|
|
id: floorDown
|
|
|
|
id: floorDown
|
|
|
|
anchors.left: floorUp.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: floorUp.bottom
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-top: 4
|
|
|
|
margin-right: 28
|
|
|
|
|
|
|
|
margin-bottom: 4
|
|
|
|
enabled: true
|
|
|
|
enabled: true
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
|
|
|
|
|
|
|
Button
|
|
|
|
Button
|
|
|
|
id: zoomIn
|
|
|
|
id: zoomIn
|
|
|
|
text: +
|
|
|
|
text: +
|
|
|
|
size: 16 16
|
|
|
|
size: 20 20
|
|
|
|
anchors.left: floorUp.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: floorUp.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-left: 10
|
|
|
|
margin-right: 4
|
|
|
|
|
|
|
|
margin-bottom: 28
|
|
|
|
enabled: true
|
|
|
|
enabled: true
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
|
|
|
|
|
|
@ -108,10 +101,11 @@ MiniWindow
|
|
|
|
id: zoomOut
|
|
|
|
id: zoomOut
|
|
|
|
text: -
|
|
|
|
text: -
|
|
|
|
font: terminus-14px-bold
|
|
|
|
font: terminus-14px-bold
|
|
|
|
size: 16 16
|
|
|
|
size: 20 20
|
|
|
|
anchors.left: floorDown.right
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: floorDown.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-left: 10
|
|
|
|
margin-right: 4
|
|
|
|
|
|
|
|
margin-bottom: 4
|
|
|
|
enabled: true
|
|
|
|
enabled: true
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
|
|
|
|
|
|
|