Skip to content

Commit

Permalink
Extend text box FAQ code snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
CakeVR committed Jan 20, 2024
1 parent bf4aa24 commit d2e4987
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions documentation/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```

0 comments on commit d2e4987

Please sign in to comment.