[Scummvm-cvs-logs] SF.net SVN: scummvm: [26767] scummvm/trunk/engines/saga

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun May 6 19:18:12 CEST 2007


Revision: 26767
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26767&view=rev
Author:   thebluegr
Date:     2007-05-06 10:18:11 -0700 (Sun, 06 May 2007)

Log Message:
-----------
Added (non-functional) save and load buttons in the options panel of IHNM

Modified Paths:
--------------
    scummvm/trunk/engines/saga/displayinfo.h
    scummvm/trunk/engines/saga/interface.cpp

Modified: scummvm/trunk/engines/saga/displayinfo.h
===================================================================
--- scummvm/trunk/engines/saga/displayinfo.h	2007-05-06 14:57:35 UTC (rev 26766)
+++ scummvm/trunk/engines/saga/displayinfo.h	2007-05-06 17:18:11 UTC (rev 26767)
@@ -329,7 +329,9 @@
 	// TODO: Add Voices widget here
 	{kPanelButtonOption,	19,149,	200,25,	kTextQuitGame,'q',0,	0,0,0},		//quit
 	{kPanelButtonOption,	19,177,	200,25,	kTextContinuePlaying,'c',0,	0,0,0}, //continue
-	//.....
+	// TODO: Implement load/save
+	{kPanelButtonOption,	244,164, 79,23,	kTextLoad,'l',0,	0,0,0},			//load
+	{kPanelButtonOption,	335,164, 79,23,	kTextSave,'s',0,	0,0,0},			//save
 };
 
 static PanelButton IHNM_QuitPanelButtons[] = {

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2007-05-06 14:57:35 UTC (rev 26766)
+++ scummvm/trunk/engines/saga/interface.cpp	2007-05-06 17:18:11 UTC (rev 26767)
@@ -725,6 +725,7 @@
 	Rect rect2;
 	PanelButton *panelButton;
 	Point textPoint;
+	Point point;
 	
 	backBuffer = _vm->_gfx->getBackBuffer();
 
@@ -733,6 +734,15 @@
 
 	for (i = 0; i < _optionPanel.buttonsCount; i++) {
 		panelButton = &_optionPanel.buttons[i];
+
+		// TODO: This probably works for the button background, but the resources are still not loeaded
+		// (_optionPanel.sprites)
+		/*
+		point.x = _optionPanel.x + panelButton->xOffset;
+		point.y = _optionPanel.y + panelButton->yOffset;
+		_vm->_sprite->draw(backBuffer, _vm->getDisplayClip(), _optionPanel.sprites, i, point, 256);
+		*/
+
 		if (panelButton->type == kPanelButtonOption) {
 			drawPanelButtonText(backBuffer, &_optionPanel, panelButton);
 		}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list