[Frosting:268] Sit via self pie menu

This commit is contained in:
Lirusaito
2013-04-09 00:25:42 -04:00
parent fda82da3e9
commit f11f6618ab
2 changed files with 5 additions and 1 deletions

View File

@@ -3612,6 +3612,7 @@ class LLSelfEnableSitOrStand : public view_listener_t
gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value);
gMenuHolder->childSetText("Stand Up", label);
gMenuHolder->childSetText("Stand Up Self", label);
return true;
}

View File

@@ -108,7 +108,10 @@
<on_click function="Avatar.CopyUUID" />
</menu_item_call>
</pie_menu>
<menu_item_separator />
<menu_item_call enabled="true" label="Stand Up" name="Stand Up Self">
<on_click function="Self.SitOrStand"/>
<on_enable function="Self.EnableSitOrStand" userdata="Sit Down,Stand Up"/>
</menu_item_call>
<menu_item_call enabled="true" label="Gestures..." name="Gestures...">
<on_click function="ShowFloater" userdata="gestures" />
</menu_item_call>