aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpostprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterpostprocess.cpp66
1 files changed, 34 insertions, 32 deletions
diff --git a/linden/indra/newview/llfloaterpostprocess.cpp b/linden/indra/newview/llfloaterpostprocess.cpp
index de9b598..c5b2018 100644
--- a/linden/indra/newview/llfloaterpostprocess.cpp
+++ b/linden/indra/newview/llfloaterpostprocess.cpp
@@ -52,28 +52,29 @@ LLFloaterPostProcess::LLFloaterPostProcess() : LLFloater(std::string("Post-Proce
52 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_post_process.xml"); 52 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_post_process.xml");
53 53
54 /// Color Filter Callbacks 54 /// Color Filter Callbacks
55 childSetCommitCallback("ColorFilterToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_color_filter"); 55 //childSetCommitCallback("ColorFilterToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_color_filter");
56 childSetCommitCallback("wmiColorFilterToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_color_filter");
56 //childSetCommitCallback("ColorFilterGamma", &LLFloaterPostProcess::onFloatControlMoved, &(gPostProcess->tweaks.gamma())); 57 //childSetCommitCallback("ColorFilterGamma", &LLFloaterPostProcess::onFloatControlMoved, &(gPostProcess->tweaks.gamma()));
57 childSetCommitCallback("ColorFilterBrightness", &LLFloaterPostProcess::onFloatControlMoved, (char*)"brightness"); 58 childSetCommitCallback("wmiColorFilterBrightness", &LLFloaterPostProcess::onFloatControlMoved, (char*)"brightness");
58 childSetCommitCallback("ColorFilterSaturation", &LLFloaterPostProcess::onFloatControlMoved, (char*)"saturation"); 59 childSetCommitCallback("wmiColorFilterSaturation", &LLFloaterPostProcess::onFloatControlMoved, (char*)"saturation");
59 childSetCommitCallback("ColorFilterContrast", &LLFloaterPostProcess::onFloatControlMoved, (char*)"contrast"); 60 childSetCommitCallback("wmiColorFilterContrast", &LLFloaterPostProcess::onFloatControlMoved, (char*)"contrast");
60 61
61 childSetCommitCallback("ColorFilterBaseR", &LLFloaterPostProcess::onColorControlRMoved, (char*)"contrast_base"); 62 childSetCommitCallback("wmiColorFilterBaseR", &LLFloaterPostProcess::onColorControlRMoved, (char*)"contrast_base");
62 childSetCommitCallback("ColorFilterBaseG", &LLFloaterPostProcess::onColorControlGMoved, (char*)"contrast_base"); 63 childSetCommitCallback("wmiColorFilterBaseG", &LLFloaterPostProcess::onColorControlGMoved, (char*)"contrast_base");
63 childSetCommitCallback("ColorFilterBaseB", &LLFloaterPostProcess::onColorControlBMoved, (char*)"contrast_base"); 64 childSetCommitCallback("wmiColorFilterBaseB", &LLFloaterPostProcess::onColorControlBMoved, (char*)"contrast_base");
64 childSetCommitCallback("ColorFilterBaseI", &LLFloaterPostProcess::onColorControlIMoved, (char*)"contrast_base"); 65 childSetCommitCallback("wmiColorFilterBaseI", &LLFloaterPostProcess::onColorControlIMoved, (char*)"contrast_base");
65 66
66 /// Night Vision Callbacks 67 /// Night Vision Callbacks
67 childSetCommitCallback("NightVisionToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_night_vision"); 68 childSetCommitCallback("wmiNightVisionToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_night_vision");
68 childSetCommitCallback("NightVisionBrightMult", &LLFloaterPostProcess::onFloatControlMoved, (char*)"brightness_multiplier"); 69 childSetCommitCallback("wmiNightVisionBrightMult", &LLFloaterPostProcess::onFloatControlMoved, (char*)"brightness_multiplier");
69 childSetCommitCallback("NightVisionNoiseSize", &LLFloaterPostProcess::onFloatControlMoved, (char*)"noise_size"); 70 childSetCommitCallback("wmiNightVisionNoiseSize", &LLFloaterPostProcess::onFloatControlMoved, (char*)"noise_size");
70 childSetCommitCallback("NightVisionNoiseStrength", &LLFloaterPostProcess::onFloatControlMoved, (char*)"noise_strength"); 71 childSetCommitCallback("wmiNightVisionNoiseStrength", &LLFloaterPostProcess::onFloatControlMoved, (char*)"noise_strength");
71 72
72 /// Bloom Callbacks 73 /// Bloom Callbacks
73 childSetCommitCallback("BloomToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_bloom"); 74 childSetCommitCallback("wmiBloomToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_bloom");
74 childSetCommitCallback("BloomExtract", &LLFloaterPostProcess::onFloatControlMoved, (char*)"extract_low"); 75 childSetCommitCallback("wmiBloomExtract", &LLFloaterPostProcess::onFloatControlMoved, (char*)"extract_low");
75 childSetCommitCallback("BloomSize", &LLFloaterPostProcess::onFloatControlMoved, (char*)"bloom_width"); 76 childSetCommitCallback("wmiBloomSize", &LLFloaterPostProcess::onFloatControlMoved, (char*)"bloom_width");
76 childSetCommitCallback("BloomStrength", &LLFloaterPostProcess::onFloatControlMoved, (char*)"bloom_strength"); 77 childSetCommitCallback("wmiBloomStrength", &LLFloaterPostProcess::onFloatControlMoved, (char*)"bloom_strength");
77 78
78 // Effect loading and saving. 79 // Effect loading and saving.
79 LLComboBox* comboBox = getChild<LLComboBox>("PPEffectsCombo"); 80 LLComboBox* comboBox = getChild<LLComboBox>("PPEffectsCombo");
@@ -113,6 +114,7 @@ void LLFloaterPostProcess::onBoolToggle(LLUICtrl* ctrl, void* userData)
113 // check the bool 114 // check the bool
114 LLCheckBoxCtrl* cbCtrl = static_cast<LLCheckBoxCtrl*>(ctrl); 115 LLCheckBoxCtrl* cbCtrl = static_cast<LLCheckBoxCtrl*>(ctrl);
115 gPostProcess->tweaks[boolVariableName] = cbCtrl->getValue(); 116 gPostProcess->tweaks[boolVariableName] = cbCtrl->getValue();
117
116} 118}
117 119
118// Float Moved 120// Float Moved
@@ -247,25 +249,25 @@ void LLFloaterPostProcess::syncMenu()
247 comboBox->selectByValue(gPostProcess->getSelectedEffect()); 249 comboBox->selectByValue(gPostProcess->getSelectedEffect());
248 250
249 /// Sync Color Filter Menu 251 /// Sync Color Filter Menu
250 childSetValue("ColorFilterToggle", gPostProcess->tweaks.useColorFilter()); 252 childSetValue("wmiColorFilterToggle", gPostProcess->tweaks.useColorFilter());
251 //childSetValue("ColorFilterGamma", gPostProcess->tweaks.gamma()); 253 //childSetValue("ColorFilterGamma", gPostProcess->tweaks.gamma());
252 childSetValue("ColorFilterBrightness", gPostProcess->tweaks.brightness()); 254 childSetValue("wmiColorFilterBrightness", gPostProcess->tweaks.brightness());
253 childSetValue("ColorFilterSaturation", gPostProcess->tweaks.saturation()); 255 childSetValue("wmiColorFilterSaturation", gPostProcess->tweaks.saturation());
254 childSetValue("ColorFilterContrast", gPostProcess->tweaks.contrast()); 256 childSetValue("wmiColorFilterContrast", gPostProcess->tweaks.contrast());
255 childSetValue("ColorFilterBaseR", gPostProcess->tweaks.contrastBaseR()); 257 childSetValue("wmiColorFilterBaseR", gPostProcess->tweaks.contrastBaseR());
256 childSetValue("ColorFilterBaseG", gPostProcess->tweaks.contrastBaseG()); 258 childSetValue("wmiColorFilterBaseG", gPostProcess->tweaks.contrastBaseG());
257 childSetValue("ColorFilterBaseB", gPostProcess->tweaks.contrastBaseB()); 259 childSetValue("wmiColorFilterBaseB", gPostProcess->tweaks.contrastBaseB());
258 childSetValue("ColorFilterBaseI", gPostProcess->tweaks.contrastBaseIntensity()); 260 childSetValue("wmiColorFilterBaseI", gPostProcess->tweaks.contrastBaseIntensity());
259 261
260 /// Sync Night Vision Menu 262 /// Sync Night Vision Menu
261 childSetValue("NightVisionToggle", gPostProcess->tweaks.useNightVisionShader()); 263 childSetValue("wmiNightVisionToggle", gPostProcess->tweaks.useNightVisionShader());
262 childSetValue("NightVisionBrightMult", gPostProcess->tweaks.brightMult()); 264 childSetValue("wmiNightVisionBrightMult", gPostProcess->tweaks.brightMult());
263 childSetValue("NightVisionNoiseSize", gPostProcess->tweaks.noiseSize()); 265 childSetValue("wmiNightVisionNoiseSize", gPostProcess->tweaks.noiseSize());
264 childSetValue("NightVisionNoiseStrength", gPostProcess->tweaks.noiseStrength()); 266 childSetValue("wmiNightVisionNoiseStrength", gPostProcess->tweaks.noiseStrength());
265 267
266 /// Sync Bloom Menu 268 /// Sync Bloom Menu
267 childSetValue("BloomToggle", LLSD(gPostProcess->tweaks.useBloomShader())); 269 childSetValue("wmiBloomToggle", LLSD(gPostProcess->tweaks.useBloomShader()));
268 childSetValue("BloomExtract", gPostProcess->tweaks.extractLow()); 270 childSetValue("wmiBloomExtract", gPostProcess->tweaks.extractLow());
269 childSetValue("BloomSize", gPostProcess->tweaks.bloomWidth()); 271 childSetValue("wmiBloomSize", gPostProcess->tweaks.bloomWidth());
270 childSetValue("BloomStrength", gPostProcess->tweaks.bloomStrength()); 272 childSetValue("wmiBloomStrength", gPostProcess->tweaks.bloomStrength());
271} 273}