#How to display dictionary nice
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I want this:
{"Key1": 1, "Key2": 2, }
To be displayed on a RichTextLabel like this:
Key1 : 1
Key2 : 2
The dictionary is on an autoload, so the richtextlabel knows what the dictionary is
you want string1 + "\n" + string2
var ret = ""
for key in dict.keys():
ret += key + ": " + str(dict[key]) + "\n"