diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-11-11 20:38:52 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2020-06-23 14:50:59 +0300 |
commit | 0d78aa31e2bd2cf55c83a4447027a94b0939ae26 (patch) | |
tree | 538bab919c7a562a27294fb07cdb5ec7a4271306 /indra/newview/llsetkeybinddialog.cpp | |
parent | 2022c91e2d1b3d3cbb642c1669d4ac524f31af28 (diff) |
SL-6109 Removed LLDrawFrustum and used changes from EEP to prevent merge conflicts
Diffstat (limited to 'indra/newview/llsetkeybinddialog.cpp')
-rw-r--r-- | indra/newview/llsetkeybinddialog.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/indra/newview/llsetkeybinddialog.cpp b/indra/newview/llsetkeybinddialog.cpp index 8d0d71daaf..4eb76c9d89 100644 --- a/indra/newview/llsetkeybinddialog.cpp +++ b/indra/newview/llsetkeybinddialog.cpp @@ -34,6 +34,7 @@ #include "llfloaterreg.h" #include "llfocusmgr.h" #include "llkeyconflict.h" +#include "llviewercontrol.h" class LLSetKeyBindDialog::Updater : public LLEventTimer { @@ -70,8 +71,15 @@ LLSetKeyBindDialog::LLSetKeyBindDialog(const LLSD& key) : LLModalDialog(key), pParent(NULL), mKeyFilterMask(DEFAULT_KEY_FILTER), - pUpdater(NULL) + pUpdater(NULL), + mContextConeOpacity(0.f), + mContextConeInAlpha(0.f), + mContextConeOutAlpha(0.f), + mContextConeFadeTime(0.f) { + mContextConeInAlpha = gSavedSettings.getF32("ContextConeInAlpha"); + mContextConeOutAlpha = gSavedSettings.getF32("ContextConeOutAlpha"); + mContextConeFadeTime = gSavedSettings.getF32("ContextConeFadeTime"); } LLSetKeyBindDialog::~LLSetKeyBindDialog() @@ -119,18 +127,23 @@ void LLSetKeyBindDialog::onClose(bool app_quiting) LLModalDialog::onClose(app_quiting); } +void LLSetKeyBindDialog::drawFrustum() +{ + static LLCachedControl<F32> max_opacity(gSavedSettings, "PickerContextOpacity", 0.4f); + drawConeToOwner(mContextConeOpacity, max_opacity, mFrustumOrigin.get(), mContextConeFadeTime, mContextConeInAlpha, mContextConeOutAlpha); +} + //virtual void LLSetKeyBindDialog::draw() { - LLRect local_rect; - drawFrustum(local_rect, this, (LLView*)getDragHandle(), hasFocus()); + drawFrustum(); LLModalDialog::draw(); } void LLSetKeyBindDialog::setParent(LLKeyBindResponderInterface* parent, LLView* frustum_origin, U32 key_mask) { pParent = parent; - setFrustumOrigin(frustum_origin); + mFrustumOrigin = frustum_origin->getHandle(); mKeyFilterMask = key_mask; std::string input; |