Skip to content
Snippets Groups Projects
Commit 4ef75f35 authored by Richard Nelson's avatar Richard Nelson
Browse files

stopped hints from appearing temporarily when retriggered

parent 187c229a
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ class LLHintPopup : public LLPanel ...@@ -104,7 +104,7 @@ class LLHintPopup : public LLPanel
void onClickClose() { hide(); } void onClickClose() { hide(); }
void draw(); void draw();
void hide() { mHidden = true; mFadeTimer.reset(); } void hide() { if(!mHidden) {mHidden = true; mFadeTimer.reset();} }
private: private:
LLNotificationPtr mNotification; LLNotificationPtr mNotification;
...@@ -169,6 +169,10 @@ void LLHintPopup::draw() ...@@ -169,6 +169,10 @@ void LLHintPopup::draw()
if (mHidden) if (mHidden)
{ {
alpha = clamp_rescale(mFadeTimer.getElapsedTimeF32(), 0.f, mFadeOutTime, 1.f, 0.f); alpha = clamp_rescale(mFadeTimer.getElapsedTimeF32(), 0.f, mFadeOutTime, 1.f, 0.f);
if (alpha == 0.f)
{
die();
}
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment