2012-07-09 13:37:47 +02:00
|
|
|
MapControl < Button
|
|
|
|
size: 16 16
|
|
|
|
|
|
|
|
$pressed:
|
|
|
|
image-clip: 0 0 16 16
|
|
|
|
|
|
|
|
$hover !pressed:
|
|
|
|
image-clip: 0 16 16 16
|
|
|
|
|
|
|
|
$!pressed !hover:
|
|
|
|
image-clip: 0 32 16 16
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
image-color: #ffffff88
|
|
|
|
|
|
|
|
FloorUpControl < MapControl
|
|
|
|
image-source: /game_minimap/floor_up.png
|
|
|
|
|
|
|
|
FloorDownControl < MapControl
|
|
|
|
image-source: /game_minimap/floor_down.png
|
|
|
|
|
|
|
|
//ZoomOutControl < MapControl
|
|
|
|
//image-source: /game_minimap/zoom_out.png
|
|
|
|
|
|
|
|
//ZoomInControl < MapControl
|
|
|
|
//image-source: /game_minimap/zoom_in.png
|
|
|
|
|
2012-06-22 07:26:22 +02:00
|
|
|
MiniWindow
|
|
|
|
id: minimapWindow
|
|
|
|
!text: tr('Minimap')
|
|
|
|
height: 150
|
|
|
|
icon: minimap.png
|
2012-06-24 14:41:39 +02:00
|
|
|
@onClose: Minimap.onMiniWindowClose()
|
|
|
|
&save: true
|
2012-04-07 01:12:46 +02:00
|
|
|
|
2012-06-22 07:26:22 +02:00
|
|
|
MiniWindowContents
|
|
|
|
padding: 3
|
|
|
|
UIMap
|
|
|
|
id: minimap
|
2012-06-26 07:54:55 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
size: 110 110
|
|
|
|
|
|
|
|
UIButton
|
|
|
|
id: compass
|
|
|
|
image-source: /game_minimap/compass.png
|
2012-07-09 13:37:47 +02:00
|
|
|
color: #ffffff
|
2012-06-26 07:54:55 +02:00
|
|
|
anchors.left: minimap.right
|
|
|
|
anchors.top: minimap.top
|
|
|
|
size: 60 60
|
2012-07-09 13:37:47 +02:00
|
|
|
margin-top: 3
|
2012-06-26 07:54:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
@onClick: function(...) Minimap.compassClick(...) end
|
|
|
|
|
2012-07-09 13:37:47 +02:00
|
|
|
UIButton
|
|
|
|
id: compassReset
|
|
|
|
text: Reset
|
|
|
|
font: verdana-11px-rounded
|
|
|
|
anchors.left: compass.left
|
|
|
|
anchors.top: compass.top
|
|
|
|
margin-top: 25
|
|
|
|
margin-left: 14
|
|
|
|
@onClick: function(...) Minimap.center(...) end
|
|
|
|
$pressed:
|
|
|
|
color: #eb9f4f88
|
|
|
|
margin-top: 26
|
|
|
|
margin-left: 15
|
|
|
|
|
|
|
|
$hover !pressed:
|
|
|
|
color: #eb9f4f
|
|
|
|
|
|
|
|
$!pressed !hover:
|
|
|
|
color: #ffffff
|
|
|
|
margin-top: 25
|
|
|
|
margin-left: 14
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
image-color: #ffffff88
|
|
|
|
|
2012-06-26 07:54:55 +02:00
|
|
|
Button
|
|
|
|
id: zoomOut
|
|
|
|
text: -
|
2012-07-09 13:37:47 +02:00
|
|
|
font: terminus-14px-bold
|
|
|
|
size: 16 16
|
2012-06-26 07:54:55 +02:00
|
|
|
anchors.left: minimap.right
|
|
|
|
anchors.top: compass.bottom
|
2012-07-09 13:37:47 +02:00
|
|
|
margin-top: 10
|
|
|
|
margin-left: 10
|
|
|
|
enabled: true
|
2012-06-26 07:54:55 +02:00
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
|
|
|
Button
|
|
|
|
id: zoomIn
|
|
|
|
text: +
|
2012-07-09 13:37:47 +02:00
|
|
|
size: 16 16
|
2012-06-26 07:54:55 +02:00
|
|
|
anchors.left: zoomOut.left
|
|
|
|
anchors.top: zoomOut.bottom
|
2012-07-09 13:37:47 +02:00
|
|
|
margin-top: 4
|
|
|
|
enabled: true
|
2012-06-26 07:54:55 +02:00
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
2012-07-09 13:37:47 +02:00
|
|
|
FloorUpControl
|
2012-06-26 07:54:55 +02:00
|
|
|
id: levelUp
|
|
|
|
anchors.left: zoomOut.right
|
|
|
|
anchors.top: zoomOut.top
|
2012-07-09 13:37:47 +02:00
|
|
|
margin-left: 15
|
|
|
|
enabled: true
|
2012-06-26 07:54:55 +02:00
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|
2012-07-09 13:37:47 +02:00
|
|
|
FloorDownControl
|
2012-06-26 07:54:55 +02:00
|
|
|
id: levelDown
|
|
|
|
anchors.left: zoomIn.right
|
|
|
|
anchors.top: zoomIn.top
|
2012-07-09 13:37:47 +02:00
|
|
|
margin-left: 15
|
|
|
|
enabled: true
|
2012-06-26 07:54:55 +02:00
|
|
|
@onClick: Minimap.onButtonClick(self:getId())
|
|
|
|
|