- Apr 30, 2024
-
-
sam edelsten authored
-
sam edelsten authored
-
sam edelsten authored
-
sam edelsten authored
also renames some structs
-
- Apr 29, 2024
-
-
sam edelsten authored
-
- Mar 20, 2024
-
-
sam edelsten authored
* 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>
-
- Dec 19, 2023
-
-
StaffEngineer authored
-
- Nov 02, 2023
-
-
sam authored
* add TODOs * separate CosmicEdit from display breaks loads of stuff: sizing, click functions, cursor hovering just a few Only tested on login example not optimized; spams handle weak clones to ensure got correct handle (will be fixed by new handle swapping routine) not sure about the API changes but might just need to get used to it, is much more extensible * break render function apart centered padding now broken, not tested other text positions * reshape earlier in render to fix padding issue * move image creation to own system * resize internal sprite to computed UI size * prevent panic on zero size UI elements * clicks + editor-display one-to-many relationships * add render systemset * fix hoverable invisible sprites * update examples * fix auto-height bugs * clippy
-
- Oct 25, 2023
-
-
sam edelsten authored
-
- Oct 24, 2023
-
-
sam edelsten authored
adds a `CosmicCanvas` component to hold the image cosmic draws to. allows easier interop between UI and Sprite widgets Each type of widget now uses a single `CosmicEditBundle`, adding widget specific components with `.insert()` or as tuples.
-
- Oct 05, 2023
-
-
sam authored
* first draft * refine placeholder logic bug: inputting and deleting a char on a widget quickly (i think at cursor blink speed) hold the input visually for that blink duration. needs testing: placeholder specific attrs * fix conflict with #73 * update placeholder attrs * small fixes * fix cursor showing on empty readonly widgets --------- Co-authored-by:
StaffEngineer <velo.app1@gmail.com>
-
- Oct 02, 2023
-
-
sam authored
* rewrite `draw_pixel` causes overlayed text to appear correctly blended Breaking Changes: - CosmicEdit*Bundle::background_color renamed to fill_color, and takes a new `FillColor(pub Color)` * fix clippy
-
- Sep 29, 2023
-
-
StaffEngineer authored
* Add text position Left * Support infinite-line mode * update readme * update default mode name * Add auto-height mode, refactoring * Clippy
-
- Sep 27, 2023
-
-
StaffEngineer authored
* Add text position Left * Support infinite-line mode * update readme * update default mode name
-
- Sep 18, 2023
-
-
sam edelsten authored
-
- Sep 17, 2023
-
-
StaffEngineer authored
-
StaffEngineer authored
-
StaffEngineer authored
-
- Sep 14, 2023
-
-
sam edelsten authored
should allow a user to install and use the plugin without needing their own install of cosmic-text the violet color changed slightly when i set all the colors to bevy colors >.<
-
sam edelsten authored
make edit history private; need less re-exports if this is just automagically added
-
sam edelsten authored
removes CosmicEditor::set_text in favor of a set_text CosmicText component
-