You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.0 KiB

MapControl < Button
12 years ago
size: 20 20
icon-clip: 0 32 16 16
$pressed:
12 years ago
icon-clip: 0 0 16 16
$hover !pressed:
12 years ago
icon-clip: 0 16 16 16
FloorUpControl < MapControl
12 years ago
icon-source: /game_minimap/floor_up.png
FloorDownControl < MapControl
12 years ago
icon-source: /game_minimap/floor_down.png
ZoomOutControl < MapControl
//image-source: /game_minimap/zoom_out.png
12 years ago
ZoomInControl < MapControl
//image-source: /game_minimap/zoom_in.png
12 years ago
MiniWindow
id: minimapWindow
!text: tr('Minimap')
height: 150
icon: minimap.png
@onClose: Minimap.onMiniWindowClose()
&save: true
Label
text: ?
text-align: center
phantom: false
!tooltip: tr('Hold right mouse button to navigate\nScroll mouse middle button to zoom')
anchors.top: minimizeButton.top
anchors.right: minimizeButton.left
margin-right: 3
size: 14 14
12 years ago
MiniWindowContents
padding: 2
12 years ago
UIMap
id: minimap
12 years ago
anchors.fill: parent
FloorUpControl
id: floorUp
12 years ago
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 28
margin-bottom: 28
enabled: true
12 years ago
@onClick: Minimap.onButtonClick(self:getId())
12 years ago
FloorDownControl
id: floorDown
12 years ago
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 28
margin-bottom: 4
enabled: true
12 years ago
@onClick: Minimap.onButtonClick(self:getId())
12 years ago
ZoomInControl
id: zoomIn
text: +
12 years ago
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 4
margin-bottom: 28
enabled: true
12 years ago
@onClick: Minimap.onButtonClick(self:getId())
12 years ago
ZoomOutControl
id: zoomOut
text: -
font: terminus-14px-bold
12 years ago
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 4
margin-bottom: 4
enabled: true
12 years ago
@onClick: Minimap.onButtonClick(self:getId())
12 years ago
Button
id: reset
!text: tr('Center')
width: 44
anchors.left: parent.left
anchors.top: parent.top
margin: 4
@onClick: Minimap.center()