MM: MM1: Implement large message display for Leprechaun

This commit is contained in:
Paul Gilbert 2023-03-08 21:30:28 -08:00
parent 8be4939b60
commit bed08fd350
3 changed files with 8 additions and 2 deletions

View File

@ -1147,6 +1147,7 @@ maps:
levitate: ", levitation saves you!"
emap00:
training_inside: "Before you are various groups engaged in training exercises. Worg, the guildmaster asks, \"Do you require training (Y/N)?\""
leprechaun: "A tenacious leprechaun appears saying, \"Traveling the roads is quite dangerous save for the strong and courageous, Only 1 gem you lose and i'll send you to the town you choose.\"\n\n'ESC' to go back\nWhich town (1-5)?"
map01:
blacksmith: "\"B. Smith's workshop\""
@ -1171,7 +1172,7 @@ maps:
map02:
blacksmith: "\"Swampside supplies\""
inn: "\"The inn of algary\""
inn: "\"The inn of Algary\""
market: "\"Arcon's slop\""
tavern: "\"Jolly jester tavern\""
temple: "\"Temple half-dead\""

View File

@ -131,6 +131,7 @@ void Map00::special08() {
case Common::KEYCODE_3:
case Common::KEYCODE_4:
case Common::KEYCODE_5:
g_events->focusedView()->close();
map[TOWN_NUM] = keyState.ascii;
for (uint i = 0; i < g_globals->_party.size(); ++i) {
@ -152,7 +153,6 @@ void Map00::special08() {
}
maps._mapPos = Common::Point(8, 5);
g_events->send("View", GameMessage("UPDATE"));
break;
default:
break;

View File

@ -76,6 +76,11 @@ bool GameMessages::msgInfo(const InfoMessage &msg) {
// Add the view
addView(this);
if (msg._largeMessage)
setBounds(Common::Rect(0, 90, 234, 200));
else
setBounds(Common::Rect(0, 144, 234, 200));
// Process the lines
clear();
for (const auto &line : msg._lines)