Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
pass some shit through oxipng
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeMaru committed Jan 26, 2024
1 parent 9b8a51f commit 082726c
Show file tree
Hide file tree
Showing 123 changed files with 24 additions and 24 deletions.
Binary file modified assets/preload/images/options/bf_offset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/buttonSprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/latencyBG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/latencyDesat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/modButton.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/optionCheckbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/packedEvent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/quaverMod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/soundtray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/spray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/preload/images/options/titleOptions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/speakers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/speakers/speakerLights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/speakers/tankmanBodyPart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/speakers/tankmanTop1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/speakers/tankmanTop2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week1/BOYFRIEND-DEAD.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week1/BOYFRIEND.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week1/DADDY_DEAREST.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week1/GF_assets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week2/Monster_Assets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week2/spookyKids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week3/Pico_FNF_assetss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week4/Mom_Assets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week4/bfCar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/shared/images/characters/week4/gfCar.png
Binary file modified assets/shared/images/characters/week4/momCar.png
Binary file modified assets/shared/images/characters/week5/bfChristmas.png
Binary file modified assets/shared/images/characters/week5/gfChristmas.png
Binary file modified assets/shared/images/characters/week5/monsterChristmas.png
Binary file modified assets/shared/images/characters/week7/bf-hold-gf-DEAD.png
Binary file modified assets/shared/images/characters/week7/bf-hold-gf.png
Binary file modified assets/shared/images/characters/week7/gfTankmen.png
Binary file modified assets/shared/images/characters/week7/picoSpeaker.png
Binary file modified assets/shared/images/characters/week7/tankmanCaptain.png
Binary file modified assets/shared/images/pauseAlt/pauseBG.png
Binary file modified assets/shared/images/portraits/bf-pixel.png
Binary file modified assets/shared/images/portraits/bf.png
Binary file modified assets/shared/images/portraits/dad.png
Binary file modified assets/shared/images/skins/default/coloredNoteAssets.png
Binary file modified assets/shared/images/skins/default/coloredStrumAssets.png
Binary file modified assets/shared/images/skins/default/go.png
Binary file modified assets/shared/images/skins/default/healthBar.png
Binary file modified assets/shared/images/skins/default/noteAssets.png
Binary file modified assets/shared/images/skins/default/ratings/nums.png
Binary file modified assets/shared/images/skins/default/ratings/ratings.png
Binary file modified assets/shared/images/skins/default/ready.png
Binary file modified assets/shared/images/skins/default/set.png
Binary file modified assets/shared/images/skins/default/strumAssets.png
Binary file modified assets/shared/images/storymenu/characters/bf-christmas.png
Binary file modified assets/shared/images/storymenu/characters/bf.png
Binary file modified assets/shared/images/storymenu/characters/dad.png
Binary file modified assets/shared/images/storymenu/characters/gf-christmas.png
Binary file modified assets/shared/images/storymenu/characters/gf-tank.png
Binary file modified assets/shared/images/storymenu/characters/gf.png
Binary file modified assets/shared/images/storymenu/characters/mom.png
Binary file modified assets/shared/images/storymenu/characters/pico.png
Binary file modified assets/shared/images/storymenu/characters/senpai.png
Binary file modified assets/shared/images/storymenu/characters/spooky.png
Binary file modified assets/shared/images/storymenu/characters/tankman.png
Binary file modified assets/shared/images/storymenu/weeks/tutorial.png
Binary file modified assets/shared/images/storymenu/weeks/week3.png
Binary file modified assets/shared/images/storymenu/weeks/week4.png
Binary file modified assets/shared/images/storymenu/weeks/week6.png
Binary file modified assets/shared/images/storymenu/weeks/week7.png
Binary file modified assets/weeks/week2/images/halloweenBg.png
Binary file modified assets/weeks/week2/images/tankman/spookyBg.png
Binary file modified assets/weeks/week2/images/tankman/spookyTankman.png
Binary file modified assets/weeks/week3/images/blammed/blammedTrain.png
Binary file modified assets/weeks/week3/images/blammed/cityLoop.png
Binary file modified assets/weeks/week3/images/blammed/tunnelLights.png
Binary file modified assets/weeks/week3/images/blammed/tunnelLightsBlur.png
Binary file modified assets/weeks/week3/images/philly/behindTrain.png
Binary file modified assets/weeks/week3/images/philly/city.png
Binary file modified assets/weeks/week3/images/philly/phillyWindow-blur.png
Binary file modified assets/weeks/week3/images/philly/phillyWindow.png
Binary file modified assets/weeks/week3/images/philly/street.png
Binary file modified assets/weeks/week3/images/philly/train.png
Binary file modified assets/weeks/week4/images/limo/bgLimo.png
Binary file modified assets/weeks/week4/images/limo/blood.png
Binary file modified assets/weeks/week4/images/limo/limoDrive.png
Binary file modified assets/weeks/week4/images/limo/limoOverlay.png
Binary file modified assets/weeks/week4/images/limo/limoSunset.png
Binary file modified assets/weeks/week5/images/bgEscalator.png
Binary file modified assets/weeks/week5/images/bgSnow.png
Binary file modified assets/weeks/week5/images/bgWalls.png
Binary file modified assets/weeks/week5/images/bottom bop.png
Binary file modified assets/weeks/week5/images/christmasTree.png
Binary file modified assets/weeks/week5/images/evilBG.png
Binary file modified assets/weeks/week5/images/evilSnow.png
Binary file modified assets/weeks/week5/images/evilTree.png
Binary file modified assets/weeks/week5/images/fgEvilSnow.png
Binary file modified assets/weeks/week5/images/fgSnow.png
Binary file modified assets/weeks/week5/images/santa.png
Binary file modified assets/weeks/week5/images/snow loop.png
Binary file modified assets/weeks/week5/images/snow roof.png
Binary file modified assets/weeks/week5/images/upper crowd.png
Binary file modified assets/weeks/week7/images/cutscenes/demon_gf-censor.png
Binary file modified assets/weeks/week7/images/cutscenes/demon_gf.png
Binary file modified assets/weeks/week7/images/cutscenes/faceplantGf.png
Binary file modified assets/weeks/week7/images/cutscenes/john-censor.png
Binary file modified assets/weeks/week7/images/cutscenes/john.png
Binary file modified assets/weeks/week7/images/cutscenes/steve-censor.png
Binary file modified assets/weeks/week7/images/cutscenes/steve.png
Binary file modified assets/weeks/week7/images/smokeLeft.png
Binary file modified assets/weeks/week7/images/smokeRight.png
Binary file modified assets/weeks/week7/images/stress/tankmenShot-censor.png
Binary file modified assets/weeks/week7/images/stress/tankmenShot.png
Binary file modified assets/weeks/week7/images/tank0.png
Binary file modified assets/weeks/week7/images/tank1.png
Binary file modified assets/weeks/week7/images/tank2.png
Binary file modified assets/weeks/week7/images/tank3.png
Binary file modified assets/weeks/week7/images/tank5.png
Binary file modified assets/weeks/week7/images/tankBuildings.png
Binary file modified assets/weeks/week7/images/tankClouds.png
Binary file modified assets/weeks/week7/images/tankGround.png
Binary file modified assets/weeks/week7/images/tankMountains.png
Binary file modified assets/weeks/week7/images/tankRuins.png
Binary file modified assets/weeks/week7/images/tankSky.png
Binary file modified assets/weeks/week7/images/tankmanCutscene_body.png
Binary file modified assets/weeks/week7/images/tankmanCutscene_head.png
48 changes: 24 additions & 24 deletions source/funkin/util/modding/FunkScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -413,29 +413,29 @@ class FunkScript extends hscript.Script implements IFlxDestroyable {
}
}

