Skin: Height of LNStart/End would be calculated wrong
Opened this issue · 1 comments
It seems that height of any note type other than normal note (e.g., LN start/end, mines, etc.) image is the same as normal note even if different value is specified.
Example:
Suppose that normal note and LN start/end image is defined as below:
skin.image={
{id="note", src="note_src", x=0, y=0, w=30, h=10},
{id="lnstart", src="note_src", x=0, y=15, w=30, h=20},
{id="lnend", src="note_src", x=0, y=40, w=30, h=20},
}
then LN start/end should be rendered twice as long as normal note, but actually it is the same length.
I just started working around this issue.
I found that heights of notes are the same regardless of their types, set to SkinLane.scale
;
beatoraja/src/bms/player/beatoraja/play/LaneRenderer.java
Lines 426 to 434 in 45e3c66
and SkinLane.scale
is set to height of normal note.
So we have to add other scale properties for other note types like scaleLnStart
, scaleMine
, etc... (or change scale
to float[]
)
Anyway it might affect existing json skin if skin.note.size is specified in it.