OpenBarnyard
 
Loading...
Searching...
No Matches
AGUISlideshow.h
Go to the documentation of this file.
1#pragma once
2#include "AGUI2Rectangle.h"
4
5#include <Toshi/TPString8.h>
7
8class AGUISlideshow : public Toshi::TObject
9{
10public:
11 TDECLARE_CLASS( AGUISlideshow, Toshi::TObject );
12
13 using Flags = TUINT32;
25
41
42public:
44
45 TBOOL Setup( AGameState::HUDParams* a_pHUDParams, const Params& a_rParams, TBOOL a_bShouldLocalise );
46 void Update( TFLOAT a_fDeltaTime );
47 void UpdateFadeOverlay();
48 void SwitchToNextSlide( TBOOL a_bUnused = TTRUE );
49
50 void Activate();
51 void Deactivate();
52 void Reset();
53
54 TBOOL ProcessInput( const Toshi::TInputInterface::InputEvent* a_pEvent );
57
59 {
60 return m_Images.Size() != 0;
61 }
62
63 void AddSlide( const Toshi::TPString8& a_rName )
64 {
65 m_Images.PushBack( a_rName );
66 }
67
68public:
69 static Toshi::TPString8* LocaliseBackgroundFileName( Toshi::TPString8& a_rOutName, const Toshi::TPString8& a_rName );
70 static void LocaliseBackgroundFileName( Toshi::TPString8& a_rOutName, const TCHAR* a_szName );
71
72protected:
74 Toshi::T2DynamicVector<Toshi::TPString8> m_Images;
75 Toshi::T2DynamicVector<Toshi::TPString8>::Iterator m_ImageIterator;
87};
#define BITFLAG(x)
Definition Defines.h:10
#define TDECLARE_CLASS(THIS_CLASS, PARENT_CLASS)
Definition TObject.h:38
char TCHAR
Definition Typedefs.h:20
float TFLOAT
Definition Typedefs.h:4
uint32_t TUINT32
Definition Typedefs.h:13
int TINT
Definition Typedefs.h:7
#define TTRUE
Definition Typedefs.h:25
bool TBOOL
Definition Typedefs.h:6
Dynamic vector container for the Toshi engine.
AInputCommand
Definition AInputMap.h:12
AGUI2Rectangle m_FadeOverlay
TBOOL HasSlides() const
TBOOL ProcessCommand(AInputCommand a_eCommand)
void UpdateFadeOverlay()
TFLOAT m_fFadeOutTime
AGameState::HUDParams * m_pHUDParams
void Update(TFLOAT a_fDeltaTime)
TBOOL IsSlideshowOver()
void AddSlide(const Toshi::TPString8 &a_rName)
TBOOL ProcessInput(const Toshi::TInputInterface::InputEvent *a_pEvent)
TBOOL Setup(AGameState::HUDParams *a_pHUDParams, const Params &a_rParams, TBOOL a_bShouldLocalise)
Toshi::T2DynamicVector< Toshi::TPString8 >::Iterator m_ImageIterator
Toshi::T2DynamicVector< Toshi::TPString8 > m_Images
TFLOAT m_fFadeInTime
TFLOAT m_fCurrentSlideTime
TBOOL m_bShouldLocalise
void SwitchToNextSlide(TBOOL a_bUnused=true)
static Toshi::TPString8 * LocaliseBackgroundFileName(Toshi::TPString8 &a_rOutName, const Toshi::TPString8 &a_rName)