0 votes

For my project I am using the [url] tag to define dialog options for the player.
I also have a separate custom bb code tag that hides text options not yet available.

Even when hidden said url can still be clicked. Disabling meta underline does not fix this problem instead it just makes the hidden url harder to find.

What can I do about this?

Godot version 3.2.3
in Engine by (12 points)

You are probably handling the click in the meta_pressed(meta) signal, right? Then you could simply not handle the click if the option is not yet available to the player.

There's a bug where sometimes URLs open the page when clicked without having to connect the signal to a function that calls OS.shell_open and sometimes they don't. The former is the intended behavior. Maybe you can just remove the URL tag from options that are disabled?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.