@@ -293,7 +293,7 @@ class Note extends NoteObject
293293 public static var swagWidthAlt : Float = 160 ; // For ModManager
294294 public static var colArray : Array <String > = [' purple' , ' blue' , ' green' , ' red' ];
295295 public static var colArrayAlt : Array <String > = [' purple' , ' blue' , ' green' , ' red' , ' white' , ' yellow' , ' violet' , ' black' , ' dark' ];
296- public static var defaultNoteSkin (default , never ): String = ' noteskins /NOTE_assets' ;
296+ public static var defaultNoteSkin (default , never ): String = ' noteSkins /NOTE_assets' ;
297297
298298 public var noteSplashData : NoteSplashData = {
299299 disabled : false ,
@@ -683,6 +683,8 @@ class Note extends NoteObject
683683 return globalRgbShaders [noteData ];
684684 }
685685
686+ public var publicTexture : String = ' ' ;
687+ public var publicTextureSus : String = ' ' ;
686688 var _lastNoteOffX : Float = 0 ;
687689 static var _lastValidChecked : String ; // optimization
688690 public var originalHeight : Float = 6 ;
@@ -696,7 +698,7 @@ class Note extends NoteObject
696698 {
697699 skin = PlayState .SONG != null ? PlayState .SONG .arrowSkin : null ;
698700 if (skin == null || skin .length < 1 )
699- skin = " noteskins /NOTE_assets" + postfix ;
701+ skin = " noteSkins /NOTE_assets" + postfix ;
700702 }
701703 else rgbShader .enabled = false ;
702704
@@ -734,15 +736,17 @@ class Note extends NoteObject
734736 case ' Fake Heal Note' :
735737 loadGraphic (Paths .image (" streamervschat/pixelUI/fakehealnote" ), false );
736738 default :
739+ publicTexture = ' pixelUI/' + skinPixel + skinPostfix ;
740+ publicTextureSus = ' pixelUI/' + skinPixel + ' ENDS' + skinPostfix ;
737741 if (isSustainNote ) {
738742 var graphic = Paths .image (' pixelUI/' + skinPixel + ' ENDS' + skinPostfix );
739- loadGraphic (graphic , true , Math .floor (graphic .width / Note . pixelNotesDivisionValue [0 ]), Math .floor (graphic .height / 2 ));
743+ loadGraphic (graphic , true , Math .floor (graphic .width / pixelNotesDivisionValue [graphic . width == 126 ? 1 : 0 ]), Math .floor (graphic .height / 2 ));
740744 originalHeight = graphic .height / 2 ;
741745 } else {
742746 var graphic = Paths .image (' pixelUI/' + skinPixel + skinPostfix );
743- loadGraphic (graphic , true , Math .floor (graphic .width / Note . pixelNotesDivisionValue [0 ]), Math .floor (graphic .height / 5 ));
747+ loadGraphic (graphic , true , Math .floor (graphic .width / pixelNotesDivisionValue [graphic . width == 306 ? 1 : 0 ]), Math .floor (graphic .height / 5 ));
744748 }
745- setGraphicSize (Std .int (width * PlayState .daPixelZoom * Note . pixelScales [PlayState .mania ]));
749+ setGraphicSize (Std .int (width * PlayState .daPixelZoom * pixelScales [PlayState .mania ]));
746750 loadPixelNoteAnims ();
747751 antialiasing = false ;
748752 }
@@ -815,11 +819,12 @@ class Note extends NoteObject
815819 function loadPixelNoteAnims () {
816820 for (i in 0 ... gfxLetter .length )
817821 {
818- animation .add (gfxLetter [i ], [i + pixelNotesDivisionValue [0 ]]);
822+ var graphic = Paths .image (publicTexture );
823+ animation .add (gfxLetter [i ], [i + pixelNotesDivisionValue [graphic .width == 306 ? 1 : 0 ]]);
819824 if (isSustainNote )
820825 {
821826 animation .add (gfxLetter [i ] + ' hold' , [i ]);
822- animation .add (gfxLetter [i ] + ' tail' , [i + pixelNotesDivisionValue [0 ] ]);
827+ animation .add (gfxLetter [i ] + ' tail' , [i + ( pixelNotesDivisionValue [graphic . width == 126 ? 1 : 0 ] * 2 ) ]);
823828 }
824829 }
825830 }
0 commit comments