Skip to content

Commit

Permalink
unused for now idk
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 19, 2024
1 parent d88152c commit f537343
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions source/objects/userinterface/note/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,11 @@ class Note extends FlxSprite
if(texture.length < 1) {
skin = PlayState.SONG.arrowSkin;
if(skin == null || skin.length < 1) {
/*
skin = 'noteskins/NOTE_assets-${ClientPrefs.noteSkin.toLowerCase()}';
}
if(ClientPrefs.noteSkin == null) {
*/
skin = 'NOTE_assets';
}
}
Expand All @@ -279,11 +281,13 @@ class Note extends FlxSprite
defaultWidth = 157;
defaultHeight = 154;
if(PlayState.isPixelStage) {
/*
if (FileSystem.exists(Paths.modFolders('images/pixelUI/$blahblah.png')) && FileSystem.exists(Paths.modFolders('images/pixelUI/' + blahblah + 'ENDS.png'))) {
blahblah = 'noteskins/NOTE_assets-${ClientPrefs.noteSkin.toLowerCase()}';
} else {
blahblah = 'NOTE_assets';
}
*/
if(isSustainNote) {
loadGraphic(Paths.image('pixelUI/' + blahblah + 'ENDS'));
width = width / 4;
Expand Down
10 changes: 7 additions & 3 deletions source/objects/userinterface/note/StrumNote.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ class StrumNote extends FlxSprite
this.noteData = leData;
super(x, y);

var skin:String;
var skin:String = 'NOTE_assets';
/*
if(ClientPrefs.noteSkin != null) {
skin = 'noteskins/NOTE_assets-${ClientPrefs.noteSkin.toLowerCase()}';
} else {
skin = "NOTE_assets";
}
*/
if(PlayState.SONG.arrowSkin != null && PlayState.SONG.arrowSkin.length > 1) skin = PlayState.SONG.arrowSkin;
shader = colorMask.shader;
texture = skin; //Load texture and anims
Expand All @@ -52,16 +54,18 @@ class StrumNote extends FlxSprite

if(PlayState.isPixelStage)
{
/*
var skin:String = 'NOTE_assets';
if (FileSystem.exists(Paths.modFolders('images/pixelUI/$texture.png')) && FileSystem.exists(Paths.modFolders('images/pixelUI/' + texture + 'ENDS.png'))) {
skin = 'noteskins/NOTE_assets-${ClientPrefs.noteSkin.toLowerCase()}';
} else {
skin = 'NOTE_assets';
}
loadGraphic(Paths.image('pixelUI/' + skin));
*/
loadGraphic(Paths.image('pixelUI/' + texture));
width = width / 4;
height = height / 5;
loadGraphic(Paths.image('pixelUI/' + skin), true, Math.floor(width), Math.floor(height));
loadGraphic(Paths.image('pixelUI/' + texture), true, Math.floor(width), Math.floor(height));

antialiasing = false;
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
Expand Down

0 comments on commit f537343

Please sign in to comment.