From 3574f576249b07aa78dd011f2d3679032ee38dec Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 15 Jul 2005 01:16:05 +0000 Subject: [PATCH] working on reusable screens: instead of starting tweens in Init, just load actors in Init and begin tweening in BeginScreen (along with anything else needed to start or restart a screen). Many things done in FirstUpdate can probably be moved here, too. --- stepmania/src/Screen.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/Screen.h b/stepmania/src/Screen.h index 09812724f4..c291c34187 100644 --- a/stepmania/src/Screen.h +++ b/stepmania/src/Screen.h @@ -38,6 +38,10 @@ public: /* This is called immediately after construction, to allow initializing after all derived classes * exist. */ virtual void Init(); + + /* This is called immediately before the screen is used. */ + virtual void BeginScreen() { } + virtual void Update( float fDeltaTime ); virtual bool OverlayInput( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI ); virtual void Input( const DeviceInput& DeviceI, const InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI );