No Description
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.

minimap.otui 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. MapControl < Button
  2. size: 20 20
  3. $pressed:
  4. icon-clip: 0 0 16 16
  5. $hover !pressed:
  6. icon-clip: 0 16 16 16
  7. $!pressed !hover:
  8. icon-clip: 0 32 16 16
  9. FloorUpControl < MapControl
  10. icon-source: /game_minimap/floor_up.png
  11. FloorDownControl < MapControl
  12. icon-source: /game_minimap/floor_down.png
  13. //ZoomOutControl < MapControl
  14. //image-source: /game_minimap/zoom_out.png
  15. //ZoomInControl < MapControl
  16. //image-source: /game_minimap/zoom_in.png
  17. MiniWindow
  18. id: minimapWindow
  19. !text: tr('Minimap')
  20. height: 150
  21. icon: minimap.png
  22. @onClose: Minimap.onMiniWindowClose()
  23. &save: true
  24. Label
  25. text: ?
  26. text-align: center
  27. phantom: false
  28. !tooltip: tr('Hold left mouse button to navigate')
  29. anchors.top: minimizeButton.top
  30. anchors.right: minimizeButton.left
  31. margin-right: 3
  32. size: 14 14
  33. MiniWindowContents
  34. padding: 2
  35. UIMap
  36. id: minimap
  37. anchors.fill: parent
  38. FloorUpControl
  39. id: floorUp
  40. anchors.right: parent.right
  41. anchors.bottom: parent.bottom
  42. margin-right: 28
  43. margin-bottom: 28
  44. enabled: true
  45. @onClick: Minimap.onButtonClick(self:getId())
  46. FloorDownControl
  47. id: floorDown
  48. anchors.right: parent.right
  49. anchors.bottom: parent.bottom
  50. margin-right: 28
  51. margin-bottom: 4
  52. enabled: true
  53. @onClick: Minimap.onButtonClick(self:getId())
  54. Button
  55. id: zoomIn
  56. text: +
  57. size: 20 20
  58. anchors.right: parent.right
  59. anchors.bottom: parent.bottom
  60. margin-right: 4
  61. margin-bottom: 28
  62. enabled: true
  63. @onClick: Minimap.onButtonClick(self:getId())
  64. Button
  65. id: zoomOut
  66. text: -
  67. font: terminus-14px-bold
  68. size: 20 20
  69. anchors.right: parent.right
  70. anchors.bottom: parent.bottom
  71. margin-right: 4
  72. margin-bottom: 4
  73. enabled: true
  74. @onClick: Minimap.onButtonClick(self:getId())
  75. Button
  76. id: reset
  77. !text: tr('Center')
  78. width: 44
  79. anchors.left: parent.left
  80. anchors.top: parent.top
  81. margin: 4
  82. @onClick: Minimap.center()