From a12b29852e16854de5d248e5ba7f8a313cf8ff9b Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 20 Jan 2019 01:19:24 +0100 Subject: chat now has colours --- asciifarm/client/loaders.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'asciifarm/client/loaders.py') diff --git a/asciifarm/client/loaders.py b/asciifarm/client/loaders.py index fef4769..d3d7ed1 100644 --- a/asciifarm/client/loaders.py +++ b/asciifarm/client/loaders.py @@ -64,6 +64,7 @@ def loadCharmap(name): healthfull = None healthempty = None alphabet = "" + msgcolours = {} for template in templates: mapping.update(template.get("mapping", {})) @@ -73,6 +74,7 @@ def loadCharmap(name): healthfull = template.get("healthfull", healthfull) healthempty = template.get("healthempty", healthempty) alphabet = template.get("alphabet", alphabet) + msgcolours.update(template.get("msgcolours", {})) return { "mapping": mapping, "writable": writable, @@ -80,5 +82,6 @@ def loadCharmap(name): "charwidth": charwidth, "healthfull": healthfull, "healthempty": healthempty, - "alphabet": alphabet + "alphabet": alphabet, + "msgcolours": msgcolours } -- cgit