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>
|
<integer>0</integer>
|
||||||
</map>
|
</map>
|
||||||
<!-- Ascent-Specific Settings -->
|
<!-- Ascent-Specific Settings -->
|
||||||
<key>AscentCmdLine</key>
|
<key>AscentCmdLine</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Would you like the chatbar to be able to be used for command line functions?</string>
|
<string>Would you like the chatbar to be able to be used for command line functions?</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>Boolean</string>
|
<string>Boolean</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineClearChat</key>
|
<key>AscentCmdLineClearChat</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Clear chat history to stop lag from chat spam</string>
|
<string>Clear chat history to stop lag from chat spam</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>clrchat</string>
|
<string>clrchat</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineHeight</key>
|
<key>AscentCmdLineHeight</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to height function command</string>
|
<string>Teleport to height function command</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>gth</string>
|
<string>gth</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLinePos</key>
|
<key>AscentCmdLinePos</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to position function command</string>
|
<string>Teleport to position function command</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>gtp</string>
|
<string>gtp</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineGround</key>
|
<key>AscentCmdLineGround</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to ground function command</string>
|
<string>Teleport to ground function command</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>flr</string>
|
<string>flr</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineTeleportHome</key>
|
<key>AscentCmdLineTeleportHome</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to home function command</string>
|
<string>Teleport to home function command</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>tph</string>
|
<string>tph</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineRezPlatform</key>
|
<key>AscentCmdLineRezPlatform</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Rez a platform underneath you</string>
|
<string>Rez a platform underneath you</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>rezplat</string>
|
<string>rezplat</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentPlatformSize</key>
|
<key>AscentPlatformSize</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>How wide the rezzed platform will appear to be.</string>
|
<string>How wide the rezzed platform will appear to be.</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>F32</string>
|
<string>F32</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<real>30</real>
|
<real>30</real>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineMapTo</key>
|
<key>AscentCmdLineMapTo</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to a region by name rapidly</string>
|
<string>Teleport to a region by name rapidly</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>mapto</string>
|
<string>mapto</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineDrawDistance</key>
|
<key>AscentCmdLineDrawDistance</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Change draw distance quickly</string>
|
<string>Change draw distance quickly</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>dd</string>
|
<string>dd</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdTeleportToCam</key>
|
<key>AscentCmdTeleportToCam</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to your camera</string>
|
<string>Teleport to your camera</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>tp2cam</string>
|
<string>tp2cam</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineKeyToName</key>
|
<key>AscentCmdLineKeyToName</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Use a fast key to name querry</string>
|
<string>Use a fast key to name querry</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>key2name</string>
|
<string>key2name</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineOfferTp</key>
|
<key>AscentCmdLineOfferTp</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Offer a teleport to target avatar</string>
|
<string>Offer a teleport to target avatar</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>offertp</string>
|
<string>offertp</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineCalc</key>
|
<key>AscentCmdLineCalc</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Calculates an expression</string>
|
<string>Calculates an expression</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>calc</string>
|
<string>calc</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentCmdLineTP2</key>
|
<key>AscentCmdLineTP2</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Teleport to a person by name, partials work.</string>
|
<string>Teleport to a person by name, partials work.</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>String</string>
|
<string>String</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>tp2</string>
|
<string>tp2</string>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentAutoCloseOOC</key>
|
<key>AscentUseCustomTag</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Auto-close OOC chat (i.e. add \"))\" if not found and \"((\" was used)</string>
|
<string>Show a custom local tag.</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>Boolean</string>
|
<string>Boolean</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentAllowMUpose</key>
|
<key>AscentCustomTagColor</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Allow MU* pose style in chat and IM (with ':' as a synonymous to '/me ')</string>
|
<string>Color of custom local tag.</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>Boolean</string>
|
<string>Color4</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>0</integer>
|
<array>
|
||||||
</map>
|
<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>
|
<key>AscentStoreSettingsPerAccount</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
<string>Toggles whether to save certain settings per-account, rather than per-install.</string>
|
<string>Toggles whether to save certain settings per-account, rather than per-install.</string>
|
||||||
<key>Persist</key>
|
<key>Persist</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>Boolean</string>
|
<string>Boolean</string>
|
||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</map>
|
</map>
|
||||||
<key>AscentDataSeparator</key>
|
<key>AscentDataSeparator</key>
|
||||||
<map>
|
<map>
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
//File include
|
//File include
|
||||||
#include "ascentprefssys.h"
|
#include "ascentprefssys.h"
|
||||||
#include "ascentprefsvan.h"
|
|
||||||
#include "llcolorswatch.h"
|
#include "llcolorswatch.h"
|
||||||
#include "llvoavatar.h"
|
#include "llvoavatar.h"
|
||||||
#include "llagent.h"
|
#include "llagent.h"
|
||||||
@@ -244,9 +243,20 @@ void LLPrefsAscentSysImpl::apply()
|
|||||||
{
|
{
|
||||||
std::string short_date, long_date, short_time, long_time, timestamp;
|
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");
|
LLComboBox* combo = getChild<LLComboBox>("time_format_combobox");
|
||||||
if (combo) {
|
if (combo) {
|
||||||
mTimeFormat = combo->getCurrentIndex();
|
mTimeFormat = combo->getCurrentIndex();
|
||||||
@@ -290,37 +300,46 @@ void LLPrefsAscentSysImpl::apply()
|
|||||||
timestamp = "%a %b %d %Y" + timestamp;
|
timestamp = "%a %b %d %Y" + timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
gSavedSettings.setString("ShortDateFormat", short_date);
|
gSavedSettings.setString("ShortDateFormat", short_date);
|
||||||
gSavedSettings.setString("LongDateFormat", long_date);
|
gSavedSettings.setString("LongDateFormat", long_date);
|
||||||
gSavedSettings.setString("ShortTimeFormat", short_time);
|
gSavedSettings.setString("ShortTimeFormat", short_time);
|
||||||
gSavedSettings.setString("LongTimeFormat", long_time);
|
gSavedSettings.setString("LongTimeFormat", long_time);
|
||||||
gSavedSettings.setString("TimestampFormat", timestamp);
|
gSavedSettings.setString("TimestampFormat", timestamp);
|
||||||
|
|
||||||
gSavedSettings.setBOOL("SecondsInChatAndIMs", childGetValue("seconds_in_chat_and_ims_check"));
|
gSavedSettings.setBOOL("SecondsInChatAndIMs", childGetValue("seconds_in_chat_and_ims_check"));
|
||||||
|
|
||||||
//Save Chat/IM
|
//Performance ----------------------------------------------------------------------------
|
||||||
gSavedSettings.setBOOL("PlayTypingSound", childGetValue("play_typing_sound_check"));
|
gSavedSettings.setBOOL("FetchInventoryOnLogin", childGetValue("fetch_inventory_on_login_check"));
|
||||||
|
|
||||||
//Save Performance
|
|
||||||
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
gSavedSettings.setBOOL("WindEnabled", childGetValue("enable_wind"));
|
||||||
|
//Missing "Enabled Clouds"
|
||||||
//Save Privacy
|
|
||||||
|
|
||||||
gSavedSettings.setBOOL("AscentHideTypingNotification", childGetValue("hide_typing_check"));
|
|
||||||
|
|
||||||
//Save Misc
|
|
||||||
gSavedSettings.setBOOL("DoubleClickTeleport", childGetValue("double_click_teleport_check"));
|
|
||||||
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check"));
|
||||||
gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval").asReal());
|
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("BroadcastViewerEffects", childGetValue("broadcast_viewer_effects"));
|
||||||
gSavedSettings.setBOOL("DisablePointAtAndBeam", childGetValue("disable_point_at_and_beams_check"));
|
gSavedSettings.setBOOL("DisablePointAtAndBeam", childGetValue("disable_point_at_and_beams_check"));
|
||||||
gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check"));
|
gSavedSettings.setBOOL("PrivateLookAt", childGetValue("private_look_at_check"));
|
||||||
gSavedSettings.setBOOL("RevokePermsOnStandUp", childGetValue("revoke_perms_on_stand_up_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();
|
refreshValues();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,9 +62,14 @@ public:
|
|||||||
private:
|
private:
|
||||||
static void onCommitCheckBox(LLUICtrl* ctrl, void* user_data);
|
static void onCommitCheckBox(LLUICtrl* ctrl, void* user_data);
|
||||||
void refreshValues();
|
void refreshValues();
|
||||||
|
//General
|
||||||
|
BOOL mUseAccountSettings;
|
||||||
|
//Colors
|
||||||
BOOL mShowSelfClientTag;
|
BOOL mShowSelfClientTag;
|
||||||
BOOL mShowSelfClientTagColor;
|
BOOL mShowSelfClientTagColor;
|
||||||
BOOL mUseAccountSettings;
|
BOOL mCustomTagOn;
|
||||||
|
std::string mCustomTagLabel;
|
||||||
|
LLColor4 mCustomTagColor;
|
||||||
LLColor4 mEffectColor;
|
LLColor4 mEffectColor;
|
||||||
U32 mSelectedClient;
|
U32 mSelectedClient;
|
||||||
};
|
};
|
||||||
@@ -75,6 +80,22 @@ LLPrefsAscentVanImpl::LLPrefsAscentVanImpl()
|
|||||||
{
|
{
|
||||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_vanity.xml");
|
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_ascent_vanity.xml");
|
||||||
childSetCommitCallback("use_account_settings_check", onCommitCheckBox, this);
|
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();
|
refresh();
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -82,8 +103,31 @@ LLPrefsAscentVanImpl::LLPrefsAscentVanImpl()
|
|||||||
//static
|
//static
|
||||||
void LLPrefsAscentVanImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
void LLPrefsAscentVanImpl::onCommitCheckBox(LLUICtrl* ctrl, void* user_data)
|
||||||
{
|
{
|
||||||
|
|
||||||
LLPrefsAscentVanImpl* self = (LLPrefsAscentVanImpl*)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()
|
void LLPrefsAscentVanImpl::refreshValues()
|
||||||
@@ -103,7 +147,7 @@ void LLPrefsAscentVanImpl::refreshValues()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mSelectedClient = gSavedPerAccountSettings.getU32("AscentSpoofClientIndex");
|
mSelectedClient = gSavedPerAccountSettings.getU32("AscentSpoofClientIndex");
|
||||||
mEffectColor = gSavedPerAccountSettings.getColor4("EffectColor");
|
mEffectColor = gSavedPerAccountSettings.getColor4("EffectColor");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -111,10 +155,13 @@ void LLPrefsAscentVanImpl::refreshValues()
|
|||||||
void LLPrefsAscentVanImpl::refresh()
|
void LLPrefsAscentVanImpl::refresh()
|
||||||
{
|
{
|
||||||
refreshValues();
|
refreshValues();
|
||||||
//General
|
//General --------------------------------------------------------------------------------
|
||||||
childSetValue("use_account_settings_check", mUseAccountSettings);
|
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_check", mShowSelfClientTag);
|
||||||
childSetValue("show_self_tag_color_check", mShowSelfClientTagColor);
|
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;
|
std::string client_uuid;
|
||||||
U32 client_index;
|
U32 client_index;
|
||||||
|
//General -----------------------------------------------------------------------------
|
||||||
//Colors
|
|
||||||
|
|
||||||
|
//Colors ------------------------------------------------------------------------------
|
||||||
LLComboBox* combo = getChild<LLComboBox>("tag_spoofing_combobox");
|
LLComboBox* combo = getChild<LLComboBox>("tag_spoofing_combobox");
|
||||||
if (combo)
|
if (combo)
|
||||||
{
|
{
|
||||||
@@ -158,7 +205,7 @@ void LLPrefsAscentVanImpl::apply()
|
|||||||
//Don't rebake if it's not neccesary.
|
//Don't rebake if it's not neccesary.
|
||||||
if (client_index != mSelectedClient)
|
if (client_index != mSelectedClient)
|
||||||
{
|
{
|
||||||
client_uuid = combo->getSelectedValue();
|
client_uuid = combo->getSelectedValue().asString();
|
||||||
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||||
{
|
{
|
||||||
gSavedSettings.setString("AscentSpoofClientUUID", client_uuid);
|
gSavedSettings.setString("AscentSpoofClientUUID", client_uuid);
|
||||||
@@ -177,6 +224,8 @@ void LLPrefsAscentVanImpl::apply()
|
|||||||
avatar->forceBakeAllTextures(slam_for_debug);
|
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"))
|
if (!gSavedSettings.getBOOL("AscentStoreSettingsPerAccount"))
|
||||||
{
|
{
|
||||||
@@ -189,8 +238,7 @@ void LLPrefsAscentVanImpl::apply()
|
|||||||
gSavedPerAccountSettings.setColor4("EffectColor", childGetValue("effect_color_swatch"));
|
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();
|
refreshValues();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,12 +17,6 @@
|
|||||||
tool_tip="The Animation upload window will play animations on your avatar when previewing them."
|
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"
|
mouse_opaque="true" name="preview_anim_in_world_check" radio_style="false"
|
||||||
width="400" />
|
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"
|
<check_box bottom_delta="-20" control_name="SaveScriptsAsMono" enabled="true"
|
||||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
||||||
label="Save scripts in inventory as Mono scripts instead of LSL2" left="10"
|
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"/>
|
tool_tip="" name="AscentCmdLineMapTo" control_name="AscentCmdLineMapTo" width="200"/>
|
||||||
<check_box bottom_delta="-24" enabled="true" follows="left|top" font="SansSerifSmall" height="16"
|
<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"
|
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"
|
<text bottom_delta="-18" follows="left|top" font="SansSerifSmall" height="16" left_delta="0"
|
||||||
name="cmd_line_text_13" width="512">
|
name="cmd_line_text_13" width="512">
|
||||||
Teleport to avatar (usage: cmd name)</text>
|
Teleport to avatar (usage: cmd name)</text>
|
||||||
@@ -299,6 +294,12 @@
|
|||||||
tool_tip="Turns off broadcasting headturns and lookat beacons for yourself."
|
tool_tip="Turns off broadcasting headturns and lookat beacons for yourself."
|
||||||
mouse_opaque="true" name="private_look_at_check" radio_style="false"
|
mouse_opaque="true" name="private_look_at_check" radio_style="false"
|
||||||
width="400" />
|
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>
|
</panel>
|
||||||
</tab_container>
|
</tab_container>
|
||||||
</panel>
|
</panel>
|
||||||
|
|||||||
@@ -90,32 +90,32 @@
|
|||||||
tool_tip="Enabling this set your avatar name color to your client tag color or custom set color."
|
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"
|
mouse_opaque="true" name="show_self_tag_color_check" radio_style="false"
|
||||||
width="400" />
|
width="400" />
|
||||||
<check_box bottom_delta="65" control_name="AscentCustomizeOwnTag" enabled="false"
|
<check_box bottom_delta="65" control_name="AscentUseCustomTag" enabled="false"
|
||||||
follows="left|top" font="SansSerifSmall" height="16" initial_value="true"
|
follows="left|top" font="SansSerifSmall" height="16" initial_value="false"
|
||||||
label="Use a custom color and label (Local only)" left_delta="230"
|
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."
|
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"
|
mouse_opaque="true" name="customize_own_tag_check" radio_style="false"
|
||||||
width="400" />
|
width="400" />
|
||||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
<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"
|
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:
|
Tag Label:
|
||||||
</text>
|
</text>
|
||||||
<line_editor bottom_delta="-8" enabled="false" follows="left|top" font="SansSerif"
|
<line_editor bottom_delta="-8" enabled="true" follows="left|top" font="SansSerif"
|
||||||
height="20" left_delta="60" name="custom_client_tag_label"
|
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)"
|
tool_tip="The custom string you would like to replace your client tag with (Local only)"
|
||||||
width="170" />
|
width="170" />
|
||||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
<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"
|
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:
|
Tag color:
|
||||||
</text>
|
</text>
|
||||||
<color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-29"
|
<color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-29"
|
||||||
can_apply_immediately="false" color="1 1 1 1"
|
can_apply_immediately="false" color="1 1 1 1"
|
||||||
enabled="false" follows="left|top" height="48" label="" left_delta="73"
|
enabled="true" follows="left|top" height="48" label="" left_delta="60"
|
||||||
mouse_opaque="true" name="tag_color_swatch"
|
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" />
|
tool_tip="The custom color you would like to replace your client color with (Local only)" width="32" />
|
||||||
<!-- End of Client Tag settings -->
|
<!-- End of Client Tag settings -->
|
||||||
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
<text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
|
||||||
|
|||||||
Reference in New Issue
Block a user