mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-11-16 10:04:42 +00:00
Blink cursor while story mode waits for a key.
This commit is contained in:
parent
7f6d3752c0
commit
63a6d7c3eb
@ -1613,8 +1613,12 @@ export def getUpperKey()#1
|
|||||||
|
|
||||||
// Now wait for a key, and animate while doing so.
|
// Now wait for a key, and animate while doing so.
|
||||||
while ^kbd < 128
|
while ^kbd < 128
|
||||||
|
if recordMode
|
||||||
|
pause(30000)
|
||||||
|
else
|
||||||
// pause() will terminate on keypress, returning the count it did
|
// pause() will terminate on keypress, returning the count it did
|
||||||
*seed = *seed + pause(30000)
|
*seed = *seed + pause(30000)
|
||||||
|
fin
|
||||||
loop
|
loop
|
||||||
key = recordKey
|
key = recordKey
|
||||||
return charToUpper(key)
|
return charToUpper(key)
|
||||||
|
@ -136,6 +136,19 @@ def displayStoryBlock()#1
|
|||||||
return pStoryCur < pStoryEnd
|
return pStoryCur < pStoryEnd
|
||||||
end
|
end
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
def storyKeyWait()#1
|
||||||
|
byte key
|
||||||
|
while ^kbd < 128
|
||||||
|
^$3FF5 = ^$3FF5 ^ $7F // lowermost, rightmost byte of screen
|
||||||
|
pause(300)
|
||||||
|
loop
|
||||||
|
^$3FF5 = 0
|
||||||
|
key = ^kbd & $7F
|
||||||
|
^kbdStrobe
|
||||||
|
return key
|
||||||
|
end
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Display story and picture on a blank screen, with blanking follow-up
|
// Display story and picture on a blank screen, with blanking follow-up
|
||||||
def _story_display(storyNum)#1
|
def _story_display(storyNum)#1
|
||||||
@ -150,7 +163,7 @@ def _story_display(storyNum)#1
|
|||||||
displayStoryBlock
|
displayStoryBlock
|
||||||
fin
|
fin
|
||||||
|
|
||||||
c = getUpperKey
|
c = storyKeyWait
|
||||||
if c == 27 or pStoryCur >= pStoryEnd; break; fin
|
if c == 27 or pStoryCur >= pStoryEnd; break; fin
|
||||||
|
|
||||||
clearWindow
|
clearWindow
|
||||||
|
Loading…
Reference in New Issue
Block a user