Files
SingularityViewer/indra/newview/skins/default/xui/en-us/floater_ao.xml
Lirusaito b61cba8e01 Clean up and optimize the AO
Added the feature of selecting an animation from combo boxes and it playing automatically if it should be at this moment.

Now for the stuff only developers will understand:
FloaterAO is now a FloaterSingleton, because it should've been behaving that way all along.
Refactors a lot, simplifies a lot, best view without space changes.
Reduces a lot of redundant blocks.
Creates some functions to make things like AOStates easier to get
AOStates are now an enum instead of a bunch of const ints.
Cleaned up includes.
NULL -> nullptr, virtual->override, BOOL->bool, for->foreach
Removed struct_tokens,  it was redundant and actually just took up space.
No longer set all the children invisible, their parent does a good job of that.
Relate ComboBoxes to their states, so that we can easily get a setting and do a whole bunch of things with a lot less code.
Remove unused parameters and functions and variables
Remove unused boolean returns from functions.
Don't clear combo boxes just because one id is null.
2019-01-11 06:17:58 -05:00

261 lines
15 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<floater
name="geminifloater"
rect_control="AORect"
title="Animation Overrider"
can_resize="false"
can_minimize="true"
can_close="true"
can_drag_on_left="false"
width="800"
height="380">
<drop_target bottom="-80" height="17" left="12" width="180" control_name="AOConfigNotecardID" fill_parent="true" name="ao_notecard" tool_tip="Drop a ZHAO notecard here. Animations have to be in the same Inventory folder as the notecard."/>
<button
name="opencard"
label="View Notecard"
font="SansSerifSmall"
left="10"
bottom="-108"
width="110"
height="20"
follows="bottom|left"
/>
<button
name="reloadcard"
label="Reload"
font="SansSerifSmall"
left="124"
bottom_delta="0"
width="70"
height="20"
follows="bottom|left"
/>
<check_box bottom_delta="-24" control_name="AOEnabled" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="false" label="Enable animations override" left="10"
mouse_opaque="true" name="AOEnabled" radio_style="false" width="90" />
<check_box bottom_delta="-18" control_name="AOSwimEnabled" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="true" label="Enable swimming override" left="10"
mouse_opaque="true" name="AOSwimEnabled" radio_style="false" width="90" />
<check_box bottom_delta="-18" control_name="AOSitsEnabled" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="true" label="Enable sits override" left="10"
mouse_opaque="true" name="AOSitsEnabled" radio_style="false" width="90" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-20" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="buttons_desc" v_pad="0" width="180">
Stands:
</text>
<combo_box name="stands" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="-20"/>
<button
name="prevstand"
tool_tip="previous stand"
label="&lt;&lt;"
font="SansSerifSmall"
left="10"
bottom_delta="-25"
width="90"
height="20"
follows="bottom|left"
/>
<button
name="nextstand"
tool_tip="next stand"
label="&gt;&gt;"
font="SansSerifSmall"
left="104"
bottom_delta="0"
width="90"
height="20"
follows="bottom|left"
/>
<check_box bottom_delta="-20" control_name="AOStandRandomize" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="false" label="Randomize stand order" left="10"
mouse_opaque="true" name="AOStandRandomize" radio_style="false" width="200" />
<check_box bottom_delta="-20" control_name="AONoStandsInMouselook" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
label="Disable stands in mouselook" left="10" mouse_opaque="true"
name="AONoStandsInMouselook" radio_style="false" width="180" />
<check_box bottom_delta="-20" control_name="EnableAORemote" enabled="true"
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
label="Show AO toolbar" left="10" mouse_opaque="true"
name="ao_remote_checkbox" radio_style="false" width="180" />
<spinner bottom_delta="-20" decimal_digits="2" follows="left|top" height="16" control_name="AOStandInterval"
increment="1" initial_val="20" left="10" max_val="9000" min_val="1.00"
mouse_opaque="true" name="standtime" label="Stand time:" label_width="80"
tool_tip="AO stand time in seconds" width="180" />
<button
name="newcard"
label="New Notecard Template"
font="SansSerifSmall"
left="10"
bottom_delta="-32"
width="180"
height="20"
follows="bottom|left"
/>
<button bottom="4" follows="left|bottom" font="SansSerifSmall" halign="center"
height="20" label="More &gt;&gt;" label_selected="&lt;&lt; Less" left="118" toggle="true"
mouse_opaque="true" name="more_btn" scale_image="TRUE" control_name="AOAdvanced" image_selected="button_enabled_32x128.tga"
tool_tip="Advanced Options" width="76" />
<tab_container label="Default" bottom="6" left="210" mouse_opaque="false" name="tabcontainer" tab_min_width="50" tab_position="top" width="580" height="350" bg_opaque_color="0,0,0,0.0">
<panel border="true" left="0" bottom="0" follows="left|top|right|bottom" height="350" label="Default Anims" mouse_opaque="true" name="tabdefaultanims" width="580">
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultwalk" v_pad="0" width="180">
Default Walk:
</text>
<combo_box name="walks" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultWalk" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultrun" v_pad="0" width="180">
Default Run:
</text>
<combo_box name="runs" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultRun" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultjump" v_pad="0" width="180">
Default Jump:
</text>
<combo_box name="jumps" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultJump" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultsit" v_pad="0" width="180">
Default Sit:
</text>
<combo_box name="sits" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultSit" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultgsit" v_pad="0" width="180">
Default Groundsit:
</text>
<combo_box name="gsits" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultGroundSit" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultcrouch" v_pad="0" width="180">
Default Crouch:
</text>
<combo_box name="crouchs" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultCrouch" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultcrouchwalk" v_pad="0" width="180">
Default Crouchwalk:
</text>
<combo_box name="cwalks" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultCrouchWalk" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="10"
mouse_opaque="true" name="textdefaultfall" v_pad="0" width="180">
Default Fall:
</text>
<combo_box name="falls" label="" follows="left|top" height="20" left="10" width="180" bottom_delta="0" control_name="AODefaultFall" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="280" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="200"
mouse_opaque="true" name="textdefaulthover" v_pad="0" width="180">
Default Hover:
</text>
<combo_box name="hovers" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultHover" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultfly" v_pad="0" width="180">
Default Fly:
</text>
<combo_box name="flys" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultFly" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultflyslow" v_pad="0" width="180">
Default Slow Fly:
</text>
<combo_box name="flyslows" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultFlySlow" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultflyup" v_pad="0" width="180">
Default Upward Fly:
</text>
<combo_box name="flyups" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultFlyUp" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultflydown" v_pad="0" width="180">
Default Downward Fly:
</text>
<combo_box name="flydowns" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultFlyDown" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultland" v_pad="0" width="180">
Default Land:
</text>
<combo_box name="lands" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultLand" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultstandup" v_pad="0" width="180">
Default Standup:
</text>
<combo_box name="standups" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultStandUp" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultprejump" v_pad="0" width="180">
Default Pre-Jump:
</text>
<combo_box name="prejumps" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultPreJump" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="280" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left="390"
mouse_opaque="true" name="textdefaultfloat" v_pad="0" width="180">
Default Float:
</text>
<combo_box name="floats" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultFloat" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultswim" v_pad="0" width="180">
Default Swim:
</text>
<combo_box name="swims" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultSwim" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultswimup" v_pad="0" width="180">
Default Upward Swim:
</text>
<combo_box name="swimups" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultSwimUp" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaultswimdown" v_pad="0" width="180">
Default Downward Swim:
</text>
<combo_box name="swimdowns" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultSwimDown" />
<text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
bottom_delta="-40" drop_shadow_visible="true" follows="left|bottom"
font="SansSerifSmall" h_pad="0" halign="left" height="16" left_delta="0"
mouse_opaque="true" name="textdefaulttyping" v_pad="0" width="180">
Default Typing:
</text>
<combo_box name="typings" label="" follows="left|top" height="20" left_delta="0" width="180" bottom_delta="0" control_name="AODefaultTyping" />
</panel>
</tab_container>
</floater>