From d2e49870bd6de11950cf81daa6f2126b4b1fb955 Mon Sep 17 00:00:00 2001 From: Cake <65981767+CakeVR@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:22:28 +0100 Subject: [PATCH] Extend text box FAQ code snippet. --- documentation/faq.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/documentation/faq.md b/documentation/faq.md index 360fc71..31909b1 100644 --- a/documentation/faq.md +++ b/documentation/faq.md @@ -62,9 +62,12 @@ If you have enabled translation, you will have to update the CSVs.\ Once your timeline events have translation IDs, matching CSV rows will take priority.\ Disabling the translation until you are done with most of the text is recommended. -## How do I hide the text-box? +## How do I hide and show the text-box? -You can hide the text box using the following code: +The following code allows you to check if the text box is visible and then act based on its state. ```gdscript -Dialogic.Text.hide_text_boxes() +if Dialogic.Text.is_textbox_visible(): + Dialogic.Text.hide_text_boxes() +else: + Dialogic.Text.show_text_boxes() ```