Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 7b45c0f

Browse files
committed
run formatter rq
1 parent c7aba1d commit 7b45c0f

28 files changed

+110
-96
lines changed

source/Main.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Main extends Sprite
115115
bitmapFPS = kec.backend.ImageOutline.renderImage(fpsCounter, 1, 0x000000, true);
116116
bitmapFPS.smoothing = true;
117117
#end
118-
118+
119119
game.framerate = 60;
120120
var fard:FlxGame = new FlxGame(game.width, game.height, game.initialState, #if (flixel < "5.0.0") game.zoom, #end game.framerate, game.framerate,
121121
game.skipSplash, game.startFullscreen);

source/kec/backend/Controls.hx

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ enum abstract Action(String) to String from String
5151
var CHEAT = "cheat";
5252
}
5353
#end
54+
5455
enum Device
5556
{
5657
Keys;
@@ -111,7 +112,7 @@ class Controls extends FlxActionSet
111112
#else
112113
var byName:Map<String, FlxActionDigital> = new Map<String, FlxActionDigital>();
113114
#end
114-
115+
115116
public var keyboardScheme = KeyboardScheme.None;
116117

117118
public var UP(get, never):Bool;

source/kec/backend/Debug.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend;
2+
23
import lime.app.Application;
34
import flixel.system.debug.log.LogStyle;
45
import flixel.system.debug.watch.Tracker.TrackerProfile;

source/kec/backend/Discord.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend;
2+
23
#if FEATURE_DISCORD
34
import hxdiscord_rpc.Discord as RichPresence;
45
import hxdiscord_rpc.Types;

source/kec/backend/ImageOutline.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ class ImageOutline
160160
blue = (blue.length < 2) ? "0" + blue : blue;
161161
return (red + green + blue).toUpperCase();
162162
}
163-
}
163+
}

source/kec/backend/KadeEngineData.hx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend;
2+
23
import lime.app.Application;
34
import openfl.Lib;
45

@@ -296,7 +297,7 @@ class KadeEngineData
296297
FlxG.save.data.developer = false;
297298

298299
if (FlxG.save.data.maxRatings == null)
299-
FlxG.save.data.maxRatings = 4;
300+
FlxG.save.data.maxRatings = 4;
300301

301302
FlxSprite.defaultAntialiasing = FlxG.save.data.antialiasing;
302303
FlxObject.defaultMoves = false;

source/kec/backend/KeyBinds.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend;
2+
23
import flixel.input.FlxInput;
34
import flixel.input.actions.FlxAction;
45
import flixel.input.actions.FlxActionInput;

source/kec/backend/Options.hx

+3-2
Original file line numberDiff line numberDiff line change
@@ -2521,6 +2521,7 @@ class BackgroundsOption extends Option
25212521
class HitSoundOption extends Option
25222522
{
25232523
var daHitSound:FlxSound = new FlxSound();
2524+
25242525
public function new(desc:String)
25252526
{
25262527
super();
@@ -2559,14 +2560,14 @@ class HitSoundOption extends Option
25592560

25602561
public override function getValue():String
25612562
{
2562-
25632563
return "Hitsound Style: < " + HitSounds.getSoundByID(FlxG.save.data.hitSound) + " >";
25642564
}
25652565
}
25662566

25672567
class HitSoundVolume extends Option
25682568
{
25692569
var daHitSound:FlxSound = new FlxSound();
2570+
25702571
public function new(desc:String)
25712572
{
25722573
super();
@@ -2624,7 +2625,7 @@ class HitSoundVolume extends Option
26242625
daHitSound.loadEmbedded(Paths.sound('hitsounds/${HitSounds.getSoundByID(FlxG.save.data.hitSound).toLowerCase()}', 'shared'));
26252626
daHitSound.volume = FlxG.save.data.hitVolume;
26262627
daHitSound.play();
2627-
}
2628+
}
26282629

26292630
return true;
26302631
}

source/kec/backend/chart/Song.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend.chart;
2+
23
import kec.backend.chart.Section.SwagSection;
34

