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.

112 lines
2.3 KiB

MapControl < Button
12 years ago
size: 20 20
$pressed:
12 years ago
icon-clip: 0 0 16 16
$hover !pressed:
12 years ago
icon-clip: 0 16 16 16
$!pressed !hover:
12 years ago
icon-clip: 0 32 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
12 years ago
MiniWindowContents
padding: 3
UIMap
id: minimap
12 years ago
anchors.fill: parent
12 years ago
UIButton
id: compass
image-source: /game_minimap/compass.png
12 years ago
image-smooth: true
color: #ffffff
12 years ago
anchors.left: parent.left
anchors.top: parent.top
size: 48 48
margin-top: 4
margin-left: 4
12 years ago
@onClick: function(...) Minimap.compassClick(...) end
12 years ago
UIButton
id: compassReset
12 years ago
text: R
font: verdana-11px-rounded
12 years ago
anchors.centerIn: compass
margin-top: 2
margin-right: 1
@onClick: function(...) Minimap.center(...) end
$pressed:
color: #eb9f4f88
$hover !pressed:
color: #eb9f4f
$!pressed !hover:
color: #ffffff
$disabled:
image-color: #ffffff88
12 years ago
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
Button
id: zoomIn
text: +
12 years ago
size: 20 20
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
Button
id: zoomOut
text: -
font: terminus-14px-bold
12 years ago
size: 20 20
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