draw the slider tail hitcircle

This commit is contained in:
Michael Zhang 2021-01-09 15:50:25 -06:00
parent 406b634228
commit 8d36b7219d
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
3 changed files with 15 additions and 3 deletions

2
Cargo.lock generated
View file

@ -1072,7 +1072,7 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a"
[[package]]
name = "libosu"
version = "0.0.15"
source = "git+https://github.com/iptq/libosu?rev=80604d756eb462fe07ca3c2fbada52335a49b529#80604d756eb462fe07ca3c2fbada52335a49b529"
source = "git+https://github.com/iptq/libosu?rev=ca87faef07b308288dad623dd115c903a7a81353#ca87faef07b308288dad623dd115c903a7a81353"
dependencies = [
"anyhow",
"bitflags",

View file

@ -21,4 +21,4 @@ structopt = "0.3.21"
[dependencies.libosu]
git = "https://github.com/iptq/libosu"
rev = "80604d756eb462fe07ca3c2fbada52335a49b529"
rev = "ca87faef07b308288dad623dd115c903a7a81353"

View file

@ -190,6 +190,19 @@ impl Game {
color,
)?;
slider_info = Some((info, spline));
let end_pos = ho.inner.end_pos().unwrap();
let end_pos = [PLAYFIELD_BOUNDS.x + osupx_scale_x * end_pos.0 as f32, PLAYFIELD_BOUNDS.y + osupx_scale_y*end_pos.1 as f32];
self.skin.hitcircle.draw(
ctx,
(cs_real * 2.0, cs_real * 2.0),
DrawParam::default().dest(end_pos).color(color),
)?;
self.skin.hitcircleoverlay.draw(
ctx,
(cs_real * 2.0, cs_real * 2.0),
DrawParam::default().dest(end_pos),
)?;
}
self.skin.hitcircle.draw(
@ -197,7 +210,6 @@ impl Game {
(cs_real * 2.0, cs_real * 2.0),
DrawParam::default().dest(pos).color(color),
)?;
self.skin.hitcircleoverlay.draw(
ctx,
(cs_real * 2.0, cs_real * 2.0),