From f20bd89dc4a7bf14a88b1effcaa1887b29314525 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 5 Sep 2022 20:35:53 +0200 Subject: gui: split GUI into Terminal components --- addons/gut/logger.gd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'addons/gut/logger.gd') 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() -- cgit v1.2.3