Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628123
LevelInfoRender.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
LevelInfoRender.h
View Options
#ifndef LEVELINFORENDER_H
#define LEVELINFORENDER_H
#include
"Render.h"
#include
"ThemeManager.h"
class
LevelPlaySelect
;
class
LevelInfoRender
{
friend
class
LevelPlaySelect
;
private
:
//Icons
SharedTexture
playButton
;
SharedTexture
timeIcon
;
SharedTexture
recordingsIcon
;
ThemeBlockInstance
collectable
;
//Texture displaying the level description.
TexturePtr
levelDescription
;
//Texture displaying "Time" (or other language equivalent).
TexturePtr
timeText
;
//Texture displaying "Recordings" (or other language equivalent).
TexturePtr
recordingsText
;
//Texture displaying "Collectibles" (or other language equivalent).
TexturePtr
collectablesText
;
//Texture displaying the actual level time.
TexturePtr
levelTime
;
TexturePtr
levelRecs
;
std
::
string
cachedDescription
;
int
cachedWidth
;
public
:
LevelInfoRender
(
ImageManager
&
imageManager
,
SDL_Renderer
&
renderer
,
const
std
::
string
&
dataPath
,
SDL_Color
textColor
);
void
resetText
(
SDL_Renderer
&
renderer
,
SDL_Color
textColor
);
void
update
(
SDL_Renderer
&
renderer
,
SDL_Color
textColor
,
const
std
::
string
&
description
,
const
std
::
string
&
time
,
const
std
::
string
&
recordings
);
void
render
(
SDL_Renderer
&
renderer
,
bool
arcade
);
};
#endif
// LEVELINFORENDER_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:17 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120328
Default Alt Text
LevelInfoRender.h (1 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline