#How to display dictionary nice

1 messages · Page 1 of 1 (latest)

proven ember
#

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

tepid berry
#

you want string1 + "\n" + string2

spice otter
#
var ret = ""
for key in dict.keys():
   ret += key + ": " + str(dict[key]) + "\n"