FIRE-30873: Add and register poser UI

master
Angeldark Raymaker 2024-09-10 12:49:35 +01:00
parent 529d3427bb
commit 750d239e4f
5 changed files with 1436 additions and 0 deletions

View File

@ -166,6 +166,7 @@
//#include "llfloaterimnearbychat.h
#include "fsfloaternearbychat.h"
// <FS:Ansariel> [FS communication UI]
#include "fsfloaterposer.h" // <FS:AR> [FIRE-30873]: Poser
#include "llpanelblockedlist.h"
#include "llpanelprofileclassifieds.h"
#include "llpanelemojicomplete.h"
@ -517,6 +518,7 @@ void LLViewerFloaterReg::registerFloaters()
//LLFloaterReg::add("performance", "floater_performance.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterPerformance>);
LLFloaterReg::add("perms_default", "floater_perms_default.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterPermsDefault>);
LLFloaterReg::add("places", "floater_places.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterSidePanelContainer>);
LLFloaterReg::add("poser", "floater_poser.xml", (LLFloaterBuildFunc) &LLFloaterReg::build<FSFloaterPoser>); // <FS:AR> [FIRE-30873]: Poser
LLFloaterReg::add("preferences", "floater_preferences.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterPreference>);
// LLFloaterReg::add("prefs_graphics_advanced", "floater_preferences_graphics_advanced.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterPreferenceGraphicsAdvanced>);
LLFloaterReg::add("prefs_view_advanced", "floater_preferences_view_advanced.xml", (LLFloaterBuildFunc)&LLFloaterReg::build<LLFloaterPreferenceViewAdvanced>);

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,137 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<context_menu
layout="topleft"
name="Actions">
<menu_item_call
label="Mirror Rotation"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="mirror"/>
</menu_item_call>
<menu_item_call
label="Symmetrize Rotation from Mirror Bone"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="symmetrize"/>
</menu_item_call>
<menu_item_call
label="Recapture Bone"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="recapture"/>
</menu_item_call>
<menu_item_check
label="Enable This Bone"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="enable_bone"/>
<on_check function="Joints.OnEnable" parameter="enable_bone"/>
</menu_item_check>
<menu_item_check
label="Enable Override"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="enable_override"/>
<on_enable function="Joints.OnEnable" parameter="enable_bone"/>
<on_check function="Joints.OnEnable" parameter="enable_override"/>
</menu_item_check>
<menu_item_check
label="Enable Offset"
layout="topleft"
name="rotations">
<on_click function="Joints.Menu" parameter="enable_offset"/>
<on_enable function="Joints.OnEnable" parameter="enable_bone"/>
<on_check function="Joints.OnEnable" parameter="enable_offset"/>
</menu_item_check>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Copy Transforms"
layout="topleft"
name="copy_all">
<on_click function="Joints.Menu" parameter="copy_transforms"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Paste Rotation"
layout="topleft"
name="positions">
<on_click function="Joints.Menu" parameter="paste_rot"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_call
label="Paste Position"
layout="topleft"
name="positions">
<on_click function="Joints.Menu" parameter="paste_pos"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_call
label="Paste Scale"
layout="topleft"
name="scale">
<on_click function="Joints.Menu" parameter="paste_scale"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Paste Rotations &amp; Positions"
layout="topleft"
name="rot_pos">
<on_click function="Joints.Menu" parameter="paste_rot_pos"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_call
label="Paste Rotations &amp; Scales"
layout="topleft"
name="rot_scale">
<on_click function="Joints.Menu" parameter="paste_rot_scale"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_call
label="Paste Position &amp; Scales"
layout="topleft"
name="pos_scale">
<on_click function="Joints.Menu" parameter="paste_pos_scale"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Paste All Transforms"
layout="topleft"
name="all_transforms">
<on_click function="Joints.Menu" parameter="paste_all"/>
<on_enable function="Joints.OnEnable" parameter="clipboard"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Reset Rotation"
layout="topleft"
name="reset_rot">
<on_click function="Joints.Menu" parameter="reset_rot"/>
</menu_item_call>
<menu_item_call
label="Reset Position"
layout="topleft"
name="reset_pos">
<on_click function="Joints.Menu" parameter="reset_pos"/>
</menu_item_call>
<menu_item_call
label="Reset Scale"
layout="topleft"
name="reset_scale">
<on_click function="Joints.Menu" parameter="reset_scale"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Reset All Transforms"
layout="topleft"
name="reset_all">
<on_click function="Joints.Menu" parameter="reset_all"/>
</menu_item_call>
</context_menu>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<context_menu
layout="topleft"
name="Poser Settings">
<menu_item_call
label="Load Rotations only"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rotation"/>
</menu_item_call>
<menu_item_call
label="Load Positions only"
layout="topleft"
name="positions">
<on_click function="Pose.Menu" parameter="position"/>
</menu_item_call>
<menu_item_call
label="Load Scales only"
layout="topleft"
name="scale">
<on_click function="Pose.Menu" parameter="scale"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Load Rotations &amp; Positions"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rot_pos"/>
</menu_item_call>
<menu_item_call
label="Load Rotations &amp; Scales"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rot_scale"/>
</menu_item_call>
<menu_item_call
label="Load Position &amp; Scales"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="pos_scale"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Load all"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="all"/>
</menu_item_call>
</context_menu>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<toggleable_menu
layout="topleft"
name="Settings">
<menu_item_call
label="Load Rotations only"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rotation"/>
</menu_item_call>
<menu_item_call
label="Load Positions only"
layout="topleft"
name="positions">
<on_click function="Pose.Menu" parameter="position"/>
</menu_item_call>
<menu_item_call
label="Load Scales only"
layout="topleft"
name="scale">
<on_click function="Pose.Menu" parameter="scale"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Load Rotations &amp; Positions"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rot_pos"/>
</menu_item_call>
<menu_item_call
label="Load Rotations &amp; Scales"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="rot_scale"/>
</menu_item_call>
<menu_item_call
label="Load Position &amp; Scales"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="pos_scale"/>
</menu_item_call>
<menu_item_separator
layout="topleft" />
<menu_item_call
label="Load all"
layout="topleft"
name="rotations">
<on_click function="Pose.Menu" parameter="all"/>
</menu_item_call>
</toggleable_menu>