Skip to content

Commit

Permalink
Feat/track time mut (#24)
Browse files Browse the repository at this point in the history
* feat: make TrackEntry's track_time mutable and bump minor version

* adjust docs

---------

Co-authored-by: jabu <[email protected]>
  • Loading branch information
dt665m and jabuwu authored Mar 21, 2024
1 parent ba508c8 commit 58d4421
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_spine"
version = "0.7.1"
version = "0.8.0"
edition = "2021"
description = "Spine runtime for Rust (and wasm!) transpiled from the official C Runtime."
homepage = "https://github.com/jabuwu/rusty_spine"
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.8.0 (UNRELEASED)
- Add `TrackEntry::set_track_time`

# 0.7.1
- Fix dark color applying incorrectly with premultiplied alpha (using draw functions)

Expand Down
4 changes: 3 additions & 1 deletion src/animation_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,13 @@ impl TrackEntry {
delay,
f32
);
c_accessor!(
c_accessor_mut!(
/// Current time in seconds this track entry has been the current track entry. The track
/// time determines [`animation_time`](`Self::animation_time`). The track time can be set
/// to start the animation at a time other than 0, without affecting looping.
track_time,
/// Set the track time, see [`track_time`](`Self::track_time`).
set_track_time,
trackTime,
f32
);
Expand Down

0 comments on commit 58d4421

Please sign in to comment.