diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 12d0823..394c325 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -51,6 +51,8 @@ BOOL LLPrefsAdvanced::postBuild() | |||
51 | childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); | 51 | childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); |
52 | childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ClothingLayerProtection")); | 52 | childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ClothingLayerProtection")); |
53 | childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); | 53 | childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); |
54 | childSetValue("speedrez_check", gSavedSettings.getBOOL("SpeedRez")); | ||
55 | childSetValue("speedrez_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); | ||
54 | 56 | ||
55 | return TRUE; | 57 | return TRUE; |
56 | } | 58 | } |
@@ -61,6 +63,8 @@ void LLPrefsAdvanced::apply() | |||
61 | gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); | 63 | gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); |
62 | gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_check")); | 64 | gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_check")); |
63 | gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check")); | 65 | gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check")); |
66 | gSavedSettings.setBOOL("SpeedRez", childGetValue("speedrez_check")); | ||
67 | gSavedSettings.setU32("SpeedRezInterval", childGetValue("speedrez_spinner").asReal()); | ||
64 | 68 | ||
65 | // This is bad bad BAD UI from Emerald, I know. | 69 | // This is bad bad BAD UI from Emerald, I know. |
66 | // If anyone wants to do this better, please do -- MC | 70 | // If anyone wants to do this better, please do -- MC |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml index e889026..4eda819 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | |||
@@ -26,4 +26,14 @@ | |||
26 | font="SansSerifSmall" height="16" initial_value="false" | 26 | font="SansSerifSmall" height="16" initial_value="false" |
27 | label="Use HTTP Textures" left="12" mouse_opaque="true" | 27 | label="Use HTTP Textures" left="12" mouse_opaque="true" |
28 | name="http_texture_check" radio_style="false" width="217" /> | 28 | name="http_texture_check" radio_style="false" width="217" /> |
29 | <check_box bottom_delta="-18" enabled="true" follows="left|top" | ||
30 | font="SansSerifSmall" height="16" initial_value="false" | ||
31 | label="Increase rez speed via draw distance stepping" left="12" mouse_opaque="true" | ||
32 | name="speedrez_check" radio_style="false" width="217" /> | ||
33 | <spinner bottom_delta="-18" decimal_digits="0" | ||
34 | tool_tip="Interval in seconds between each draw distance increment" | ||
35 | follows="left|top" height="16" increment="1" initial_val="12" | ||
36 | label="Step interval (seconds)" label_width="130" left_delta="0" max_val="20" | ||
37 | min_val="1" mouse_opaque="true" name="spinner_decimal" width="170" /> | ||
38 | |||
29 | </panel> | 39 | </panel> |