Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
101 stars 0 forks source link

Caret control using components and flux #1774

Open AmasterAmaster opened 3 weeks ago

AmasterAmaster commented 3 weeks ago

Is your feature request related to a problem? Please describe.

When making any item or gadget that uses text in any way, it gets annoying that the Caret cursor has limited functionality. What if for example, I want to refocus on another UI and preserve the Caret position in that text, I cant do that easily or at all in either components or flux. In fact, there seems to be no control over the Caret at all besides basic usage for the user to use the keyboard.

Describe the solution you'd like

I would like components and flux to have greater control over the Caret indicator. Things like "Get Caret Position" and "Set Caret Position" are definite must haves.

Another node I would like, would be having the "Focus Focusable" node to have an extra option to preserve the caret position, or have some way to preserve it using another node.

Other nodes may include: "Set Caret To Home" - Sets the Caret to the start of a line. "Set Caret To End" - Sets the Caret to the end of the line. "Set Caret Blink" - Sets if the caret should blink for the user. "Is Caret Highlighting" - Checks to see if the Caret is Highlighting text. "Caret Highlighting Side" - Returns which direction this caret is highlighting on this text. "Highlighting Count" - How many characters are currently highlighted.

Describe alternatives you've considered

I could try making or finding a mod that does this, but I dont think any exist at this time. Plus I would prefer an in-platform solution to controlling the Caret.

Additional Context

This could also help with current keyboards in VR mode. Also giving customizability to how we control and see the Caret within UI in both VR and desktop mode. This will also help make text editors and similar items and gadgets that use UI and text.

Requesters

AmasterAmaster

charlie-sans commented 3 weeks ago

set caret color would also be good as we can change text color already . Having something like this would help my projects move forward in development faster instead of taking 55 years for a desktop supported version lol.