forked from HarbourMasters/Shipwright
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ability to store and retrieve textbox size and position.
- Loading branch information
1 parent
2d1aa1d
commit c5f6637
Showing
8 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 25 additions & 17 deletions
42
soh/soh/Enhancements/randomizer/randomizer_custom_messages.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,52 @@ | ||
#include "randomizer.h" | ||
#include "soh/Enhancements/custom_message/CustomMessage.h" | ||
#include <message_data_static.h> | ||
|
||
#define MESSAGES(eng, ger, fra) {eng, ger, fra} | ||
#define NOGDI | ||
#define WIN32_LEAN_AND_MEAN | ||
|
||
void Randomizer::CreateCustomMessages() { | ||
CustomMessage* customMessage = CustomMessage::Instance; | ||
customMessage->AddCustomMessageTable(Randomizer::customMessageTableID); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_BLUE_FIRE, ITEM_BLUE_FIRE, | ||
MESSAGES("You got a %rBottle with Blue &Fire%w! Use it to melt Red Ice!", "", "")); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rBottle with Blue &Fire%w! Use it to melt Red Ice!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_BIG_POE, ITEM_BIG_POE, | ||
MESSAGES("You got a %rBig Poe in a Bottle%w!&Sell it to the Ghost Shop!", "", "")); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rBig Poe in a Bottle%w!&Sell it to the Ghost Shop!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_BLUE_POTION, ITEM_POTION_BLUE, | ||
MESSAGES("You got a %rBottle of Blue Potion%w!&Drink it to replenish your&%ghealth%w and %bmagic%w!", "", "")); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rBottle of Blue Potion%w!&Drink it to replenish your&%ghealth%w and %bmagic%w!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_FISH, ITEM_FISH, | ||
MESSAGES("You got a %rFish in a Bottle%w!&It looks fresh and delicious!&They say Jabu-Jabu loves them!", "", "")); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rFish in a Bottle%w!&It looks fresh and delicious!&They say Jabu-Jabu loves them!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_BUGS, ITEM_BUG, | ||
{ "You got a %rBug in a Bottle%w!&They love to burrow in&dirt holes!", "", "" }); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, "You got a %rBug in a Bottle%w!&They love to burrow in&dirt holes!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_FAIRY, ITEM_FAIRY, | ||
{ "You got a %rFairy in a Bottle%w!&Use it wisely!", "", "" }); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, "You got a %rFairy in a Bottle%w!&Use it wisely!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_RED_POTION, ITEM_POTION_RED, | ||
{ "You got a %rBottle of Red Potion%w!&Drink it to replenish your&%ghealth%w!", "", "" }); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, "You got a %rBottle of Red Potion%w!&Drink it to replenish your&%ghealth%w!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_GREEN_POTION, ITEM_POTION_GREEN, | ||
{ "You got a %rBottle of Green Potion%w!&Drink it to replenish your&%bmagic%w!", "", "" }); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rBottle of Green Potion%w!&Drink it to replenish your&%bmagic%w!", "", "" }); | ||
customMessage->CreateGetItemMessage( | ||
Randomizer::customMessageTableID, GI_BOTTLE_WITH_POE, ITEM_POE, | ||
{ "You got a %rPoe in a Bottle%w!&That creepy Ghost Shop might&be interested in this...", "", "" }); | ||
{ TEXTBOX_TYPE_BLUE, TEXTBOX_POS_BOTTOM, | ||
"You got a %rPoe in a Bottle%w!&That creepy Ghost Shop might&be interested in this...", "", "" }); | ||
} | ||
|
||
std::string Randomizer::GetCustomGetItemMessage(GetItemID giid) { | ||
if (!gSaveContext.n64ddFlag) { | ||
return "Not Randomized."; | ||
} | ||
|
||
return CustomMessage::Instance->RetrieveMessage(Randomizer::customMessageTableID, giid); | ||
} | ||
//std::string Randomizer::GetCustomGetItemMessage(GlobalContext* globalCtx, GetItemID giid) { | ||
// if (!gSaveContext.n64ddFlag) { | ||
// return "Not Randomized."; | ||
// } | ||
// | ||
// return CustomMessage::Instance->RetrieveMessage(globalCtx, Randomizer::customMessageTableID, giid); | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters