@@ -113,7 +113,7 @@ class StrumNote extends NoteObject
113113 if (Paths .fileExists (' images/ $customSkin .png' , IMAGE )) skin = customSkin ;
114114 }
115115 else {
116- var customSkin : String = ' NOTE_assets' ;
116+ var customSkin : String = skin = ( PlayState . SONG != null ? PlayState . SONG . arrowSkin : ' NOTE_assets' ) + Note . getNoteSkinPostfix () ;
117117 skin = (PlayState .isPixelStage ? customSkin : ' noteSkins/strums' );
118118 }
119119
@@ -135,22 +135,18 @@ class StrumNote extends NoteObject
135135 if (animation .curAnim != null ) lastAnim = animation .curAnim .name ;
136136 var pxDV : Int = Note .pixelNotesDivisionValue [1 ];
137137
138- var ogSkin : String = texture ;
139- if (texture == ' noteSkins/NOTE_assets' )
140- texture = ' noteSkins/' + (PlayState .isPixelStage ? ogSkin : ' strums' );
141-
142138 animationArray [0 ] = Note .keysShit .get (PlayState .mania ).get (' strumAnims' )[column ];
143139 animationArray [1 ] = Note .keysShit .get (PlayState .mania ).get (' letters' )[column ];
144140 animationArray [2 ] = Note .keysShit .get (PlayState .mania ).get (' letters' )[column ]; // jic
145141
146142 if (PlayState .isPixelStage )
147143 {
148- loadGraphic (Paths .image (' pixelUI/' + texture ));
144+ loadGraphic (Paths .image (' pixelUI/noteSkins/ ' + texture ));
149145 pxDV = Note .pixelNotesDivisionValue [width == 306 ? 1 : 0 ];
150146 width = width / pxDV ;
151147 height = height / 5 ;
152148 antialiasing = false ;
153- loadGraphic (Paths .image (' pixelUI/' + texture ), true , Math .floor (width ), Math .floor (height ));
149+ loadGraphic (Paths .image (' pixelUI/noteSkins/ ' + texture ), true , Math .floor (width ), Math .floor (height ));
154150 var daFrames : Array <Int > = Note .keysShit .get (PlayState .mania ).get (' pixelAnimIndex' );
155151
156152 setGraphicSize (Std .int (width * PlayState .daPixelZoom * Note .pixelScales [PlayState .mania ]));
@@ -163,7 +159,22 @@ class StrumNote extends NoteObject
163159 }
164160 else
165161 {
166- frames = Paths .getSparrowAtlas (texture );
162+ var postfix : String = Note .getNoteSkinPostfix ();
163+ var skin : String = texture + postfix ;
164+ if (texture .length < 1 )
165+ {
166+ skin = (PlayState .SONG != null ? PlayState .SONG .arrowSkin : (texture + postfix ));
167+ if (skin == null || skin .length < 1 ) {
168+ if (postfix == null || postfix .length < 1 )
169+ skin = " noteSkins/strums" ;
170+ else
171+ skin = " noteSkins/NOTE_assets" + postfix ;
172+ }
173+ }
174+
175+ trace (" Skin: " + skin );
176+
177+ frames = Paths .getSparrowAtlas (skin );
167178 antialiasing = ClientPrefs .data .antialiasing ;
168179 setGraphicSize (Std .int (width * Note .scales [PlayState .mania ]));
169180
0 commit comments