tlac: rename DrawSprites stuff to Draw2D, use a better hook for it
This commit is contained in:
@@ -143,11 +143,11 @@ namespace TLAC::Components
|
||||
}
|
||||
}
|
||||
|
||||
void ComponentsManager::UpdateDrawSprites()
|
||||
void ComponentsManager::UpdateDraw2D()
|
||||
{
|
||||
for (auto& component : components)
|
||||
{
|
||||
component->UpdateDrawSprites();
|
||||
component->UpdateDraw2D();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace TLAC::Components
|
||||
void Update();
|
||||
void UpdateInput();
|
||||
void UpdatePostInput();
|
||||
void UpdateDrawSprites();
|
||||
void UpdateDraw2D();
|
||||
void OnFocusGain();
|
||||
void OnFocusLost();
|
||||
void Dispose();
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace TLAC::Components
|
||||
|
||||
virtual void UpdateInput() {};
|
||||
virtual void UpdatePostInput() {};
|
||||
virtual void UpdateDrawSprites() {};
|
||||
virtual void UpdateDraw2D() {};
|
||||
virtual void OnFocusGain() {};
|
||||
virtual void OnFocusLost() {};
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace TLAC::Components
|
||||
}
|
||||
}
|
||||
|
||||
void Pause::UpdateDrawSprites()
|
||||
void Pause::UpdateDraw2D()
|
||||
{
|
||||
if (isPaused && showUI)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace TLAC::Components
|
||||
virtual void Initialize(ComponentsManager*) override;
|
||||
virtual void Update() override;
|
||||
virtual void UpdatePostInput() override;
|
||||
virtual void UpdateDrawSprites() override;
|
||||
virtual void UpdateDraw2D() override;
|
||||
|
||||
static bool pause; // set pause to change pause state
|
||||
static bool giveUp; // set give up to end current song
|
||||
|
||||
Reference in New Issue
Block a user