| 124 | } |
| 125 | |
| 126 | void FreqTextLabel::setFade(bool update, bool isFadeIn) |
| 127 | { |
| 128 | mUpdate = update; |
| 129 | mFadeIn = isFadeIn; |
| 130 | |
| 131 | // This ensures a component with alpha=0 is still visible to the mouse |
| 132 | // so that a mouse-over can trigger the fade-in. |
| 133 | if (isFadeIn && getAlpha() == 0.0f) |
| 134 | setAlpha(0.01f); |
| 135 | |
| 136 | // Start the timer only if an animation is requested and the timer isn't already running. |
| 137 | if (mUpdate && ! isTimerRunning()) |
| 138 | { |
| 139 | startTimerHz(60); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void FreqTextLabel::setFreq(int freq) |
| 144 | { |