2012-07-09 13:37:47 +02:00
|
|
|
MapControl < Button
|
2012-07-12 21:16:23 +02:00
|
|
|
size: 20 20
|
2012-07-15 13:49:28 +02:00
|
|
|
icon-clip: 0 32 16 16
|
2012-07-09 13:37:47 +02:00
|
|
|
|
|
|
|
$pressed:
|
2012-07-12 21:16:23 +02:00
|
|
|
icon-clip: 0 0 16 16
|
2012-07-09 13:37:47 +02:00
|
|
|
|
|
|
|
$hover !pressed:
|
2012-07-12 21:16:23 +02:00
|
|
|
icon-clip: 0 16 16 16
|
2012-10-11 17:36:00 +02:00
|
|
|
|
|
|
|
FlagWidget < UIWidget
|
|
|
|
size: 11 11
|
|
|
|
icon-clip: 0 0 11 11
|
2013-01-18 23:39:11 +01:00
|
|
|
icon-source: /images/game/minimap/mapflags
|
2012-10-11 17:36:00 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
2012-07-09 13:37:47 +02:00
|
|
|
|
|
|
|
FloorUpControl < MapControl
|
2013-01-18 23:39:11 +01:00
|
|
|
icon-source: /images/game/minimap/floor_up
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-09 13:37:47 +02:00
|
|
|
FloorDownControl < MapControl
|
2013-01-18 23:39:11 +01:00
|
|
|
icon-source: /images/game/minimap/floor_down
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-15 13:49:28 +02:00
|
|
|
ZoomOutControl < MapControl
|
2013-01-18 23:39:11 +01:00
|
|
|
//image-source: /images/game/minimap/zoom_out
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-15 13:49:28 +02:00
|
|
|
ZoomInControl < MapControl
|
2013-01-18 23:39:11 +01:00
|
|
|
//image-source: /images/game/minimap/zoom_in
|
2012-07-09 13:37:47 +02:00
|
|
|
|
2012-06-22 07:26:22 +02:00
|
|
|
MiniWindow
|
|
|
|
id: minimapWindow
|
|
|
|
!text: tr('Minimap')
|
|
|
|
height: 150
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/topbuttons/minimap
|
2012-08-17 23:36:53 +02:00
|
|
|
@onClose: modules.game_minimap.onMiniWindowClose()
|
2012-10-11 17:36:00 +02:00
|
|
|
@onGeometryChange: updateMapFlags()
|
2012-06-24 14:41:39 +02:00
|
|
|
&save: true
|
2012-04-07 01:12:46 +02:00
|
|
|
|
2012-07-13 01:40:55 +02:00
|
|
|
Label
|
|
|
|
text: ?
|
|
|
|
text-align: center
|
|
|
|
phantom: false
|
2012-12-15 13:26:27 +01:00
|
|
|
!tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks')
|
2012-07-13 01:40:55 +02:00
|
|
|
anchors.top: minimizeButton.top
|
|
|
|
anchors.right: minimizeButton.left
|
|
|
|
margin-right: 3
|
|
|
|
size: 14 14
|
|
|
|
|
2012-06-22 07:26:22 +02:00
|
|
|
MiniWindowContents
|
2013-01-21 00:17:56 +01:00
|
|
|
UIMinimap
|
2012-06-22 07:26:22 +02:00
|
|
|
id: minimap
|
2012-07-12 21:16:23 +02:00
|
|
|
anchors.fill: parent
|
2013-01-21 00:17:56 +01:00
|
|
|
cross: true
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-10-11 17:36:00 +02:00
|
|
|
Panel
|
|
|
|
id: flagsPanel
|
|
|
|
anchors.fill: minimap
|
|
|
|
phantom: true
|
|
|
|
|
2012-07-12 18:45:22 +02:00
|
|
|
FloorUpControl
|
2012-07-12 19:29:44 +02:00
|
|
|
id: floorUp
|
2012-07-12 21:16:23 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 28
|
|
|
|
margin-bottom: 28
|
2012-07-09 13:37:47 +02:00
|
|
|
enabled: true
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: onButtonClick(self:getId())
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-12 18:45:22 +02:00
|
|
|
FloorDownControl
|
2012-07-12 19:29:44 +02:00
|
|
|
id: floorDown
|
2012-07-12 21:16:23 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 28
|
|
|
|
margin-bottom: 4
|
2012-07-09 13:37:47 +02:00
|
|
|
enabled: true
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: onButtonClick(self:getId())
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-28 15:41:10 +02:00
|
|
|
ZoomOutControl
|
2012-08-06 22:19:32 +02:00
|
|
|
id: zoomIn
|
|
|
|
text: +
|
2012-07-28 15:41:10 +02:00
|
|
|
font: terminus-14px-bold
|
2012-07-12 21:16:23 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 4
|
|
|
|
margin-bottom: 28
|
2012-07-09 13:37:47 +02:00
|
|
|
enabled: true
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: onButtonClick(self:getId())
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-28 15:41:10 +02:00
|
|
|
ZoomInControl
|
2012-08-06 22:19:32 +02:00
|
|
|
id: zoomOut
|
|
|
|
text: -
|
2012-07-12 21:16:23 +02:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 4
|
|
|
|
margin-bottom: 4
|
2012-07-09 13:37:47 +02:00
|
|
|
enabled: true
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: onButtonClick(self:getId())
|
2012-07-12 21:16:23 +02:00
|
|
|
|
2012-07-13 01:40:55 +02:00
|
|
|
Button
|
|
|
|
id: reset
|
|
|
|
!text: tr('Center')
|
|
|
|
width: 44
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin: 4
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: center()
|
2012-07-13 01:40:55 +02:00
|
|
|
|