Add portaits for ask_choice

This commit is contained in:
mibi88 2023-01-07 20:08:02 +01:00
parent 692db46f7a
commit ec509b1967
1 changed files with 2 additions and 2 deletions

View File

@ -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