We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2bfa18 commit 040eec8Copy full SHA for 040eec8
crates/notation_bevy/src/tone/tone_note.rs
@@ -50,13 +50,18 @@ impl ShapeOp<NotationTheme, OutlineRectangle> for ToneNoteData {
50
} else {
51
let x = self.value.bar_size / self.bar_props.bar_units.0
52
* self.entry_props.in_bar_pos.0;
53
- let y = if self.value.mode.is_melody() {
+ let mut y = if self.value.mode.is_melody() {
54
theme
55
.sizes.melody
56
.calc_note_y(self.value.note)
57
58
0.0
59
};
60
+ if self.value.playing_state.is_current() {
61
+ let outline = self.calc_outline(theme);
62
+ y -= outline / 2.0;
63
+ }
64
+
65
let (_width, height) = self.calc_width_height(theme);
66
let extra_z = if self.value.playing_state.is_current() {
67
1.0
0 commit comments