summaryrefslogtreecommitdiff
path: root/addons/gut/logger.gd
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-09-05 20:35:53 +0200
committerSophia Pearson <codergal89@gmail.com>2022-09-05 20:35:53 +0200
commitf20bd89dc4a7bf14a88b1effcaa1887b29314525 (patch)
treed114787f68efd2a7d61d95fa9c84e8e5d69a7c11 /addons/gut/logger.gd
parent1b477b62f8be8c546a35dbd1d2688ebf623c496f (diff)
downloadtexty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.tar.xz
texty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.zip
gui: split GUI into Terminal components
Diffstat (limited to 'addons/gut/logger.gd')
-rw-r--r--addons/gut/logger.gd10
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/gut/logger.gd b/addons/gut/logger.gd
index 900b928..5932343 100644
--- a/addons/gut/logger.gd
+++ b/addons/gut/logger.gd
@@ -333,12 +333,19 @@ func _end_yield_gui():
lbl.visible = false
lbl.set_text('')
+# This is used for displaying the "yield detected" and "yielding to" messages.
+func yield_msg(text):
+ if(_type_data.warn.enabled):
+ self.log(text, fmts.yellow)
+
+# This is used for the animated "waiting" message
func yield_text(text):
_yield_text_terminal(text)
_yield_text_gui(text)
_last_yield_text = text
_yield_calls += 1
+# This is used for the animated "waiting" message
func end_yield():
if(_yield_calls == 0):
return
@@ -346,3 +353,6 @@ func end_yield():
_end_yield_gui()
_yield_calls = 0
_last_yield_text = ''
+
+func get_gui_bbcode():
+ return _printers.gui.get_bbcode()