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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jun 3 23:20:55 CEST 2008


Revision: 32521
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32521&view=rev
Author:   thebluegr
Date:     2008-06-03 14:20:55 -0700 (Tue, 03 Jun 2008)

Log Message:
-----------
Initial WIP and still non-working code for the blinking save reminder icon (bug reports #1981081 and #1971729)

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

Modified: scummvm/trunk/engines/saga/interface.cpp
===================================================================
--- scummvm/trunk/engines/saga/interface.cpp	2008-06-03 21:04:41 UTC (rev 32520)
+++ scummvm/trunk/engines/saga/interface.cpp	2008-06-03 21:20:55 UTC (rev 32521)
@@ -326,6 +326,9 @@
 	_statusTextInputState = kStatusTextInputFirstRun;
 
 	_disableAbortSpeeches = false;
+
+	// set save game reminder alarm
+	_vm->_timer->installTimerProc(&saveReminderCallback, TIMETOSAVE, this);
 }
 
 Interface::~Interface(void) {
@@ -336,6 +339,22 @@
 	_scenePortraits.freeMem();
 }
 
+void Interface::saveReminderCallback(void *refCon) {
+	((Interface *)refCon)->updateSaveReminder();
+}
+
+void Interface::updateSaveReminder() {
+	// TODO: finish this
+	/*
+	if (_active && _panelMode == kPanelMain) {
+		_vm->_timer->removeTimerProc(&saveReminderCallback);
+		_saveReminderState = (_saveReminderState == 0) ? 1 : 0;
+		drawStatusBar();
+		_vm->_timer->installTimerProc(&saveReminderCallback, TIMETOSAVE, this);
+	}
+	*/
+}
+
 int Interface::activate() {
 	if (!_active) {
 		_active = true;

Modified: scummvm/trunk/engines/saga/interface.h
===================================================================
--- scummvm/trunk/engines/saga/interface.h	2008-06-03 21:04:41 UTC (rev 32520)
+++ scummvm/trunk/engines/saga/interface.h	2008-06-03 21:20:55 UTC (rev 32521)
@@ -59,6 +59,8 @@
 #define RID_IHNM_BOSS_SCREEN 19		// not in demo
 #define RID_ITE_TYCHO_MAP 1686
 #define RID_ITE_SPR_CROSSHAIR (73 + 9)
+#define TIMETOSAVE (kScriptTimeTicksPerSecond * 1000 * 60 * 30)
+#define TIMETOBLINK	(kScriptTimeTicksPerSecond * 1000 * 1)
 
 // Converse-specific stuff
 
@@ -237,6 +239,9 @@
 
 	void disableAbortSpeeches(bool d) { _disableAbortSpeeches = d; }
 
+	static void saveReminderCallback(void *refCon);
+	void updateSaveReminder();
+
 	bool _textInput;
 
 	bool _statusTextInput;


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