Actually parse the colors
This commit is contained in:
parent
0d13222ed7
commit
8955263a62
1 changed files with 3 additions and 3 deletions
4
game.py
4
game.py
|
@ -24,7 +24,7 @@ class Game:
|
||||||
'''
|
'''
|
||||||
Used to print out the current prompt with the options
|
Used to print out the current prompt with the options
|
||||||
'''
|
'''
|
||||||
print(self.nodes[self.current]["text"])
|
print(self.parse_colors(self.nodes[self.current]["text"]))
|
||||||
print("")
|
print("")
|
||||||
ostring = ""
|
ostring = ""
|
||||||
if("actions" in self.nodes[self.current].keys()):
|
if("actions" in self.nodes[self.current].keys()):
|
||||||
|
@ -55,6 +55,6 @@ def load(file_path):
|
||||||
g = Game(data)
|
g = Game(data)
|
||||||
return g
|
return g
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("An exception has occured while loading the game from the YAML file:")
|
print(f"{Back.RED}{Fore.WHITE}An exception has occured while loading the game from the YAML file:{Fore.RESET}{Back.RESET}")
|
||||||
print(e)
|
print(e)
|
||||||
return None
|
return None
|
Reference in a new issue