summaryrefslogtreecommitdiff
path: root/scripts/howto.gd
diff options
context:
space:
mode:
authorJ08nY2017-04-25 01:04:37 +0200
committerJ08nY2017-04-25 01:04:37 +0200
commit379c2794c40bc2b212d29fa0e0847f76e3f3a870 (patch)
treeb00311bbbc2784981dd92b1e161c414c823bbe86 /scripts/howto.gd
parent146b302545b8cda8df456d105ac30ee961365056 (diff)
downloadld38-379c2794c40bc2b212d29fa0e0847f76e3f3a870.tar.gz
ld38-379c2794c40bc2b212d29fa0e0847f76e3f3a870.tar.zst
ld38-379c2794c40bc2b212d29fa0e0847f76e3f3a870.zip
Diffstat (limited to 'scripts/howto.gd')
-rw-r--r--scripts/howto.gd8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/howto.gd b/scripts/howto.gd
index 1259174..94674aa 100644
--- a/scripts/howto.gd
+++ b/scripts/howto.gd
@@ -11,5 +11,11 @@ func _ready():
var data = parse_json(content)
self.title = data["title"]
self.text = data["text"]
- get_node("panel/text").set_bbcode("[b]" + self.title + "[/b]\n\n" + self.text)
+ var label = get_node("panel/text")
+ label.set_bbcode("[b]" + self.title + "[/b]\n\n" + self.text)
+ label.push_list(RichTextLabel.LIST_DOTS)
+ for life in data["list"]:
+ label.append_bbcode(life)
+ label.newline()
+
#get_node("panel/text").add_text(self.text) \ No newline at end of file