Add Mark menu to radar

This commit is contained in:
Liru Færs
2020-01-08 15:23:51 -05:00
parent 65dad7acfd
commit 4055af4afd
2 changed files with 23 additions and 3 deletions

View File

@@ -1498,9 +1498,8 @@ bool LLScaleMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
//moymod - minimap color shit
void markMassAgents(const LLColor4& color)
{
auto self = LFIDBearer::getActive<LLNetMap>();
for (const auto& id : self->getSelectedIDs())
self->mm_setcolor(id, color);
for (const auto& id : LFIDBearer::getActiveSelectedIDs())
LLNetMap::mm_setcolor(id, color);
}
bool mmsetred::handleEvent(LLPointer<LLEvent>, const LLSD&)

View File

@@ -114,6 +114,27 @@
<on_click function="Radar.FocusPrev" userdata="1"/>
</menu_item_call>
</menu>
<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_item_call label="Unmark" name="Unmark">
<on_click function="MiniMap.setunmark" />
<on_enable function="MiniMap.enableunmark" />
</menu_item_call>
</menu>
<menu label="Alerts" name="Alerts" create_jump_keys="true">
<menu_item_check label="Display alerts when an avatar" name="Display alerts in chat">
<on_click function="ToggleControl" userdata="RadarChatAlerts"/>