Comments (2)
Bevy UI hierarchies require the components of NodeBundle
to work properly.
The current design where a user spawns both a NodeBundle
and TextInput
component together comes from my general aversion to working with nested bundles. That is, this:
commands.spawn((
NodeBundle { /* ... */ },
TextInput { /* ... */ }
))
feels a bit nicer to me than
commands.spawn(TextInputBundle {
node: NodeBundle { /* ... */ },
text_input: TextInput { /* ... */ }
})
But now that I'm typing this all out, I'm not sure about the decision.
Maybe your instinct is right and we can remove one layer of NodeBundle
. I think there may have been some slightly surprising behavior with borders / clipping though that made that extra layer necessary though.
from bevy_simple_text_input.
Ok, I see. Thank you :)
Regarding the decision, I think it is clearer to use TextInputBundle
.
from bevy_simple_text_input.
Related Issues (19)
- wasm: backspace and enter don't work HOT 1
- Get current text without pressing enter HOT 1
- TextStyle isn't updated when changed
- Cursor timer should reset on input HOT 1
- Cursor should not blink when text input is inactive
- Copy-paste feature HOT 1
- Add an example for getting and setting the text value HOT 1
- Provide a way for users to set the value of the text input HOT 3
- Make example styling consistent
- Cursor is shown when text input is spawned in an inactive state
- Newly spawned text inputs don't respect custom cursor positions. HOT 1
- Clear-on-submit behavior should be configurable
- Panic on non-ASCII characters HOT 4
- Inner text node position should follow cursor position
- Umlaut leads to crash HOT 6
- `create` system should be an observer
- Entities created by this plugin should have `Name` components
- CI checks should also run on macOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy_simple_text_input.