Vantha Posted March 11, 2024 Share Posted March 11, 2024 Hi everyone, I want to add an internal hyperlinking feature to the encyclopedia (single words in one article on press opening other articles). For that that I'd have to place buttons over the specific words in a text. What would be the best way to do that? I can't think of a good way to calculate the coordinates of a given word in a text or any other way to place the button. Link to comment Share on other sites More sharing options...
hyperion Posted March 11, 2024 Share Posted March 11, 2024 You can't reasonably do this with pure javascript. If you really need that feature CGUIText class is a reasonable starting point for digging into. Link to comment Share on other sites More sharing options...
Vantha Posted March 11, 2024 Author Share Posted March 11, 2024 Thanks, I will take a look into it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now