Skip to content

Commit

Permalink
uhm
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Jul 2, 2024
1 parent 541e880 commit d1de311
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.ogg" if="web"/>
<assets path="assets/week_assets" library="week_assets" rename="assets" exclude="*.mp3" unless="web"/>
<assets path='mods' if="MODS_ALLOWED" embed='false'/>

<assets path='art/iconOG.png' rename='icon.png' if="linux" />

<assets path='art/readme.txt' rename='do NOT readme.txt' />

Expand Down
9 changes: 5 additions & 4 deletions source/funkin/backend/utils/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,11 @@ class Paths
return getSharedPath(file);
}

static public function getLibraryPath(file:String, library = "preload")
{
return if (library == "preload" || library == "default") getSharedPath(file); else getLibraryPathForce(file, library);
}
static public function getLibraryPath(file:String, library = "shared")
{
return if (library == "shared") getSharedPath(file); else getLibraryPathForce(file, library);
}


inline static function getLibraryPathForce(file:String, library:String, ?level:String)
{
Expand Down
6 changes: 3 additions & 3 deletions source/funkin/game/options/NoteOffsetState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class NoteOffsetState extends MusicBeatState
coolText.screenCenter();
coolText.x = FlxG.width * 0.35;

rating = new FlxSprite().loadGraphic(Paths.image('sick'));
rating = new FlxSprite().loadGraphic(Paths.image('UI/default/rating/sick'));
rating.cameras = [camHUD];
rating.setGraphicSize(Std.int(rating.width * 0.7));
rating.updateHitbox();
Expand All @@ -130,7 +130,7 @@ class NoteOffsetState extends MusicBeatState
var daLoop:Int = 0;
for (i in seperatedScore)
{
var numScore:FlxSprite = new FlxSprite(43 * daLoop).loadGraphic(Paths.image('UI/numbers/default/num' + i));
var numScore:FlxSprite = new FlxSprite(43 * daLoop).loadGraphic(Paths.image('UI/default/numbers/num' + i));
numScore.cameras = [camHUD];
numScore.setGraphicSize(Std.int(numScore.width * 0.5));
numScore.updateHitbox();
Expand Down Expand Up @@ -167,7 +167,7 @@ class NoteOffsetState extends MusicBeatState
barPercent = ClientPrefs.data.noteOffset;
updateNoteDelay();

timeBarBG = new FlxSprite(0, timeTxt.y + 8).loadGraphic(Paths.image('timeBar'));
timeBarBG = new FlxSprite(0, timeTxt.y + 8).loadGraphic(Paths.image('UI/timeBar'));
timeBarBG.setGraphicSize(Std.int(timeBarBG.width * 1.2));
timeBarBG.updateHitbox();
timeBarBG.cameras = [camHUD];
Expand Down

0 comments on commit d1de311

Please sign in to comment.