mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Use standard wide string returns for tutorial messages
This commit is contained in:
parent
377e1d2192
commit
8302870fec
|
|
@ -11,7 +11,7 @@ bool TutorialMessage::canDisplay()
|
||||||
return !limitRepeats || (timesShown < numRepeats);
|
return !limitRepeats || (timesShown < numRepeats);
|
||||||
}
|
}
|
||||||
|
|
||||||
LPCWSTR TutorialMessage::getMessageForDisplay()
|
const wchar_t *TutorialMessage::getMessageForDisplay()
|
||||||
{
|
{
|
||||||
if(!canDisplay())
|
if(!canDisplay())
|
||||||
return L"";
|
return L"";
|
||||||
|
|
@ -20,4 +20,4 @@ LPCWSTR TutorialMessage::getMessageForDisplay()
|
||||||
++timesShown;
|
++timesShown;
|
||||||
|
|
||||||
return app.GetString( messageId );
|
return app.GetString( messageId );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,5 @@ public:
|
||||||
TutorialMessage(int messageId, bool limitRepeats = false, unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW);
|
TutorialMessage(int messageId, bool limitRepeats = false, unsigned char numRepeats = TUTORIAL_MESSAGE_DEFAULT_SHOW);
|
||||||
|
|
||||||
bool canDisplay();
|
bool canDisplay();
|
||||||
LPCWSTR getMessageForDisplay();
|
const wchar_t *getMessageForDisplay();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue