Skip to content

Commit

Permalink
XEEN: Add custom minimap logo for Swords of Xeen
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Feb 24, 2018
1 parent d5deec5 commit e5a3f5b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions engines/xeen/dialogs_party.cpp
Expand Up @@ -83,6 +83,9 @@ void PartyDialog::execute() {
_uiSprites.draw(w, 6, Common::Point(122, 100));
_uiSprites.draw(w, 8, Common::Point(157, 100));
_uiSprites.draw(w, 10, Common::Point(192, 100));
if (g_vm->getGameID() == GType_Swords)
Res._logoSprites.draw(1, 0, Common::Point(232, 9));

screen.loadPalette("mm4.pal");

if (modeFlag) {
Expand Down
7 changes: 5 additions & 2 deletions engines/xeen/interface.cpp
Expand Up @@ -175,7 +175,6 @@ void Interface::setup() {

void Interface::startup() {
Resources &res = *_vm->_resources;
Windows &windows = *_vm->_windows;

animate3d();
if (_vm->_map->_isOutdoors) {
Expand All @@ -187,7 +186,11 @@ void Interface::startup() {
}
draw3d(false);

res._globalSprites.draw(windows[1], 5, Common::Point(232, 9));
if (g_vm->getGameID() == GType_Swords)
res._logoSprites.draw(1, 0, Common::Point(232, 9));
else
res._globalSprites.draw(1, 5, Common::Point(232, 9));

drawParty(false);
setMainButtons();

Expand Down
5 changes: 4 additions & 1 deletion engines/xeen/interface_minimap.cpp
Expand Up @@ -42,7 +42,10 @@ void InterfaceMinimap::drawMinimap() {
return;
if (!party._automapOn && !party._wizardEyeActive) {
// Draw the Might & Magic logo
res._globalSprites.draw(1, 5, Common::Point(MINIMAP_XSTART - (TILE_WIDTH / 2), 9));
if (g_vm->getGameID() == GType_Swords)
res._logoSprites.draw(1, 0, Common::Point(MINIMAP_XSTART - (TILE_WIDTH / 2), 9));
else
res._globalSprites.draw(1, 5, Common::Point(MINIMAP_XSTART - (TILE_WIDTH / 2), 9));
return;
}

Expand Down
2 changes: 2 additions & 0 deletions engines/xeen/resources.cpp
Expand Up @@ -35,6 +35,8 @@ Resources::Resources() {
g_vm->_files->setGameCc(1);

_globalSprites.load("global.icn");
if (g_vm->getGameID() == GType_Swords)
_logoSprites.load("logo.int");

File f((g_vm->getGameID() == GType_Clouds) ? "mae.cld" : "mae.xen");
while (f.pos() < f.size())
Expand Down
1 change: 1 addition & 0 deletions engines/xeen/resources.h
Expand Up @@ -110,6 +110,7 @@ class Resources {
void loadData();
public:
SpriteResource _globalSprites;
SpriteResource _logoSprites;
Common::StringArray _maeNames; // Magic and equipment names
Common::StringArray _cloudsMapNames; // Clouds of Xeen map names
const char **ITEM_NAMES[4];
Expand Down

0 comments on commit e5a3f5b

Please sign in to comment.