45
class Event

source/kec/backend/lua/LuaClass.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend.lua;
2+
23
#if FEATURE_LUAMODCHART
34
import llua.Convert;
45
import llua.Lua;

source/kec/backend/lua/ModchartState.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend.lua;
2+
23
// this file is for modchart things, this is to declutter playstate.hx
34
// Lua
45
#if FEATURE_LUAMODCHART

source/kec/backend/modding/ModCore.hx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.backend.modding;
2+
23
#if FEATURE_MODCORE
34
import polymod.backends.OpenFLBackend;
45
import polymod.backends.PolymodAssets.PolymodAssetType;
@@ -18,7 +19,7 @@ import flixel.FlxG;
1819
class ModCore
1920
{
2021
private static final MOD_DIR:String = 'mods';
21-
22+
2223
static final API_VERSION = "0.1.0";
2324

2425
#if FEATURE_MODCORE
@@ -32,7 +33,7 @@ class ModCore
3233
'otf' => FONT,
3334
'mp4' => VIDEO
3435
];
35-
36+
3637
public static var modsToLoad:Array<String> = [];
3738
#end
3839

@@ -84,7 +85,7 @@ class ModCore
8485
public static function getAllMods():Array<String>
8586
{
8687
var daList:Array<String> = [];
87-
88+
8889
#if FEATURE_FILESYSTEM
8990
if (!FileSystem.exists('mods'))
9091
{

source/kec/backend/util/NoteStyleHelper.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ class NoteStyleHelper
9999
else
100100
return 'splashes/${getNotesplashByID(id)}';
101101
}
102-
}
102+
}

source/kec/backend/util/Paths.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class Paths
628628
}
629629
return FlxAtlasFrames.fromSpriteSheetPacker(loadImage(key, library, gpuRender), file('images/$key.txt', library));
630630
}
631-
631+
632632
static public function getJSONAtlas(key:String, ?library:String, ?isCharacter:Bool = false, ?gpuRender:Bool)
633633
{
634634
gpuRender = gpuRender != null ? gpuRender : FlxG.save.data.gpuRender;

source/kec/objects/CoolText.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ class CoolText extends FlxBitmapText
4242
x = ((FlxG.width - (frameWidth - textWidth)) / 2) - frameWidth;
4343
4444
}*/
45-
}
45+
}

source/kec/objects/OFLSprite.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class OFLSprite extends FlxSprite
2020

2121
pixels.draw(flSprite);
2222
}
23-
}
23+
}

source/kec/objects/ui/ComboNumber.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ class ComboNumber extends UIComponent
1414
if (style.antialiasing == false)
1515
antialiasing = false;
1616
}
17-
}
17+
}

source/kec/objects/ui/UIComponent.hx

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
package kec.objects.ui;
22

33
import kec.backend.chart.Song.StyleData;
4+
45
/**
56
* Class Used For UI Components Like Ratings And Combo Numbers.
67
* Exists Only Because Of Sorting And Recycling.
78
*/
89
class UIComponent extends FlxSprite
910
{
10-
public var startTime:Float;
11-
// Conductor Song Position. The Meat And Potatos Of Sorting.
11+
public var startTime:Float;
12+
// Conductor Song Position. The Meat And Potatos Of Sorting.
1213
public var style:StyleData = null;
13-
// The Style. Used For Scaling, Antialiasing, And Image Pathing.
14+
// The Style. Used For Scaling, Antialiasing, And Image Pathing.
1415
public var lastName:String = null;
15-
// To Avoid Loading The Same Image Multiple Times. lol.
1616

17-
// Handles The Fading Out.
17+
// To Avoid Loading The Same Image Multiple Times. lol.
18+
// Handles The Fading Out.
1819

1920
public function new()
2021
{
@@ -40,4 +41,4 @@ class UIComponent extends FlxSprite
4041
}
4142
});
4243
}
43-
}
44+
}

source/kec/stages/BackgroundGirls.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.stages;
2+
23
import flixel.graphics.frames.FlxAtlasFrames;
34

