Minimap refactor, make it an LFIDBearer! Moves listeners to cpp file, no need for header exposure Removes duplicate ToggleControl listener just for minimap Removes excess code from ToggleOverlay, we can use two on_clicks instead Caches direction labels instead of looking them up each frame Removes weird userdata look up on camera center menu item, fixing it Respect RLVa by hiding the submenu, shortcutting lookups per child
118 lines
4.4 KiB
XML
118 lines
4.4 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
|
<menu bottom="100" color="MenuDefaultBgColor" drop_shadow="true" height="101" left="100"
|
|
mouse_opaque="false" name="popup" opaque="true" width="128">
|
|
<menu_item_call label="Zoom Close" name="Zoom Close">
|
|
<on_click function="MiniMap.ZoomLevel" userdata="2" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Zoom Medium" name="Zoom Medium">
|
|
<on_click function="MiniMap.ZoomLevel" userdata="1" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Zoom Far" name="Zoom Far">
|
|
<on_click function="MiniMap.ZoomLevel" userdata="0" />
|
|
</menu_item_call>
|
|
<menu_item_separator />
|
|
<menu_item_check label="Center on Camera" name="Center on Camera">
|
|
<on_click function="ToggleControl" userdata="MiniMapCenter" />
|
|
<on_check control="MiniMapCenter" />
|
|
</menu_item_check>
|
|
<menu_item_check label="Rotate Mini-Map" name="Rotate Mini-Map">
|
|
<on_click function="ToggleControl" userdata="MiniMapRotate" />
|
|
<on_check control="MiniMapRotate" />
|
|
</menu_item_check>
|
|
<menu
|
|
label="Show"
|
|
name="Minimap Show">
|
|
<menu_item_check
|
|
label="Objects"
|
|
name="Objects">
|
|
<menu_item_check.on_click
|
|
function="ToggleControl"
|
|
userdata="ShowMiniMapObjects" />
|
|
<menu_item_check.on_check
|
|
control="ShowMiniMapObjects" />
|
|
</menu_item_check>
|
|
<menu_item_check
|
|
label="Property Lines"
|
|
name="Property Lines">
|
|
<menu_item_check.on_click
|
|
function="ToggleControl"
|
|
userdata="MiniMapPropertyLines" />
|
|
<menu_item_check.on_click function="Minimap.ToggleOverlay"/>
|
|
<menu_item_check.on_check
|
|
control="MiniMapPropertyLines" />
|
|
</menu_item_check>
|
|
<menu_item_check
|
|
label="Parcels for Sale"
|
|
name="Parcels for Sale">
|
|
<menu_item_check.on_click
|
|
function="ToggleControl"
|
|
userdata="MiniMapForSaleParcels" />
|
|
<menu_item_check.on_click function="Minimap.ToggleOverlay"/>
|
|
<menu_item_check.on_check
|
|
control="MiniMapForSaleParcels" />
|
|
<menu_item_check.on_enable
|
|
control="MiniMapPropertyLines" />
|
|
</menu_item_check>
|
|
<menu_item_check
|
|
label="Radar Tracking Circles"
|
|
name="Radar Tracking Circles">
|
|
<menu_item_check.on_check
|
|
control="MiniMapRadarTrackingCircles"/>
|
|
<menu_item_check.on_click
|
|
function="ToggleControl"
|
|
userdata="MiniMapRadarTrackingCircles"/>
|
|
</menu_item_check>
|
|
</menu>
|
|
<menu name="Chat Distance Rings" label="Chat Distance Rings">
|
|
<menu_item_check label="Show All" name="Show All">
|
|
<on_check function="MiniMap.CheckChatRings" />
|
|
<on_click function="MiniMap.ChatRings" />
|
|
</menu_item_check>
|
|
<menu_item_separator />
|
|
<menu_item_check label="Show Whisper Ring" name="Show Whisper Ring">
|
|
<on_check control="MiniMapWhisperRing" />
|
|
<on_click function="ToggleControl" userdata="MiniMapWhisperRing" />
|
|
</menu_item_check>
|
|
<menu_item_check label="Show Chat Ring" name="Show Chat Ring">
|
|
<on_check control="MiniMapChatRing" />
|
|
<on_click function="ToggleControl" userdata="MiniMapChatRing" />
|
|
</menu_item_check>
|
|
<menu_item_check label="Show Shout Ring" name="Show Shout Ring">
|
|
<on_check control="MiniMapShoutRing" />
|
|
<on_click function="ToggleControl" userdata="MiniMapShoutRing" />
|
|
</menu_item_check>
|
|
</menu>
|
|
<menu_item_separator />
|
|
<menu_item_call label="Stop Tracking" name="Stop Tracking">
|
|
<on_click function="StopTracking" />
|
|
<on_visible function="IsTracking" />
|
|
</menu_item_call>
|
|
<menu name="avs_menu" label="Selected Avatars" filename="menu_local_avs.xml">
|
|
<menu name="Mark" label="Mark">
|
|
<menu_item_call label="Red" name="Red">
|
|
<on_click function="MiniMap.setred" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Green" name="Green">
|
|
<on_click function="MiniMap.setgreen" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Blue" name="Blue">
|
|
<on_click function="MiniMap.setblue" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Yellow" name="Yellow">
|
|
<on_click function="MiniMap.setyellow" />
|
|
</menu_item_call>
|
|
<menu_item_call label="Custom..." name="Custom">
|
|
<on_click function="MiniMap.setcustom" />
|
|
</menu_item_call>
|
|
</menu>
|
|
<menu_item_call label="Unmark" name="Unmark">
|
|
<on_click function="MiniMap.setunmark" />
|
|
<on_enable function="MiniMap.enableunmark" />
|
|
</menu_item_call>
|
|
</menu>
|
|
<menu_item_check label="World Map Textures" name="World Map Textures">
|
|
<on_check control="MiniMapWorldMapTextures" />
|
|
<on_click function="ToggleControl" userdata="MiniMapWorldMapTextures" />
|
|
</menu_item_check>
|
|
</menu>
|