Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight colours in player-facing text #268

Open
lexisother opened this issue Jul 17, 2023 · 0 comments
Open

Highlight colours in player-facing text #268

lexisother opened this issue Jul 17, 2023 · 0 comments

Comments

@lexisother
Copy link
Member

lexisother commented Jul 17, 2023

Look into using https://github.com/redstonekasi/cc-textparser/ to highlight text in fields that the player can eventually see in-game. Kasi's implementation example was this:

you'd overlap a text area and the rendered output over each other and then just run cc-textparser over the input when text changes (probably debounced a bit)

An example of a text colouring implementation can be found here:
https://github.com/redstonekasi/cc-textparser/blob/main/examples/markup.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant