[Scummvm-git-logs] scummvm master -> e5a3f5b7e16ca63b3d8d3ea6a5d00b8476eed4e6

dreammaster dreammaster at scummvm.org
Sat Feb 24 02:19:03 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e5a3f5b7e1 XEEN: Add custom minimap logo for Swords of Xeen


Commit: e5a3f5b7e16ca63b3d8d3ea6a5d00b8476eed4e6
    https://github.com/scummvm/scummvm/commit/e5a3f5b7e16ca63b3d8d3ea6a5d00b8476eed4e6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-02-23T20:19:09-05:00

Commit Message:
XEEN: Add custom minimap logo for Swords of Xeen

Changed paths:
    engines/xeen/dialogs_party.cpp
    engines/xeen/interface.cpp
    engines/xeen/interface_minimap.cpp
    engines/xeen/resources.cpp
    engines/xeen/resources.h


diff --git a/engines/xeen/dialogs_party.cpp b/engines/xeen/dialogs_party.cpp
index c0c58cc..b0c6382 100644
--- a/engines/xeen/dialogs_party.cpp
+++ b/engines/xeen/dialogs_party.cpp
@@ -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) {
diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp
index 9ce2553..3e1dd67 100644
--- a/engines/xeen/interface.cpp
+++ b/engines/xeen/interface.cpp
@@ -175,7 +175,6 @@ void Interface::setup() {
 
 void Interface::startup() {
 	Resources &res = *_vm->_resources;
-	Windows &windows = *_vm->_windows;
 
 	animate3d();
 	if (_vm->_map->_isOutdoors) {
@@ -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();
 
diff --git a/engines/xeen/interface_minimap.cpp b/engines/xeen/interface_minimap.cpp
index 4eb02fb..5ab1069 100644
--- a/engines/xeen/interface_minimap.cpp
+++ b/engines/xeen/interface_minimap.cpp
@@ -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;
 	}
 
diff --git a/engines/xeen/resources.cpp b/engines/xeen/resources.cpp
index bed8a1a..7f9e1df 100644
--- a/engines/xeen/resources.cpp
+++ b/engines/xeen/resources.cpp
@@ -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())
diff --git a/engines/xeen/resources.h b/engines/xeen/resources.h
index 2761f40..09f7202 100644
--- a/engines/xeen/resources.h
+++ b/engines/xeen/resources.h
@@ -110,6 +110,7 @@ private:
 	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];





More information about the Scummvm-git-logs mailing list