typedef SuperMethod = {
var callback:HscriptFunctionCallback;
var ?value:Dynamic;
enum abstract SuperType(String) from String to String {
var CREATE = "create";
var UPDATE = "update";
var STEP = "stepHit";
var BEAT = "beatHit";
var SECTION = "sectionHit";
}

class CustomState extends MusicBeatState {
public var script:FunkScript;
private var _scriptKey:String;

var super_map:Map<String, SuperMethod> = [];
var super_methods:Array<String> = ['create', 'update', 'stepHit', 'beatHit', 'sectionHit', 'destroy'];
public var script(default, null):FunkScript;
public var key(default, null):String;

public function initScript(scriptCode:String, stateTag:String) {
_scriptKey = stateTag;
key = stateTag;
script = new FunkScript(scriptCode, '_custom_state_$stateTag');
script.set('Parent', cast this);

// This method sucks, but it works, sooooooo yeah... sorry
for (i in super_methods) {
script.set('super_' + i, function(?v:Dynamic) {
callDynamicSuper(i);
});
}
// Add the super arguments
script.set("super_" + CREATE, super_create);
script.set("super_" + UPDATE, super_update);
script.set("super_" + STEP, super_stepHit);
script.set("super_" + BEAT, super_beatHit);
script.set("super_" + SECTION, super_sectionHit);

return this;
}
Expand All @@ -446,13 +446,13 @@ class CustomState extends MusicBeatState {
final function super_beatHit(b:Int) super.beatHit(b);
final function super_sectionHit(s:Int) super.sectionHit(s);

function callDynamicSuper(f:String, ?v:Dynamic) {
inline function callDynamicSuper(f:SuperType, ?v:Dynamic) {
switch(f) {
case "create": super_create();
case "update": super_update(v);
case "stepHit": super_stepHit(v);
case "beatHit": super_beatHit(v);
case "sectionHit": super_sectionHit(v);
case CREATE: super_create();
case UPDATE: super_update(v);
case STEP: super_stepHit(v);
case BEAT: super_beatHit(v);
case SECTION: super_sectionHit(v);
}
}

Expand All @@ -465,13 +465,13 @@ class CustomState extends MusicBeatState {
}

override public function create() {
ModdingUtil.addPrint(_scriptKey + " / Custom State");
ModdingUtil.addPrint(key + " / Custom State");
checkSuper("create");
}

override public function update(elapsed:Float) {
if (FlxG.keys.justPressed.F4) switchState(new StoryMenuState()); // emergency exit
if (FlxG.keys.justPressed.F5) ScriptUtil.switchCustomState(_scriptKey, false, false);
if (FlxG.keys.justPressed.F4) switchState(new MainMenuState()); // emergency exit
if (FlxG.keys.justPressed.F5) ScriptUtil.switchCustomState(key, false, false);
checkSuper("update", [elapsed]);
}

Expand Down

0 comments on commit 082726c

Please sign in to comment.