From b9da20f0d6e69465675a8e34e4e251d20c4e1a85 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Wed, 20 Feb 2013 06:16:53 -0500 Subject: [PATCH] Added new controls to Network Preferences Adds Texture Bandwidth slider Adds Use HTTP for Inventory and Textures checkboxes. Also, swaps out the bandwidth slider for a new Z Offset slider on quick settings, as bandwidth sliders should be set and forget, there is no modern need for them to be changed so frequently. [Note to translators: please examine the network preferences after this update, controls have been moved and may now overlap.] --- indra/newview/llpanelnetwork.cpp | 6 ++++++ .../default/xui/en-us/panel_preferences_network.xml | 12 +++++++++--- .../xui/en-us/wlfPanel_AdvSettings_expanded.xml | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/indra/newview/llpanelnetwork.cpp b/indra/newview/llpanelnetwork.cpp index 4cb5c0481..86e6bced5 100644 --- a/indra/newview/llpanelnetwork.cpp +++ b/indra/newview/llpanelnetwork.cpp @@ -68,6 +68,9 @@ BOOL LLPanelNetwork::postBuild() childSetValue("cache_size", (F32)gSavedSettings.getU32("CacheSize")); childSetValue("max_bandwidth", gSavedSettings.getF32("ThrottleBandwidthKBPS")); + childSetValue("tex_bandwidth", gSavedSettings.getF32("HTTPThrottleBandwidth")); + childSetValue("http_textures", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); + childSetValue("http_inventory", gSavedSettings.getBOOL("UseHTTPInventory")); childSetValue("connection_port_enabled", gSavedSettings.getBOOL("ConnectionPortEnabled")); childSetValue("connection_port", (F32)gSavedSettings.getU32("ConnectionPort")); @@ -113,6 +116,9 @@ void LLPanelNetwork::apply() gSavedSettings.setU32("CacheSize", cache_size); } gSavedSettings.setF32("ThrottleBandwidthKBPS", childGetValue("max_bandwidth").asReal()); + gSavedSettings.setF32("HTTPThrottleBandwidth", childGetValue("tex_bandwidth").asReal()); + gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_textures")); + gSavedSettings.setBOOL("UseHTTPInventory", childGetValue("http_inventory")); gSavedSettings.setBOOL("ConnectionPortEnabled", childGetValue("connection_port_enabled")); gSavedSettings.setU32("ConnectionPort", childGetValue("connection_port").asInteger()); diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_network.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_network.xml index 1a91e0252..af29ab41f 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_network.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_network.xml @@ -1,10 +1,16 @@ Maximum Bandwidth: - + kbps (kilobits per second) - Disk Cache Size (MB): - + Texture Bandwidth: + + kbps (kilobits per second) + Use HTTP for: + + + Disk Cache Size: + MB