summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-05-10 01:55:48 +0200
committerTreeki <treeki@gmail.com>2013-05-10 01:55:48 +0200
commit306b6678bbabae9fd74ca35807ceff61c52a343f (patch)
treeda36d48252f3688b5f17743776d97c07bff9cf7e /src/koopatlas
parent8a87c00b672ffea866ba838d3e6986c3ae03f07f (diff)
downloadkamek-306b6678bbabae9fd74ca35807ceff61c52a343f.tar.gz
kamek-306b6678bbabae9fd74ca35807ceff61c52a343f.zip
attempted to add icons to completion messages
Diffstat (limited to 'src/koopatlas')
-rw-r--r--src/koopatlas/core.cpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp
index 1b2db0d..6e8db90 100644
--- a/src/koopatlas/core.cpp
+++ b/src/koopatlas/core.cpp
@@ -1081,6 +1081,16 @@ void dScKoopatlas_c::showSaveWindow() {
yesNoWindow->visible = true;
}
+static const wchar_t *completionMsgs[] = {
+ L"butts",
+ L"You've collected all of\nthe \x0B\x014F\xBEEF Star Coins in",
+ L"You have gotten every \x0B\x013B\xBEEF exit\nin",
+ L"You have gotten everything\nin",
+ L"You have collected all the\nnecessary \x0B\x014F\xBEEF coins to enter\nthe Special World!",
+ L"You have collected all the \x0B\x014F\xBEEF Star\nCoins in the game!",
+ L"You've found every \x0B\x013B\xBEEF exit in the\ngame!",
+ L"You've completed everything in\nNEWER SUPER MARIO BROS. Wii!"
+};
void dScKoopatlas_c::beginState_CompletionMsg() {
OSReport("CompletionMsg beginning with type %d\n", pathManager.completionMessageType);
@@ -1111,11 +1121,11 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
int type = pathManager.completionMessageType;
- if (type >= CMP_MSG_COINS && type <= CMP_MSG_WORLD) {
- // get the stuff we need: base BMG string
- static const int bmgs[4] = {-1, 65, 58, 59};
- const wchar_t *baseText = GetBMG()->findStringForMessageID(0, bmgs[type]);
+ const wchar_t *baseText = completionMsgs[type];
+ // Used when we assemble a dynamic message
+ wchar_t text[512];
+ if (type >= CMP_MSG_COINS && type <= CMP_MSG_WORLD) {
// title
int w = pathManager.completionMessageWorldNum;
int l = ((w == 5) || (w == 7)) ? 101 : 100;
@@ -1123,7 +1133,6 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
const char *title = dLevelInfo_c::s_info.getNameForLevel(titleEntry);
// assemble the string
- wchar_t text[512];
wcscpy(text, baseText);
int pos = wcslen(text);
@@ -1138,10 +1147,11 @@ void dScKoopatlas_c::executeState_CompletionMsg() {
text[pos++] = '!';
text[pos++] = 0;
-
- yesNoWindow->T_question_00->SetString(text);
- yesNoWindow->T_questionS_00->SetString(text);
+ baseText = text;
}
+
+ yesNoWindow->T_question_00->SetString(baseText);
+ yesNoWindow->T_questionS_00->SetString(baseText);
}
if (!yesNoWindow->animationActive) {