Block left-click sit
parent
62d729422b
commit
df1ff58579
|
|
@ -14280,6 +14280,17 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>PhoenixBlockClickSit</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Prevents sitting on left-click.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
|
||||
</map>
|
||||
</llsd>
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ BOOL LLToolPie::pickLeftMouseDownCallback()
|
|||
break;
|
||||
case CLICK_ACTION_SIT:
|
||||
{
|
||||
if (isAgentAvatarValid() && !gAgentAvatarp->isSitting()) // agent not already sitting
|
||||
if (isAgentAvatarValid() && !gAgentAvatarp->isSitting() && !gSavedSettings.getBOOL("PhoenixBlockClickSit")) // agent not already sitting
|
||||
{
|
||||
handle_object_sit_or_stand();
|
||||
// put focus in world when sitting on an object
|
||||
|
|
|
|||
|
|
@ -299,6 +299,29 @@
|
|||
|
||||
</panel>
|
||||
|
||||
|
||||
<!--Protection-->
|
||||
<panel
|
||||
border="true"
|
||||
top_pad="5"
|
||||
bottom="-1"
|
||||
left="1"
|
||||
right="-1"
|
||||
follows="all"
|
||||
label="Protection"
|
||||
name="ProtectionTab">
|
||||
<check_box
|
||||
top_pad="12"
|
||||
left="10"
|
||||
label="Block left-click sitting on objects"
|
||||
control_name="PhoenixBlockClickSit"
|
||||
follows="left|top"
|
||||
height="16"
|
||||
name="PhoenixBlockClickSit"
|
||||
width="256" />
|
||||
</panel>
|
||||
|
||||
|
||||
<!--View-->
|
||||
<panel
|
||||
border="true"
|
||||
|
|
|
|||
Loading…
Reference in New Issue