Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/track time mut #24

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading