tibia-client/modules/game_minimap/minimap.otui

99 lines
2.1 KiB
Plaintext
Raw Normal View History

MapControl < Button
2012-07-12 21:16:23 +02:00
size: 20 20
$pressed:
2012-07-12 21:16:23 +02:00
icon-clip: 0 0 16 16
$hover !pressed:
2012-07-12 21:16:23 +02:00
icon-clip: 0 16 16 16
$!pressed !hover:
2012-07-12 21:16:23 +02:00
icon-clip: 0 32 16 16
FloorUpControl < MapControl
2012-07-12 21:16:23 +02:00
icon-source: /game_minimap/floor_up.png
FloorDownControl < MapControl
2012-07-12 21:16:23 +02:00
icon-source: /game_minimap/floor_down.png
//ZoomOutControl < MapControl
//image-source: /game_minimap/zoom_out.png
2012-07-12 21:16:23 +02:00
//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
Label
text: ?
text-align: center
phantom: false
!tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom')
anchors.top: minimizeButton.top
anchors.right: minimizeButton.left
margin-right: 3
size: 14 14
2012-06-22 07:26:22 +02:00
MiniWindowContents
padding: 2
2012-06-22 07:26:22 +02:00
UIMap
id: minimap
2012-07-12 21:16:23 +02:00
anchors.fill: parent
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
enabled: true
2012-06-26 07:54:55 +02:00
@onClick: Minimap.onButtonClick(self:getId())
2012-07-12 21:16:23 +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
enabled: true
2012-06-26 07:54:55 +02:00
@onClick: Minimap.onButtonClick(self:getId())
2012-07-12 21:16:23 +02:00
Button
id: zoomIn
text: +
2012-07-12 21:16:23 +02:00
size: 20 20
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 4
margin-bottom: 28
enabled: true
2012-06-26 07:54:55 +02:00
@onClick: Minimap.onButtonClick(self:getId())
2012-07-12 21:16:23 +02:00
Button
id: zoomOut
text: -
font: terminus-14px-bold
2012-07-12 21:16:23 +02:00
size: 20 20
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 4
margin-bottom: 4
enabled: true
2012-06-26 07:54:55 +02:00
@onClick: Minimap.onButtonClick(self:getId())
2012-07-12 21:16:23 +02:00
Button
id: reset
!text: tr('Center')
width: 44
anchors.left: parent.left
anchors.top: parent.top
margin: 4
@onClick: Minimap.center()