Add /zoffset_up and /zoffset_down command line command to increase / decrease avatar Z offset by 0.05 that can be invoked via user-definable gestures

master
Ansariel 2018-01-05 13:55:36 +01:00
parent 2c743b12c6
commit 65097fa14e
1 changed files with 10 additions and 0 deletions

View File

@ -805,6 +805,16 @@ bool cmd_line_chat(const std::string& revised_text, EChatType type, bool from_ge
}
return false;
}
else if (command == "/zoffset_up")
{
gSavedPerAccountSettings.setF32("AvatarHoverOffsetZ", gSavedPerAccountSettings.getF32("AvatarHoverOffsetZ") + 0.05f);
return false;
}
else if (command == "/zoffset_down")
{
gSavedPerAccountSettings.setF32("AvatarHoverOffsetZ", gSavedPerAccountSettings.getF32("AvatarHoverOffsetZ") - 0.05f);
return false;
}
else if (command == sFSCmdLineOfferTp())
{
LLUUID target_key;