5 Instrument(prmX, prmY, prmXScale, prmYScale, prmBus, prmLogger, prmDevice, prmFonts)
10 background =
new Sprite(
logger,
pDevice,
"Textures/Instruments/CarRadio.png", prmX, prmY, 0.2f, 0, 0, 102, 35, 0xFFFFFFFF);
20 DrawText(L
"progressive", 28, -1, 0.3f, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255));
21 DrawText(L
"psytrance", 28, 10, 0.3f, DT_NOCLIP, D3DCOLOR_ARGB(255, 255, 255, 255));
30 wcscpy_s(
nowPlaying, 99, L
"NOW PLAYING >>> UNKNOWN");
44 if (
textpos >= static_cast<float>(wcslen(str)))
47 if (
textpos >= (static_cast<float>(wcslen(str)) - 20))
49 short nonstat =
static_cast<short>(wcslen(str)) - 20;
57 short nonstat =
static_cast<short>(
textpos);
58 swprintf_s(
nowPlaying, 99, L
"%.20s", &str[nonstat]);
void Draw(D3DXCOLOR prmColor)
void FrameMove(float fElapsed) override
void AddToCallStack(const char *msg)
void DrawText(const WCHAR *str, int relativeX, int relativeY, float prmZ, int flags, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0)
CarRadio(int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)