Minimap Icons

Now server can call:
doPlayerAddMapMark(cid, pos, icon, description)
and it will be parsed.

TODO:
Adding map icons by rightclick on minimap menu.
Removing icons.

Needs to be tested when switching between different versions.
This commit is contained in:
Samuel
2012-10-11 17:36:00 +02:00
parent f48fb4343f
commit 3990ee76e7
5 changed files with 175 additions and 6 deletions

View File

@@ -7,6 +7,13 @@ MapControl < Button
$hover !pressed:
icon-clip: 0 16 16 16
FlagWidget < UIWidget
size: 11 11
icon-clip: 0 0 11 11
icon-source: /game_minimap/images/mapflags.png
anchors.left: parent.left
anchors.top: parent.top
FloorUpControl < MapControl
icon-source: /game_minimap/images/floor_up.png
@@ -26,6 +33,7 @@ MiniWindow
height: 150
icon: minimap.png
@onClose: modules.game_minimap.onMiniWindowClose()
@onGeometryChange: updateMapFlags()
&save: true
Label
@@ -43,6 +51,11 @@ MiniWindow
id: minimap
anchors.fill: parent
Panel
id: flagsPanel
anchors.fill: minimap
phantom: true
FloorUpControl
id: floorUp
anchors.right: parent.right