Reveal slow, unreveal instant

Just playing with Damien's animation code :)
This commit is contained in:
Mark Liversedge
2013-01-25 15:52:01 +00:00
parent 14fb41fb27
commit bfb7fbbd9b
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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;