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

Add a richtext.remove equivalent for characters #87

Open
ChrisRegan opened this issue Aug 15, 2023 · 2 comments
Open

Add a richtext.remove equivalent for characters #87

ChrisRegan opened this issue Aug 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ChrisRegan
Copy link

I just want to request the equivalent of the remove function to work with richtext.characters. Though adapting richtext.remove to work with characters would work as well.

@britzl
Copy link
Owner

britzl commented Aug 16, 2023

Could you please be a bit more specific about exactly what you expect from such a function? Could you give an example of how it would be used and what the expected result is?

@ChrisRegan
Copy link
Author

Well remove does this.

richtext.remove(words)

Removes all gui text nodes created by richtext.create()
I was hoping for an equivalent for the same function for
richtext.characters.

Since a similar existing function already existed I thought to ask for it.

Though my use case currently is that currently I get the result of create. And replace some of the words with the characters like:

Words = richtext.create("some sentence")

local temp = richtext.characters(Words[1])
richtext.remove(Words[1])
Words[1] = temp.

On cleanup I would like to do the same as

richtext.remove(Words) or a similar
richtext.removeCharacters(Word[1])

to simplify cleanup. Probably easy to do manually but thought I should ask since a similar function already exists

@britzl britzl added the enhancement New feature or request label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants