Skip to content

Commit

Permalink
dun dudududu dun duuuun dun
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 19, 2024
1 parent 603087e commit 4d48907
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 17 deletions.
1 change: 1 addition & 0 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<haxelib name="fnf-modcharting-tools" />
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="SScript-Latest" if="SCRIPT_EXTENSION" />

<haxelib name="parallaxlt" />

<haxelib name="extension-webm" if="WEBM_ALLOWED" />
Expand Down
6 changes: 3 additions & 3 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
[HIGH PRIORITY]
- Custom Noteskins/Notesplashes
- Move character with mouse in Character Editor
- Psych UI (from v1.0b)
- Main Menu Addons
- Extra Notes (for real this time)
- Add data for languages
- Add sound input to Credits Editor

[LOW PRIORITY]
- Fix Modchart Editor
- Week 8 (or Weekend 1, whatever)
- New stage code from Psych 0.7
- New stage code from Psych 0.7
- Psych UI (from v1.0b)
- Main Menu Addons
6 changes: 5 additions & 1 deletion source/meta/data/options/OptionsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,11 @@ class NotesSubState extends MusicBeatSubstate
}

var note:FlxSprite = new FlxSprite(posX, yPos);
note.frames = Paths.getSparrowAtlas('NOTE_assets');
if(ClientPrefs.noteSkin != null) {
note.frames = Paths.getSparrowAtlas('noteskins/NOTE_assets-${ClientPrefs.noteSkin.toLowerCase()}');
} else {
note.frames = Paths.getSparrowAtlas('NOTE_assets');
}
var animations:Array<String> = ['purple0', 'blue0', 'green0', 'red0'];
note.animation.addByPrefix('idle', animations[i]);
note.animation.play('idle');
Expand Down
2 changes: 1 addition & 1 deletion source/meta/data/options/SocialCreditState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package meta.data.options;

class SocialCreditState extends MusicBeatState
{
public static var socialCredit:Int = 0;
public static var socialCredit:Int = FlxG.save.data.socialCredit;

public static var wentDown:Bool = false;
public static var wentUp:Bool = false;
Expand Down
6 changes: 5 additions & 1 deletion source/meta/state/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class FreeplayState extends MusicBeatState
songSearchText.x = FlxG.width - songSearchText.width;
add(songSearchText);

var buttonTop:FlxButton = new FlxButton(0, songSearchText.y + songSearchText.height + 5, "Search", function() {
var buttonTop:FlxButton = new FlxButton(0, songSearchText.y + songSearchText.height + 5, "", function() {
checkForSongsThatMatch(songSearchText.text);
});
buttonTop.setGraphicSize(Std.int(songSearchText.width), 50);
Expand All @@ -227,6 +227,10 @@ class FreeplayState extends MusicBeatState
buttonTop.x = FlxG.width - buttonTop.width;
add(buttonTop);

var searchTxt:FlxText = new FlxText(buttonTop.x, buttonTop.y, 0, "Search", 32);
searchTxt.setFormat(Paths.font("vcr.ttf"), 24, FlxColor.WHITE, CENTER);
add(searchTxt);

uneccessarilyLongVariable = new FlxText(0, 0, 0, "+" + PlayState.gainedCredit + " SOCIAL CREDIT", 12);
uneccessarilyLongVariable.setFormat(Paths.font("vcr.ttf"), 48, FlxColor.WHITE, LEFT, FlxTextBorderStyle.OUTLINE, FlxColor.BLACK);
uneccessarilyLongVariable.scrollFactor.set();
Expand Down
3 changes: 1 addition & 2 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ class PlayState extends MusicBeatState
ArtemisIntegration.setHealthbarFlxColors (dadColor, bfColor);
#end

timeBar.setColors(CoolUtil.getColor(dad.healthColorArray), FlxColor.WHITE);
timeBar.setColors(CoolUtil.getColor(dad.healthColorArray), 0xFF404040);
}

public function addCharacterToList(newCharacter:String, type:Int) {
Expand Down Expand Up @@ -4824,7 +4824,6 @@ class PlayState extends MusicBeatState

gainedCredit = FlxG.random.int(1, 100);
FlxG.save.data.socialCredit += gainedCredit;
SocialCreditState.socialCredit = FlxG.save.data.socialCredit;
SocialCreditState.wentUp = true;

#if sys
Expand Down
1 change: 0 additions & 1 deletion source/objects/Character.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package objects;

import animateatlas.AtlasFrameMaker;
import objects.background.*;
import objects.shaders.*;

Expand Down
8 changes: 8 additions & 0 deletions source/objects/userinterface/note/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ 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 @@ -276,6 +279,11 @@ 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
22 changes: 14 additions & 8 deletions source/objects/userinterface/note/StrumNote.hx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class StrumNote extends FlxSprite
this.noteData = leData;
super(x, y);

var skin:String = 'NOTE_assets';
if(PlayState.SONG.arrowSkin != null && PlayState.SONG.arrowSkin.length > 1) skin = PlayState.SONG.arrowSkin;
switch (ClientPrefs.noteSkin) {
case 'Chip': skin = 'noteskins/NOTE_assets-chip';
case 'Future' : skin = 'noteskins/NOTE_assets-future';
default: skin = 'NOTE_assets';
var skin:String;
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,10 +52,16 @@ class StrumNote extends FlxSprite

if(PlayState.isPixelStage)
{
loadGraphic(Paths.image('pixelUI/' + texture));
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));
width = width / 4;
height = height / 5;
loadGraphic(Paths.image('pixelUI/' + texture), true, Math.floor(width), Math.floor(height));
loadGraphic(Paths.image('pixelUI/' + skin), true, Math.floor(width), Math.floor(height));

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

0 comments on commit 4d48907

Please sign in to comment.