Some minor UI improvements to ensure the user always knows what is going on. There should be no more blank screens for any significant period of time.
This commit is contained in:
parent
d43aa69a7c
commit
9a57ed036f
|
@ -176,6 +176,7 @@ void shutdownUI(void)
|
|||
|
||||
void textMode(void)
|
||||
{
|
||||
clrscr();
|
||||
asm ("STA %w", 0xc051);
|
||||
}
|
||||
|
||||
|
@ -252,8 +253,6 @@ bool setOptions(void)
|
|||
saveOptions();
|
||||
}
|
||||
|
||||
clrscr();
|
||||
|
||||
return shouldUpdate;
|
||||
}
|
||||
|
||||
|
@ -523,9 +522,10 @@ bool playGame(void)
|
|||
|
||||
initUI();
|
||||
|
||||
clrscr();
|
||||
textMode();
|
||||
|
||||
printf("\n\nChecking for a saved puzzle...");
|
||||
|
||||
if (loadGame(updatePos)) {
|
||||
bool gotAnswer = false;
|
||||
|
||||
|
@ -571,7 +571,6 @@ bool playGame(void)
|
|||
|
||||
while (true) {
|
||||
bool shouldNotBeep = true;
|
||||
bool shouldRefresh = false;
|
||||
|
||||
if (isPuzzleSolved()) {
|
||||
youWon();
|
||||
|
@ -591,7 +590,8 @@ bool playGame(void)
|
|||
case 'o':
|
||||
case 'O':
|
||||
textMode();
|
||||
shouldRefresh = setOptions();
|
||||
if (setOptions())
|
||||
refreshAllPos();
|
||||
graphicsMode();
|
||||
break;
|
||||
|
||||
|
@ -762,8 +762,6 @@ bool playGame(void)
|
|||
if (!shouldNotBeep) {
|
||||
printf("\007");
|
||||
}
|
||||
if (shouldRefresh)
|
||||
refreshAllPos();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue