add help menu
This commit is contained in:
parent
629be1f244
commit
30e32e1b4e
@ -30,6 +30,7 @@ KEY_HOME = chr(71)
|
|||||||
KEY_END = chr(79)
|
KEY_END = chr(79)
|
||||||
KEY_PGUP = chr(73)
|
KEY_PGUP = chr(73)
|
||||||
KEY_PGDN = chr(81)
|
KEY_PGDN = chr(81)
|
||||||
|
KEY_QMARK = chr(63)
|
||||||
|
|
||||||
def saveDB():
|
def saveDB():
|
||||||
global ratingsDB
|
global ratingsDB
|
||||||
@ -152,10 +153,13 @@ def header():
|
|||||||
def footer():
|
def footer():
|
||||||
MSG = "Mystic Nodelist Browser v1.0 by "+AUTHOR
|
MSG = "Mystic Nodelist Browser v1.0 by "+AUTHOR
|
||||||
lMSG = len(MSG)
|
lMSG = len(MSG)
|
||||||
|
HELP = "|11Help [?]"
|
||||||
|
lHELP = len(stripmci(HELP))
|
||||||
gotoxy(1,screenDepth)
|
gotoxy(1,screenDepth)
|
||||||
write(fBG+fFG+" "*screenWidth)
|
write(fBG+fFG+" "*screenWidth)
|
||||||
gotoxy((screenWidth/2)-(lMSG/2),screenDepth)
|
gotoxy((screenWidth/2)-(lMSG/2),screenDepth)
|
||||||
write(MSG)
|
write(MSG)
|
||||||
|
gotoxy(screenWidth-lHELP,screenDepth); write(HELP)
|
||||||
write(cRESET)
|
write(cRESET)
|
||||||
|
|
||||||
def getBBS(o, s):
|
def getBBS(o, s):
|
||||||
@ -219,6 +223,27 @@ def drawWindow(x1, y1, x2, y2, title = ""):
|
|||||||
gotoxy(x1+1,y2-2); write('|05'+chr(200))
|
gotoxy(x1+1,y2-2); write('|05'+chr(200))
|
||||||
gotoxy(x2-1,y2-2); write('|05'+chr(188))
|
gotoxy(x2-1,y2-2); write('|05'+chr(188))
|
||||||
|
|
||||||
|
def showHelp():
|
||||||
|
write("|SS")
|
||||||
|
drawWindow(10,4,70,23,"Help Menu")
|
||||||
|
gotoxy(13,6); write("|15To use this BBS lister just remember a few simple key")
|
||||||
|
gotoxy(13,7); write("|15bindings. There aren't many... ")
|
||||||
|
gotoxy(13,8); write("|15 ")
|
||||||
|
gotoxy(13,9); write("|15In the LIST view: ")
|
||||||
|
gotoxy(13,10);write("|15UP/DOWN Arrows move the bar UP/DOWN a line. ")
|
||||||
|
gotoxy(13,11);write("|15LEFT/RIGHT or PGUP/PGDN moves the list 1 page UP/DN ")
|
||||||
|
gotoxy(13,12);write("|15ENTER chooses the highlighted BBS to see more detail.")
|
||||||
|
gotoxy(13,13);write("|15 ")
|
||||||
|
gotoxy(13,14);write("|15In the BBS Detail view: ")
|
||||||
|
gotoxy(13,15);write("|15LEFT/RIGHT allows you to rate the BBS from 0-7 ")
|
||||||
|
gotoxy(13,16);write("|15If the BBS isn't Private, connect to it by pressing C")
|
||||||
|
gotoxy(13,17);write("|15To leave the detail view press Q ")
|
||||||
|
gotoxy(13,18);write("|15 ")
|
||||||
|
gotoxy(13,19);write("|15To exit the program press ESCAPE at the list view. ")
|
||||||
|
gotoxy(13,20);write("|15 ")
|
||||||
|
gotoxy(13,21); write("|PA")
|
||||||
|
write("|RS")
|
||||||
|
|
||||||
def showDetail(BBS):
|
def showDetail(BBS):
|
||||||
write("|SS")
|
write("|SS")
|
||||||
bbs = BBS.replace('_',' ')[:22]
|
bbs = BBS.replace('_',' ')[:22]
|
||||||
@ -337,6 +362,8 @@ def mainMenu():
|
|||||||
showDetail(highlightedBBS)
|
showDetail(highlightedBBS)
|
||||||
if char == KEY_ESCAPE:
|
if char == KEY_ESCAPE:
|
||||||
finished = "yes"
|
finished = "yes"
|
||||||
|
if char == KEY_QMARK:
|
||||||
|
showHelp()
|
||||||
return finished
|
return finished
|
||||||
|
|
||||||
menucmd('NA','sIftIng fOr gOld')
|
menucmd('NA','sIftIng fOr gOld')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user