Add portaits for ask_choice
This commit is contained in:
parent
692db46f7a
commit
ec509b1967
|
@ -281,7 +281,7 @@ class Scii:
|
|||
else: intxt = input("Next message > ")
|
||||
if len(intxt) > 0:
|
||||
if intxt[0] == 'q': return
|
||||
def ask_choice(self, text, choices):
|
||||
def ask_choice(self, text, choices, portrait = None):
|
||||
choice = 0
|
||||
while choice < 1 or choice > len(choices):
|
||||
newtext = text + "\n"
|
||||
|
@ -290,7 +290,7 @@ class Scii:
|
|||
if c < len(choices): newtext += "{}:{}\n".format(c, i)
|
||||
else: newtext += "{}:{}".format(c, i)
|
||||
c += 1
|
||||
self.show_text(newtext)
|
||||
self.show_text(newtext, portrait)
|
||||
try:
|
||||
choice = int(input("Choice > "))
|
||||
except: choice = -1
|
||||
|
|
Loading…
Reference in New Issue