Skip to content
Snippets Groups Projects
  1. Apr 10, 2024
    • StaffEngineer's avatar
      Bump version (#129) · e1c42c12
      StaffEngineer authored
      e1c42c12
    • sam edelsten's avatar
      fix `InfiniteLine` mode (#128) · 1c4fef0f
      sam edelsten authored
      * use editor buffer for infinite line
      
      need to get my numbers right but the implementation is doing at least
      something again
      
      * working infiniteline (when mode != center)
      
      * add minimum padding, fixing centered infiniteline
      
      * user editable min padding on center infiniteline
      1c4fef0f
  2. Apr 06, 2024
    • sam edelsten's avatar
      internal placeholder plugin (#125) · aa836324
      sam edelsten authored
      
      * internal placeholder plugin
      
      * fix panic on placeholder editor input
      
      * remove autofocus in placeholder example
      
      * make `Placeholder.active` private
      
      * remove placeholder on input
      
      * fix multi-byte char in placeholder
      
      * show placeholder on empty editor
      
      * add guards to placeholder add fns
      
      * fix placeholder displaying incorrectly on input
      
      * fix flash when backspacing empty placeholder
      
      also properly fix the first-char display error
      
      * hacky fix for delete key breaking placeholder
      
      * fix newline issues in placeholder
      
      * fix clippy
      
      * update changelog, bump version
      
      ---------
      
      Co-authored-by: default avatarStaffEngineer <111751109+StaffEngineer@users.noreply.github.com>
      Co-authored-by: default avatarStaffEngineer <velo.app1@gmail.com>
      aa836324
  3. Mar 27, 2024
  4. Mar 20, 2024
    • StaffEngineer's avatar
      update readme · 6818cbcc
      StaffEngineer authored
      6818cbcc
    • sam edelsten's avatar
      Cosmic text 0.11 (#124) · 696fe6f7
      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: default avatarDima <Dmytro.Rets@Gamesys.co.uk>
      Co-authored-by: default avatarStaffEngineer <velo.app1@gmail.com>
      696fe6f7
  5. Mar 05, 2024
    • sam edelsten's avatar
      Bevy 0.13 (#123) · 2330358c
      sam edelsten authored
      * migrate to bevy 0.13
      
      * Update readme.md
      
      * bump version
      
      * bump version correctly lol
      
      * cargo clippy
      
      * Update config.toml
      2330358c
  6. Feb 24, 2024
  7. Dec 27, 2023
  8. Dec 19, 2023
  9. Nov 17, 2023
  10. Nov 10, 2023
  11. Nov 09, 2023
  12. Nov 02, 2023
    • sam's avatar
      Simplify main render system (#106) · 0bb15dea
      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
      0bb15dea
  13. Oct 30, 2023
    • sam's avatar
      rework placeholders to use single editor (#105) · 91ba7561
      sam authored
      * rework placeholders to use single editor
      
      * add default placeholder color
      
      * move placeholder systems out of main render
      
      * explicit ordering for password/placeholder systems
      91ba7561
  14. Oct 27, 2023
  15. Oct 26, 2023
Loading