#include <AGUISlideshow.h>
Definition at line 8 of file AGUISlideshow.h.
◆ BaseClass
◆ Flags
◆ ThisClass
◆ Flags_
Enumerator |
---|
Flags_None | |
Flags_Skippable | |
Flags_Unk1 | |
Flags_InstaSkippable | |
Flags_HasFadeIn | |
Flags_HasFadeOut | |
Flags_Repeat | |
Flags_Ended | |
Definition at line 14 of file AGUISlideshow.h.
◆ AGUISlideshow()
AGUISlideshow::AGUISlideshow |
( |
| ) |
|
Definition at line 15 of file AGUISlideshow.cpp.
16 :
m_Images( Toshi::GetGlobalAllocator(), 64, 64 )
17{
29}
AGameState::HUDParams * m_pHUDParams
Toshi::T2DynamicVector< Toshi::TPString8 > m_Images
TFLOAT m_fCurrentSlideTime
◆ Activate()
void AGUISlideshow::Activate |
( |
| ) |
|
Definition at line 59 of file AGUISlideshow.cpp.
60{
62
66
68 {
70 {
71 AGUISystem::GetSingleton()->SetPicture(
m_Images[ 0 ] );
72 }
73 else
74 {
75 Toshi::TPString8 pictureName;
77 AGUISystem::GetSingleton()->SetPicture( pictureName );
78 }
79 }
80
83}
Toshi::T2DynamicVector< Toshi::TPString8 >::Iterator m_ImageIterator
static Toshi::TPString8 * LocaliseBackgroundFileName(Toshi::TPString8 &a_rOutName, const Toshi::TPString8 &a_rName)
◆ AddSlide()
void AGUISlideshow::AddSlide |
( |
const Toshi::TPString8 & | a_rName | ) |
|
|
inline |
◆ CreateTObject()
Toshi::TObject * AGUISlideshow::CreateTObject |
( |
| ) |
|
|
static |
◆ CreateTObjectInPlace()
Toshi::TObject * AGUISlideshow::CreateTObjectInPlace |
( |
void * | a_pPtr | ) |
|
|
static |
◆ Deactivate()
void AGUISlideshow::Deactivate |
( |
| ) |
|
Definition at line 196 of file AGUISlideshow.cpp.
197{
199
201 AGUISystem::GetSingleton()->SetPicture( Toshi::TPString8() );
203}
◆ DeinitialiseClass()
void AGUISlideshow::DeinitialiseClass |
( |
| ) |
|
|
static |
◆ GetClass()
Toshi::TClass * AGUISlideshow::GetClass |
( |
| ) |
|
|
overridevirtual |
◆ GetClassStatic()
static __forceinline Toshi::TClass * AGUISlideshow::GetClassStatic |
( |
| ) |
|
|
inlinestatic |
◆ HasSlides()
TBOOL AGUISlideshow::HasSlides |
( |
| ) |
const |
|
inline |
◆ InitialiseClass()
void AGUISlideshow::InitialiseClass |
( |
| ) |
|
|
static |
◆ IsSlideshowOver()
TBOOL AGUISlideshow::IsSlideshowOver |
( |
| ) |
|
Definition at line 161 of file AGUISlideshow.cpp.
162{
164 {
166 }
167
169 {
171 }
172
174}
#define HASANYFLAG(STATE, FLAG)
◆ LocaliseBackgroundFileName() [1/2]
void AGUISlideshow::LocaliseBackgroundFileName |
( |
Toshi::TPString8 & | a_rOutName, |
|
|
const TCHAR * | a_szName ) |
|
static |
Definition at line 37 of file AGUISlideshow.cpp.
38{
39 TCHAR szFormattedName[ 256 ];
40 auto eLang = ALocaleManager::GetSingleton()->GetLanguage();
41
43 {
45 Toshi::TStringManager::String8Copy(
46 szLang,
48 sizeof( szLang )
49 );
50
51 szLang[ 1 ] = '\0';
52 Toshi::TStringManager::String8Format( szFormattedName, sizeof( szFormattedName ), "%s%s", a_szName, szLang );
53 a_szName = szFormattedName;
54 }
55
56 a_rOutName = Toshi::TPString8( a_szName );
57}
static ALocaleManager * Interface()
◆ LocaliseBackgroundFileName() [2/2]
Toshi::TPString8 * AGUISlideshow::LocaliseBackgroundFileName |
( |
Toshi::TPString8 & | a_rOutName, |
|
|
const Toshi::TPString8 & | a_rName ) |
|
static |
◆ ProcessCommand()
Definition at line 292 of file AGUISlideshow.cpp.
293{
295 {
297 {
300 }
301
303 }
304
308}
void SwitchToNextSlide(TBOOL a_bUnused=true)
◆ ProcessInput()
TBOOL AGUISlideshow::ProcessInput |
( |
const Toshi::TInputInterface::InputEvent * | a_pEvent | ) |
|
Definition at line 271 of file AGUISlideshow.cpp.
272{
273 if ( a_pEvent->GetEventType() == Toshi::TInputInterface::EVENT_TYPE_GONE_DOWN )
274 {
276 {
280 }
281
283 {
286 }
287 }
288
290}
◆ Reset()
void AGUISlideshow::Reset |
( |
| ) |
|
◆ Setup()
Definition at line 205 of file AGUISlideshow.cpp.
206{
208 {
210 }
211
214
215 if ( a_rParams.iUnk1 != 0 )
216 {
218 }
219
221
222 if ( a_rParams.bSlideSkippable )
223 {
225 }
226
227 if ( a_rParams.bUnk2 )
228 {
230 }
231
232 if ( a_rParams.bInstaSkippable )
233 {
235 }
236
237 if ( a_rParams.bHasFadeIn )
238 {
241 }
242
243 if ( a_rParams.bHasFadeOut )
244 {
247 }
248
249 if ( a_rParams.bRepeat )
250 {
252 }
253
256
258 AGUI2::GetSingleton()->GetDimensions( fWidth, fHeight );
262
263 if ( a_rParams.bDelayAppear )
264 {
266 }
267
269}
@ AGUI2ATTACHMENT_TOPCENTER
AGUI2Rectangle m_FadeOverlay
◆ SwitchToNextSlide()
void AGUISlideshow::SwitchToNextSlide |
( |
TBOOL | a_bUnused = true | ) |
|
Definition at line 176 of file AGUISlideshow.cpp.
177{
179 {
181 }
182
184 {
187 }
188
190
191 Toshi::TPString8 pictureName;
193 AGUISystem::GetSingleton()->SetPicture( pictureName );
194}
◆ Update()
void AGUISlideshow::Update |
( |
TFLOAT | a_fDeltaTime | ) |
|
Definition at line 135 of file AGUISlideshow.cpp.
136{
138 {
140
142 {
144 return;
145 }
146
148
150 {
152 }
153
155 return;
156 }
157
159}
◆ UpdateFadeOverlay()
void AGUISlideshow::UpdateFadeOverlay |
( |
| ) |
|
Definition at line 85 of file AGUISlideshow.cpp.
86{
88
90 {
92 {
94 {
95 fOpacity = 0.0f;
96 }
97 else
98 {
100
101 if ( fOpacity > 1.0f )
102 {
103 fOpacity = 1.0f;
104 }
105 }
106 }
107 else
108 {
110 }
111 }
112 else
113 {
115
116 if ( fOpacity >= 1.0f )
117 {
118 Toshi::TPString8 pictureName;
120 AGUISystem::GetSingleton()->SetPicture( pictureName );
121
124 fOpacity = 1.0f;
125 }
126 }
127
133}
static AGUI2Element * GetRootElement()
void AddChildTail(AGUI2Element &a_rElement)
◆ m_bIsActive
TBOOL AGUISlideshow::m_bIsActive |
|
protected |
◆ m_bIsAppearing
TBOOL AGUISlideshow::m_bIsAppearing |
|
protected |
◆ m_bShouldLocalise
TBOOL AGUISlideshow::m_bShouldLocalise |
|
protected |
◆ m_eFlags
Flags AGUISlideshow::m_eFlags |
|
protected |
◆ m_FadeOverlay
◆ m_fCurrentSlideTime
TFLOAT AGUISlideshow::m_fCurrentSlideTime |
|
protected |
◆ m_fDuration
TFLOAT AGUISlideshow::m_fDuration |
|
protected |
◆ m_fFadeInTime
TFLOAT AGUISlideshow::m_fFadeInTime |
|
protected |
◆ m_fFadeOutTime
TFLOAT AGUISlideshow::m_fFadeOutTime |
|
protected |
◆ m_fUnk2
◆ m_fUnk4
◆ m_ImageIterator
Toshi::T2DynamicVector<Toshi::TPString8>::Iterator AGUISlideshow::m_ImageIterator |
|
protected |
◆ m_Images
Toshi::T2DynamicVector<Toshi::TPString8> AGUISlideshow::m_Images |
|
protected |
◆ m_pHUDParams
◆ ms_oClass
◆ PARENTCLASS
Toshi::TClass* AGUISlideshow::PARENTCLASS = & Toshi::TObject::ms_oClass |
|
staticconstexpr |
The documentation for this class was generated from the following files: