Cosmic text 0.11 (#124)
* barely got text entry working again * remove local optimizations i should really put them somewhere else on my machine * delete most stuff to get the basics nearly working * editable text lots of cloning but seems to be the only way if buffers are in the ECS editor widgets don't relayout when edited, but when unfocused the buffer does * fix backspace on native and make basic_ui wasm editable * fix mid-edit layout * reimplement text cursor blinking uhoh it's looking like im using the not a starting point pr as a starting point lol * update `basic_sprite` example adds a util crate for common example systems also removes history tracking structs * `image_background`+`bevy_api_testing` examples MV `bevy_api_testing.rs` > `sprite_and_ui_clickable.rs` * remove `CosmicText` in favor of buffer functions simplifys API and mirrors Bevy's Text functions more closely * strip autoheight + example, update other examples * fix wasm compilation * clippy * fix text * fix clippy * fix wasm * fix import * add changelog * fix mouse cursor hover on sprite widget * fix editor cursor location when edited * fix blank widget when focused on startup * configurable cursor/selection colors * run layout functions when needed * fix ui widget mouse cursor * fix scale change --------- Co-authored-by:Dima <Dmytro.Rets@Gamesys.co.uk> Co-authored-by:
StaffEngineer <velo.app1@gmail.com>
Showing
- CHANGELOG.md 6 additions, 0 deletionsCHANGELOG.md
- Cargo.lock 24 additions, 19 deletionsCargo.lock
- Cargo.toml 4 additions, 5 deletionsCargo.toml
- examples/basic_sprite.rs 20 additions, 11 deletionsexamples/basic_sprite.rs
- examples/basic_ui.rs 20 additions, 33 deletionsexamples/basic_ui.rs
- examples/every_option.rs 23 additions, 37 deletionsexamples/every_option.rs
- examples/font_per_widget.rs 85 additions, 237 deletionsexamples/font_per_widget.rs
- examples/image_background.rs 3 additions, 12 deletionsexamples/image_background.rs
- examples/login.rs 0 additions, 269 deletionsexamples/login.rs
- examples/multiple_sprites.rs 20 additions, 61 deletionsexamples/multiple_sprites.rs
- examples/readonly.rs 9 additions, 21 deletionsexamples/readonly.rs
- examples/sprite_and_ui_clickable.rs 86 additions, 0 deletionsexamples/sprite_and_ui_clickable.rs
- examples/text_input.rs 0 additions, 162 deletionsexamples/text_input.rs
- src/buffer.rs 220 additions, 0 deletionssrc/buffer.rs
- src/cursor.rs 3 additions, 2 deletionssrc/cursor.rs
- src/focus.rs 45 additions, 0 deletionssrc/focus.rs
- src/input.rs 117 additions, 231 deletionssrc/input.rs
- src/layout.rs 171 additions, 0 deletionssrc/layout.rs
- src/lib.rs 94 additions, 480 deletionssrc/lib.rs
- src/render.rs 118 additions, 566 deletionssrc/render.rs
Loading
Please register or sign in to comment