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.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user