Minor fix to AscentPrefsVan for linux - And in general. Thanks for bringing that to my attention, Verissimo!
Aside from that, getting ready to actually activate another vanity feature. Probably see it in a couple hours. Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
@@ -114,203 +114,241 @@
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<!-- Ascent-Specific Settings -->
|
||||
<key>AscentCmdLine</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Would you like the chatbar to be able to be used for command line functions?</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>AscentCmdLineClearChat</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Clear chat history to stop lag from chat spam</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>clrchat</string>
|
||||
</map>
|
||||
<key>AscentCmdLineHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to height function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>gth</string>
|
||||
</map>
|
||||
<key>AscentCmdLinePos</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to position function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>gtp</string>
|
||||
</map>
|
||||
<key>AscentCmdLineGround</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to ground function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>flr</string>
|
||||
</map>
|
||||
<key>AscentCmdLineTeleportHome</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to home function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tph</string>
|
||||
</map>
|
||||
<key>AscentCmdLineRezPlatform</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Rez a platform underneath you</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>rezplat</string>
|
||||
</map>
|
||||
<key>AscentPlatformSize</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>How wide the rezzed platform will appear to be.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>30</real>
|
||||
</map>
|
||||
<key>AscentCmdLineMapTo</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to a region by name rapidly</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>mapto</string>
|
||||
</map>
|
||||
<key>AscentCmdLineDrawDistance</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Change draw distance quickly</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>dd</string>
|
||||
</map>
|
||||
<key>AscentCmdTeleportToCam</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to your camera</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tp2cam</string>
|
||||
</map>
|
||||
<key>AscentCmdLineKeyToName</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Use a fast key to name querry</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>key2name</string>
|
||||
</map>
|
||||
<key>AscentCmdLineOfferTp</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Offer a teleport to target avatar</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>offertp</string>
|
||||
</map>
|
||||
<key>AscentCmdLineCalc</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Calculates an expression</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>calc</string>
|
||||
</map>
|
||||
<key>AscentCmdLineTP2</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to a person by name, partials work.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tp2</string>
|
||||
</map>
|
||||
<key>AscentAutoCloseOOC</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Auto-close OOC chat (i.e. add \"))\" if not found and \"((\" was used)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentAllowMUpose</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Allow MU* pose style in chat and IM (with ':' as a synonymous to '/me ')</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentCmdLine</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Would you like the chatbar to be able to be used for command line functions?</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>AscentCmdLineClearChat</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Clear chat history to stop lag from chat spam</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>clrchat</string>
|
||||
</map>
|
||||
<key>AscentCmdLineHeight</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to height function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>gth</string>
|
||||
</map>
|
||||
<key>AscentCmdLinePos</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to position function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>gtp</string>
|
||||
</map>
|
||||
<key>AscentCmdLineGround</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to ground function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>flr</string>
|
||||
</map>
|
||||
<key>AscentCmdLineTeleportHome</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to home function command</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tph</string>
|
||||
</map>
|
||||
<key>AscentCmdLineRezPlatform</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Rez a platform underneath you</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>rezplat</string>
|
||||
</map>
|
||||
<key>AscentPlatformSize</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>How wide the rezzed platform will appear to be.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>30</real>
|
||||
</map>
|
||||
<key>AscentCmdLineMapTo</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to a region by name rapidly</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>mapto</string>
|
||||
</map>
|
||||
<key>AscentCmdLineDrawDistance</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Change draw distance quickly</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>dd</string>
|
||||
</map>
|
||||
<key>AscentCmdTeleportToCam</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to your camera</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tp2cam</string>
|
||||
</map>
|
||||
<key>AscentCmdLineKeyToName</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Use a fast key to name querry</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>key2name</string>
|
||||
</map>
|
||||
<key>AscentCmdLineOfferTp</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Offer a teleport to target avatar</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>offertp</string>
|
||||
</map>
|
||||
<key>AscentCmdLineCalc</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Calculates an expression</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>calc</string>
|
||||
</map>
|
||||
<key>AscentCmdLineTP2</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Teleport to a person by name, partials work.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>tp2</string>
|
||||
</map>
|
||||
<key>AscentUseCustomTag</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Show a custom local tag.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentCustomTagColor</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Color of custom local tag.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Color4</string>
|
||||
<key>Value</key>
|
||||
<array>
|
||||
<real>0.5</real>
|
||||
<real>1.0</real>
|
||||
<real>0.25</real>
|
||||
<real>1.0</real>
|
||||
</array>
|
||||
</map>
|
||||
<key>AscentCustomTagLabel</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Label for the custom local tag</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>String</string>
|
||||
<key>Value</key>
|
||||
<string>Custom</string>
|
||||
</map>
|
||||
<key>AscentAutoCloseOOC</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Auto-close OOC chat (i.e. add \"))\" if not found and \"((\" was used)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentAllowMUpose</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Allow MU* pose style in chat and IM (with ':' as a synonymous to '/me ')</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentStoreSettingsPerAccount</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Toggles whether to save certain settings per-account, rather than per-install.</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
<key>Comment</key>
|
||||
<string>Toggles whether to save certain settings per-account, rather than per-install.</string>
|
||||
<key>Persist</key>
|
||||
<integer>0</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>AscentDataSeparator</key>
|
||||
<map>
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
|
||||
//File include
|
||||
#include "ascentprefssys.h"
|
||||
#include "ascentprefsvan.h"
|
||||
#include "llcolorswatch.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "llagent.h"
|
||||
@@ -244,9 +243,20 @@ void LLPrefsAscentSysImpl::apply()
|
||||
{
|
||||
std::string short_date, long_date, short_time, long_time, timestamp;
|
||||
|
||||
gSavedSettings.setU32("LinksForChattingObjects", childGetValue("objects_link").asInteger());
|
||||
//General ------------------------------------------------------------------------------
|
||||
gSavedSettings.setBOOL("DoubleClickTeleport", childGetValue("double_click_teleport_check"));
|
||||
gSavedSettings.setBOOL("PreviewAnimInWorld", childGetValue("preview_anim_in_world_check"));
|
||||
gSavedSettings.setBOOL("SaveScriptsAsMono", childGetValue("save_scripts_as_mono_check"));
|
||||
gSavedSettings.setBOOL("AscentAlwaysRezInGroup", childGetValue("always_rez_in_group_check"));
|
||||
|
||||
//Save User Interface
|
||||
//Chat/IM ------------------------------------------------------------------------------
|
||||
//Missing the echo/log option.
|
||||
gSavedSettings.setBOOL("PlayTypingSound", childGetValue("play_typing_sound_check"));
|
||||
gSavedSettings.setBOOL("AscentHideTypingNotification", childGetValue("hide_typing_check"));
|
||||
//MU Pose missing.
|
||||
//Auto-close missing.
|
||||
gSavedSettings.setU32("LinksForChattingObjects", childGetValue("objects_link").asInteger());
|
||||
|
||||
LLComboBox* combo = getChild<LLComboBox>("time_format_combobox");
|
||||
if (combo) {
|
||||
mTimeFormat = combo->getCurrentIndex();
|
||||
@@ -290,37 +300,46 @@ void LLPrefsAscentSysImpl::apply()
|
||||
timestamp = "%a %b %d %Y" + timestamp;
|
||||
}
|
||||
|
||||
gSavedSettings.setString("ShortDateFormat", short_date);
|
||||
gSavedSettings.setString("LongDateFormat", long_date);
|
||||
gSavedSettings.setString("ShortTimeFormat", short_time);
|
||||
gSavedSettings.setString("LongTimeFormat", long_time);
|
||||
gSavedSettings.setString("TimestampFormat", timestamp);
|
||||
gSavedSettings.setString("ShortDateFormat", short_date);
|
||||
gSavedSettings.setString("LongDateFormat", long_date);
|
||||
gSavedSettings.setString("ShortTimeFormat", short_time);
|
||||
gSavedSettings.setString("LongTimeFormat", long_time);
|
||||
gSavedSettings.setString("TimestampFormat", timestamp);
|
||||
|
||||
gSavedSettings.setBOOL("SecondsInChatAndIMs", childGetValue("seconds_in_chat_and_ims_check"));
|
||||
|
||||
//Save Chat/IM
|
||||
gSavedSettings.setBOOL("PlayTypingSound", childGetValue("play_typing_sound_check"));
|
||||
|
||||
//Save Performance
|
||||
//Performance ----------------------------------------------------------------------------
|
||||
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
||||
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
||||
|
||||
//Save Privacy
|
||||
|
||||
gSavedSettings.setBOOL("AscentHideTypingNotification", childGetValue("hide_typing_check"));
|
||||
|
||||
//Save Misc
|
||||
gSavedSettings.setBOOL("DoubleClickTeleport", childGetValue("double_click_teleport_check"));
|
||||
//Missing "Enabled Clouds"
|
||||
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
||||
gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval").asReal());
|
||||
gSavedSettings.setBOOL("PreviewAnimInWorld", childGetValue("preview_anim_in_world_check"));
|
||||
|
||||
//Commandline ----------------------------------------------------------------------------
|
||||
//Missing "Use Command Line"
|
||||
gSavedSettings.setString("AscentCmdLinePos", childGetValue("AscentCmdLinePos"));
|
||||
gSavedSettings.setString("AscentCmdLineGround", childGetValue("AscentCmdLineGround"));
|
||||
gSavedSettings.setString("AscentCmdLineHeight", childGetValue("AscentCmdLineHeight"));
|
||||
gSavedSettings.setString("AscentCmdLineTeleportHome", childGetValue("AscentCmdLineTeleportHome"));
|
||||
gSavedSettings.setString("AscentCmdLineRezPlatform", childGetValue("AscentCmdLineRezPlatform"));
|
||||
//Platform Size
|
||||
gSavedSettings.setString("AscentCmdLineCalc", childGetValue("AscentCmdLineCalc"));
|
||||
gSavedSettings.setString("AscentCmdLineClearChat", childGetValue("AscentCmdLineClearChat"));
|
||||
//-------------------------------------------------------------------------------------
|
||||
gSavedSettings.setString("AscentCmdLineDrawDistance", childGetValue("AscentCmdLineDrawDistance"));
|
||||
gSavedSettings.setString("AscentCmdTeleportToCam", childGetValue("AscentCmdTeleportToCam"));
|
||||
gSavedSettings.setString("AscentCmdLineKeyToName", childGetValue("AscentCmdLineKeyToName"));
|
||||
gSavedSettings.setString("AscentCmdLineOfferTp", childGetValue("AscentCmdLineOfferTp"));
|
||||
gSavedSettings.setString("AscentCmdLineMapTo", childGetValue("AscentCmdLineMapTo"));
|
||||
gSavedSettings.setBOOL("AscentCmdLineMapToKeepPos", childGetValue("AscentCmdLineMapToKeepPos"));
|
||||
gSavedSettings.setString("AscentCmdLineTP2", childGetValue("AscentCmdLineTP2"));
|
||||
|
||||
|
||||
//Privacy --------------------------------------------------------------------------------
|
||||
gSavedSettings.setBOOL("BroadcastViewerEffects", childGetValue("broadcast_viewer_effects"));
|
||||
gSavedSettings.setBOOL("DisablePointAtAndBeam", childGetValue("disable_point_at_and_beams_check"));
|
||||
gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check"));
|
||||
gSavedSettings.setBOOL("RevokePermsOnStandUp", childGetValue("revoke_perms_on_stand_up_check"));
|
||||
gSavedSettings.setBOOL("SaveScriptsAsMono", childGetValue("save_scripts_as_mono_check"));
|
||||
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
||||
gSavedSettings.setBOOL("AscentAlwaysRezInGroup", childGetValue("always_rez_in_group_check"));
|
||||
|
||||
|
||||
refreshValues();
|
||||
}
|
||||
|
||||
@@ -62,9 +62,14 @@ public:
|
||||
private:
|
||||
static void onCommitCheckBox(LLUICtrl* ctrl, void* user_data);
|
||||
void refreshValues();
|
||||
//General
|
||||
BOOL mUseAccountSettings;
|
||||
//Colors
|
||||
BOOL mShowSelfClientTag;
|
||||
BOOL mShowSelfClientTagColor;
|
||||
BOOL mUseAccountSettings;
|
||||
BOOL mCustomTagOn;
|
||||
std::string mCustomTagLabel;
|
||||
LLColor4 mCustomTagColor;
|
||||
LLColor4 mEffectColor;
|
||||
U32 mSelectedClient;
|
||||
};
|
||||
@@ -75,6 +80,22 @@ LLPrefsAscentVanImpl::LLPrefsAscentVanImpl()
|
||||
{
|
||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_vanity.xml");
|
||||
childSetCommitCallback("use_account_settings_check", onCommitCheckBox, this);
|
||||
childSetCommitCallback("customize_own_tag_check", onCommitCheckBox, this);
|
||||
|
||||
if (gSavedSettings.getBOOL("AscentUseCustomTag"))
|
||||
{
|
||||
childEnable("custom_tag_label_text");
|
||||
childEnable("custom_tag_label_box");
|
||||
childEnable("custom_tag_color_text");
|
||||
childEnable("custom_tag_color_swatch");
|
||||
}
|
||||
else
|
||||
{
|
||||
childDisable("custom_tag_label_text");
|
||||
childDisable("custom_tag_label_box");
|
||||
childDisable("custom_tag_color_text");
|
||||
childDisable("custom_tag_color_swatch");
|
||||
}
|
||||
refresh();
|
||||
|
||||
}
|
||||
@@ -82,8 +103,31 @@ LLPrefsAscentVanImpl::LLPrefsAscentVanImpl()
|
||||
//static
|
||||
void LLPrefsAscentVanImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
||||
{
|
||||
|
||||
LLPrefsAscentVanImpl* self = (LLPrefsAscentVanImpl*)user_data;
|
||||
self->refresh();
|
||||
|
||||
llinfos << "Control named " << ctrl->getControlName() << llendl;
|
||||
if (ctrl->getControlName() == "AscentStoreSettingsPerAccount")
|
||||
{
|
||||
self->refresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (gSavedSettings.getBOOL("AscentUseCustomTag"))
|
||||
{
|
||||
self->childEnable("custom_tag_label_text");
|
||||
self->childEnable("custom_tag_label_box");
|
||||
self->childEnable("custom_tag_color_text");
|
||||
self->childEnable("custom_tag_color_swatch");
|
||||
}
|
||||
else
|
||||
{
|
||||
self->childDisable("custom_tag_label_text");
|
||||
self->childDisable("custom_tag_label_box");
|
||||
self->childDisable("custom_tag_color_text");
|
||||
self->childDisable("custom_tag_color_swatch");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LLPrefsAscentVanImpl::refreshValues()
|
||||
@@ -103,7 +147,7 @@ void LLPrefsAscentVanImpl::refreshValues()
|
||||
}
|
||||
else
|
||||
{
|
||||
mSelectedClient = gSavedPerAccountSettings.getU32("AscentSpoofClientIndex");
|
||||
mSelectedClient = gSavedPerAccountSettings.getU32("AscentSpoofClientIndex");
|
||||
mEffectColor = gSavedPerAccountSettings.getColor4("EffectColor");
|
||||
}
|
||||
}
|
||||
@@ -111,10 +155,13 @@ void LLPrefsAscentVanImpl::refreshValues()
|
||||
void LLPrefsAscentVanImpl::refresh()
|
||||
{
|
||||
refreshValues();
|
||||
//General
|
||||
//General --------------------------------------------------------------------------------
|
||||
childSetValue("use_account_settings_check", mUseAccountSettings);
|
||||
//Colors
|
||||
llinfos << "Refreshing Vanity panel." << llendl;
|
||||
|
||||
//Colors ---------------------------------------------------------------------------------
|
||||
LLComboBox* combo = getChild<LLComboBox>("tag_spoofing_combobox");
|
||||
combo->setCurrentByIndex(mSelectedClient);
|
||||
|
||||
childSetValue("show_self_tag_check", mShowSelfClientTag);
|
||||
childSetValue("show_self_tag_color_check", mShowSelfClientTagColor);
|
||||
|
||||
@@ -134,9 +181,7 @@ void LLPrefsAscentVanImpl::refresh()
|
||||
}
|
||||
|
||||
|
||||
// tag spoofing comboxbox
|
||||
LLComboBox* combo = getChild<LLComboBox>("tag_spoofing_combobox");
|
||||
combo->setCurrentByIndex(mSelectedClient);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -149,8 +194,10 @@ void LLPrefsAscentVanImpl::apply()
|
||||
{
|
||||
std::string client_uuid;
|
||||
U32 client_index;
|
||||
|
||||
//Colors
|
||||
//General -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
//Colors ------------------------------------------------------------------------------
|
||||
LLComboBox* combo = getChild<LLComboBox>("tag_spoofing_combobox");
|
||||
if (combo)
|
||||
{
|
||||
@@ -158,7 +205,7 @@ void LLPrefsAscentVanImpl::apply()
|
||||
//Don't rebake if it's not neccesary.
|
||||
if (client_index != mSelectedClient)
|
||||
{
|
||||
client_uuid = combo->getSelectedValue();
|
||||
client_uuid = combo->getSelectedValue().asString();
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
{
|
||||
gSavedSettings.setString("AscentSpoofClientUUID", client_uuid);
|
||||
@@ -177,6 +224,8 @@ void LLPrefsAscentVanImpl::apply()
|
||||
avatar->forceBakeAllTextures(slam_for_debug);
|
||||
}
|
||||
}
|
||||
gSavedSettings.setBOOL("AscentShowSelfTag", childGetValue("show_self_tag_check"));
|
||||
gSavedSettings.setBOOL("AscentShowSelfTagColor", childGetValue("show_self_tag_color_check"));
|
||||
|
||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||
{
|
||||
@@ -189,8 +238,7 @@ void LLPrefsAscentVanImpl::apply()
|
||||
gSavedPerAccountSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
|
||||
}
|
||||
|
||||
gSavedSettings.setBOOL("AscentShowSelfTag", childGetValue("show_self_tag_check"));
|
||||
gSavedSettings.setBOOL("AscentShowSelfTagColor", childGetValue("show_self_tag_color_check"));
|
||||
|
||||
|
||||
refreshValues();
|
||||
}
|
||||
|
||||
@@ -17,12 +17,6 @@
|
||||
tool_tip="The Animation upload window will play animations on your avatar when previewing them."
|
||||
mouse_opaque="true" name="preview_anim_in_world_check" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="-20" control_name="RevokePermsOnStandUp" enabled="true"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="false"
|
||||
label="On standing up, revoke perms for the object your avatar was sitting on" left="10"
|
||||
tool_tip="Objects generally retain Take Control and Trigger Animation permissions until reset or given permission by another user. Enabling this will make sure you revoke these permissions immediately."
|
||||
mouse_opaque="true" name="revoke_perms_on_stand_up_check" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="-20" control_name="SaveScriptsAsMono" enabled="true"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
||||
label="Save scripts in inventory as Mono scripts instead of LSL2" left="10"
|
||||
@@ -271,7 +265,8 @@
|
||||
tool_tip="" name="AscentCmdLineMapTo" control_name="AscentCmdLineMapTo" width="200"/>
|
||||
<check_box bottom_delta="-24" enabled="true" follows="left|top" font="SansSerifSmall" height="16"
|
||||
initial_value="false" label="Use same position between sims" left_delta="0" mouse_opaque="true"
|
||||
name="toggle" radio_style="false" width="270" control_name="AscentCmdLineMapToKeepPos"/>
|
||||
name="AscentCmdLineMapToKeepPos" radio_style="false" width="270"
|
||||
control_name="AscentCmdLineMapToKeepPos"/>
|
||||
<text bottom_delta="-18" follows="left|top" font="SansSerifSmall" height="16" left_delta="0"
|
||||
name="cmd_line_text_13" width="512">
|
||||
Teleport to avatar (usage: cmd name)</text>
|
||||
@@ -299,6 +294,12 @@
|
||||
tool_tip="Turns off broadcasting headturns and lookat beacons for yourself."
|
||||
mouse_opaque="true" name="private_look_at_check" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="-20" control_name="RevokePermsOnStandUp" enabled="true"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="false"
|
||||
label="On standing up, revoke perms for the object your avatar was sitting on" left="10"
|
||||
tool_tip="Objects generally retain Take Control and Trigger Animation permissions until reset or given permission by another user. Enabling this will make sure you revoke these permissions immediately."
|
||||
mouse_opaque="true" name="revoke_perms_on_stand_up_check" radio_style="false"
|
||||
width="400" />
|
||||
</panel>
|
||||
</tab_container>
|
||||
</panel>
|
||||
|
||||
@@ -90,32 +90,32 @@
|
||||
tool_tip="Enabling this set your avatar name color to your client tag color or custom set color."
|
||||
mouse_opaque="true" name="show_self_tag_color_check" radio_style="false"
|
||||
width="400" />
|
||||
<check_box bottom_delta="65" control_name="AscentCustomizeOwnTag" enabled="false"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
||||
<check_box bottom_delta="65" control_name="AscentUseCustomTag" enabled="false"
|
||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="false"
|
||||
label="Use a custom color and label (Local only)" left_delta="230"
|
||||
tool_tip="Enabling this will let you set your own name tag to show up with your custom client and tag color. This only shows up to yourself."
|
||||
mouse_opaque="true" name="customize_own_tag_check" radio_style="false"
|
||||
width="400" />
|
||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
||||
bottom_delta="-16" left_delta="0" drop_shadow_visible="true" enabled="false" follows="left|top"
|
||||
bottom_delta="-16" left_delta="0" drop_shadow_visible="true" enabled="true" follows="left|top"
|
||||
font="SansSerifSmall" h_pad="0" halign="left" height="10"
|
||||
mouse_opaque="true" name="tag_color_textbox" v_pad="0" width="394">
|
||||
mouse_opaque="true" name="custom_tag_label_text" v_pad="0" width="394">
|
||||
Tag Label:
|
||||
</text>
|
||||
<line_editor bottom_delta="-8" enabled="false" follows="left|top" font="SansSerif"
|
||||
height="20" left_delta="60" name="custom_client_tag_label"
|
||||
<line_editor bottom_delta="-8" enabled="true" follows="left|top" font="SansSerif"
|
||||
height="20" left_delta="60" name="custom_tag_label_box"
|
||||
tool_tip="The custom string you would like to replace your client tag with (Local only)"
|
||||
width="170" />
|
||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
||||
bottom_delta="-25" left_delta="-60" drop_shadow_visible="true" enabled="false" follows="left|top"
|
||||
bottom_delta="-25" left_delta="-60" drop_shadow_visible="true" enabled="true" follows="left|top"
|
||||
font="SansSerifSmall" h_pad="0" halign="left" height="10"
|
||||
mouse_opaque="true" name="tag_color_textbox" v_pad="0" width="394">
|
||||
mouse_opaque="true" name="custom_tag_color_text" v_pad="0" width="394">
|
||||
Tag color:
|
||||
</text>
|
||||
<color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-29"
|
||||
can_apply_immediately="false" color="1 1 1 1"
|
||||
enabled="false" follows="left|top" height="48" label="" left_delta="73"
|
||||
mouse_opaque="true" name="tag_color_swatch"
|
||||
enabled="true" follows="left|top" height="48" label="" left_delta="60"
|
||||
mouse_opaque="true" name="custom_tag_color_swatch"
|
||||
tool_tip="The custom color you would like to replace your client color with (Local only)" width="32" />
|
||||
<!-- End of Client Tag settings -->
|
||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
||||
|
||||
Reference in New Issue
Block a user