All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.14.10 - 2024-08-31
- Added: Added class
TextValue
and functiontext(value: impl ToString)
to update text value for(text)
element. - Updated: Updated README for added
text
class function.
0.14.9 - 2024-08-29
- BREAKING: class function
font(px)
is not renamed tofont_size(px)
. - Added: Added class
FontHandle
and functionfont(handle: Handle<Font>)
to apply font to text.
0.14.8 - 2024-08-19
- Fixed: Visibility and Focus Policy was not being applied.
- BREAKING: All class functions (ex.
h_fract
,h_vmax
, etc.) that used to take percentage (0. ~ 100.) now takes fraction (0. ~ 1.).
0.14.7 - 2024-08-12
- Fixed: Fix bug in how classes were being applied when changed.
0.14.6 - 2024-08-07
- Fixed: When interacting with the element, other systems that updated the classes were not being applied.
0.14.5 - 2024-08-07
- Directly depend on bevy's individual libraries in hopes of trimming down dependency size.
0.14.4 - 2024-08-07
- Fixed:
BorderRadius
was not being applied.
0.14.3 - 2024-08-07
- Added elements:
(img)
:(img) { expr_returning_UiImage }
(material)
:(material) { expr_returning_Handle<M: Material> }
- I haven't actually tested these, but they should work??
0.14.2 - 2024-08-07
- Minor update on
BsmlClass
- Refactor
BsmlClass
to be more maintainable - Add more classes:
- margin
- padding
- min height
- max height
- overflow
- display
- justify items
- align self
- direction
- flex basis, grow, shrink
- border width
- border radius
- grid auto columns
- grid auto rows
- grid auto flow
- grid col
- grid row
- grid template columns
- grid template rows
- BREAKING: rename
*_px
into just*
; for example,w_px
intow
andtop_px
intotop
- BREAKING: rename
*_perc
into*_fract
- BREAKING: rename
*_FLEX_*
into*_*
; for example,ITEMS_FLEX_START
intoITEMS_START
0.14.1 - 2024-08-06
- Add more classes + Commit Cargo.lock (#5)
- Reorganized bsml macro for better readability
- Renamed all instances of
Color::rgba
toColor::Srgba
. - Renamed
ClassEnum
into a more fitting name,BsmlClass
. fn apply_class_system
, which applies any change in interaction and classes will now run inPostUpdate
instead ofUpdate
.- Add more tailwind classes:
- MaxWidth
- AlignItems
- Position (Absolute, Relative)
- Bottom, Top, Left, Right
- JustifyText
- BREAKING: Renamed struct
BsmlNode
to justBsml
. - BREAKING: Renamed trait
Bsml
toBsmlElement
. - BREAKING: Renamed module
class::text::color
toclass::text::text_color
. - BREAKING: Refactored class applying system.
- Instead of querying different components for
background color
,styles
,text
, etc., you can just query&mut BsmlClasses
and insert/remove the classes you want. - See examples directory for more information.
- Instead of querying different components for
0.14.0 - 2024-07-17
Starting this version, this project will keep the same minor version as Bevy. This allows me to pushing new features while still supporting each versions of Bevy.
- Starting a changelog
- I love reading through other projects' changelogs for added features and bugfixes, so I hope this will be useful to others as well.
- Updated Bevy version to 0.14 (#3)
- Updated Bevy version to 0.13 (#1)