mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Reveal slow, unreveal instant
Just playing with Damien's animation code :)
This commit is contained in:
@@ -131,7 +131,7 @@ class AllPlotWindow : public GcWindow
|
||||
// reveal
|
||||
bool hasReveal() { return true; }
|
||||
void reveal() { revealControls->show(); revealAnim->start(); }
|
||||
void unreveal() { unrevealAnim->start(); }
|
||||
void unreveal() { unrevealAnim->start(); revealControls->hide(); }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class HrPwWindow : public GcWindow
|
||||
// reveal
|
||||
bool hasReveal() { return true; }
|
||||
void reveal() { revealControls->show(); revealAnim->start(); }
|
||||
void unreveal() { unrevealAnim->start(); }
|
||||
void unreveal() { unrevealAnim->start(); revealControls->hide(); }
|
||||
|
||||
int smooth;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user