Skip to content
Snippets Groups Projects
  1. Feb 04, 2025
    • sam edelsten's avatar
      Lil cleanup (#170) · e4c7dc14
      sam edelsten authored
      * remove unused `num` deps
      
      * skip inserting `SwashCache`, it's inserted by `bevy_text`
      
      * add focus observer to example
      
      * unify plugin patterns
      
      * typos + remove some commented out code
      
      * prevent widget console spam
      
      * fix password example crash
      e4c7dc14
  2. Dec 12, 2024
    • Caleb Yates's avatar
      bevy::picking integration and refactoring (#167) · e9353207
      Caleb Yates authored
      * wip: seperating cursor event handling
      preparing to directly use bevy::picking instead
      
      * mark: removed all padding and offset from render code
      
      * bug: not rendering until focussed?
      
      * feat: text now follows horizontal alignment
      
      * add: example basic_sprite_editor
      
      * feat: now centers vertically as well
      
      * todo: get proper clicking input to work
      Translating from widget to buffer coord space is annoying ngl
      
      * feat: top_padding works correctly with click input
      
      * refactor: moved output under render_implemetations module
      
      * bug: for some reason, renders the same image to all editors?
      
      * fix: editors render properly now
      
      * mark: shift key supported in sprites
      
      * feat: all click funcionatlity for sprites work!
      
      * feat: primary input uses bevy::picking
      
      * refactor: moved `RelativeCoord` into render_implementations/coords.rs
      
      * refactor: moved `CosmicWidgetSize` into render_implementations/widget_size.rs
      
      * refactor: Seperating input.rs into submodules
      
      * wip: refactoring input into drag
      
      * todo: finish hover impl
      
      * todo: implement proper hovering
      
      * feat: cursor hovering is well behaved!
      
      * mark: doesn't deselect on dragend
      
      * add: input/cursor_visbility.rs and various module refactors
      
      * feat: focus_on_click observer
      
      * mark: doctests all pass
      
      * refactor: scan.rs in render_implementations and removed editor examples
      
      * fmt
      
      * fix: compiles on wasm now
      
      * fix: ui clicking works now
      
      * todo: use new EditorBuffer API
      
      * todo: finish refactor into editor_buffer.rs module
      
      * todo: refactor all code to use EditorBuffer
      
      * feat: all compiles!
      
      * todo: fix bug where cursor doesn't show on empty editors
      
      * fix: cursor blinks in empty wdigets now
      
      * add: veritcal scrolling only kicks in with canvas larger than render target
      
      * fix: infinite line works
      
      * chore: added CosmicWrap::InfiniteLine where removed before because of pancis
      
      * chore: minor privacy restrictions
      
      * fix: no warnings in examples
      e9353207
  3. Dec 06, 2024
    • Caleb Yates's avatar
      Update to bevy 0.15 (#166) · f3b2500b
      Caleb Yates authored
      * feat: main code compiles (untested)
      
      * feat: basic_sprite example works as expected
      
      * mark: example basic_ui works
      
      * mark: every_option example works
      except for the border, which was just removed
      
      * mark: example font_per_widget works
      
      * mark: image_background example works
      
      * marK: multiple_sprites example works
      
      * marK: placeholder example works
      
      * marK: readonly example works
      
      * marK: readonly example works
      
      * mark: final example works!
      
      * feat: updated module structure to use a prelude
      
      * feat: fixed all warnings
      
      * fix: tests pass
      
      * refactor: `CosmicBuffer` -> `CosmicEditBuffer` as `bevy::text::CosmicBuffer` already exists
      
      * todo: remove cosmic source component
      
      * refactor: Removed `CosmicSource`
      
      * feat: Removed old `CosmicWidgetSize` component in favour of an implementation-specific getter world query
      
      * feat: half the examples compiling and working
      Except for this annoying bug with the ui looking weird
      
      * mark: only every_option example to go
      
      * feat: All examples ported over
      
      * refactor: Renamed `ScrollDisabled` to `ScrollEnabled`
      
      * fix: cargo doc returns no warnings
      
      * refactor: Using bevy builtin `SwashCache`
      
      * fix: documentation is now more consistent
      
      * fix: documentation and privacy are now much better
      
      * fix: wasm compiles again
      
      * refactor: utils is now private module
      
      * doc: minor adjustments
      
      * fix: utils module now public
      
      * doc: documented `print_editor_sizes`
      
      * fmt
      
      * doc: todo
      
      * todo: move all target-specific code into render_targets module
      
      * todo: clean up lots of mathy code todo with render boxes
      
      * wip: trying to debug annoying UI start glitch
      
      * feat: fixed final UI bug
      
      * fmt
      f3b2500b
  4. Nov 29, 2024
    • Caleb Yates's avatar
      Code quality improvements (#164) · e8a853a6
      Caleb Yates authored
      * fix: Implement reflect for FocusedWidget
      
      * refactor: using `bevy_math::Rect.contains` implementation to clean up code
      
      * fix: clippy is happy now
      
      * fix: fmt is happy now
      
      * add: Lots of Reflect impls and type registrations
      
      * refactor: moved certain type registrations into their own modules
      e8a853a6
  5. Jul 11, 2024
  6. Apr 30, 2024
  7. Apr 29, 2024
  8. Apr 10, 2024
  9. Apr 09, 2024
  10. Mar 20, 2024
    • 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
  11. 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
  12. Dec 27, 2023
  13. Nov 10, 2023
  14. Nov 09, 2023
  15. 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
  16. 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
  17. Oct 27, 2023
  18. Oct 26, 2023
  19. Oct 25, 2023
  20. Oct 24, 2023
  21. Oct 13, 2023
  22. Oct 12, 2023
Loading