45
class BackgroundGirls extends FlxSprite

source/kec/states/MainMenuState.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class MainMenuState extends MusicBeatState
363363
if (curSelected >= menuItems.length)
364364
curSelected = 0;
365365
if (curSelected < 0)
366-
curSelected = menuItems.length - 1;
366+
curSelected = menuItems.length - 1;
367367

368368
menuItems.forEach(function(spr:FlxSprite)
369369
{

source/kec/states/ModMenuState.hx

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.states;
2+
23
#if FEATURE_MODCORE
34
import haxe.ui.components.Button;
45
import kec.backend.modding.ModCore;
@@ -23,9 +24,9 @@ class ModMenuState extends MusicBeatState
2324
public static var existMods:Array<String> = []; // mods polymod detected in the folder
2425

2526
private var button:Button; // remove 1 mod
26-
private var saveMods:Button; // save to file
27-
private var bg:FlxSprite;
28-
private var icons:FlxSpriteGroup; // modmenuicons
27+
private var saveMods:Button; // save to file
28+
private var bg:FlxSprite;
29+
private var icons:FlxSpriteGroup; // modmenuicons
2930

3031
override function create()
3132
{
@@ -50,22 +51,22 @@ class ModMenuState extends MusicBeatState
5051
function createHUI()
5152
{
5253
button = new Button();
53-
button.x += 400;
54+
button.x += 400;
5455
button.text = "Mods";
5556
button.onClick = function(e)
5657
{
5758
eList.pop();
58-
Debug.logTrace(eList.length);
59+
Debug.logTrace(eList.length);
5960
}
6061
saveMods = new Button();
6162
saveMods.x += 500;
6263
saveMods.text = "Save Mods";
6364
saveMods.onClick = function(e)
64-
{
65-
var fileStr = '';
65+
{
66+
var fileStr = '';
6667
for (mod in eList)
6768
{
68-
mod.trim();
69+
mod.trim();
6970
if (fileStr.length > 0)
7071
fileStr += '\n';
7172

@@ -77,31 +78,31 @@ class ModMenuState extends MusicBeatState
7778
File.saveContent('assets/shared/data/modList.txt', fileStr);
7879
#end
7980
Debug.logTrace(eList.length);
80-
}
81+
}
8182
add(button);
82-
add(saveMods);
83+
add(saveMods);
8384
}
8485

85-
function createMUI()
86-
{
87-
icons = new FlxSpriteGroup();
86+
function createMUI()
87+
{
88+
icons = new FlxSpriteGroup();
8889
bg = new FlxSprite().loadGraphic(Paths.image('menuBGBlue'));
8990
bg.setGraphicSize(Std.int(bg.width * 1.175));
9091
bg.updateHitbox();
9192
bg.screenCenter();
92-
add(bg);
93+
add(bg);
9394

9495
for (i in 0...existMods.length)
95-
{
96+
{
9697
var modIcon:FlxSprite = new FlxSprite().loadGraphic(Paths.image('missingMod'));
97-
modIcon.setGraphicSize(Std.int(modIcon.width * 0.25));
98+
modIcon.setGraphicSize(Std.int(modIcon.width * 0.25));
9899
modIcon.updateHitbox();
99-
modIcon.setPosition(50, 25);
100-
modIcon.y += 200 * i;
100+
modIcon.setPosition(50, 25);
101+
modIcon.y += 200 * i;
101102
icons.add(modIcon);
102-
}
103-
add(icons);
104-
}
103+
}
104+
add(icons);
105+
}
105106

106107
public static function parseList()
107108
{
@@ -127,4 +128,4 @@ class ModMenuState extends MusicBeatState
127128
return list;
128129
}
129130
}
130-
#end
131+
#end

source/kec/states/OptionsDirect.hx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package kec.states;
2+
23
import flixel.addons.transition.FlxTransitionableState;
34
import kec.backend.util.NoteStyleHelper;
45

0 commit comments

Comments
 (0)