Remove more traces from classes.
This commit is contained in:
@@ -411,7 +411,6 @@ class InitState extends FlxState
|
||||
function startGameNormally():Void
|
||||
{
|
||||
var params:CLIParams = CLIUtil.processArgs();
|
||||
trace('Command line args: ${params}');
|
||||
|
||||
if (params.chart.shouldLoadChart)
|
||||
{
|
||||
|
||||
@@ -98,7 +98,7 @@ class PlayerSettings
|
||||
*/
|
||||
function new(id:Int)
|
||||
{
|
||||
trace('loading player settings for id: $id');
|
||||
trace('Loading player settings for id: $id');
|
||||
|
||||
this.id = id;
|
||||
this.controls = new Controls('player$id', None);
|
||||
|
||||
@@ -768,8 +768,6 @@ class PlayState extends MusicBeatSubState
|
||||
previousCameraFollowPoint = params.cameraFollowPoint;
|
||||
mirrorSongData = params.mirrored ?? false;
|
||||
|
||||
trace("Params: " + mirrorSongData + ", " + isBotPlayMode);
|
||||
|
||||
// Basic object initialization
|
||||
|
||||
// TODO: Add something to toggle this on!
|
||||
@@ -2625,7 +2623,6 @@ class PlayState extends MusicBeatSubState
|
||||
|
||||
if (vocals != null)
|
||||
{
|
||||
trace('Playing vocals...');
|
||||
add(vocals);
|
||||
|
||||
vocals.time = startTimestamp - Conductor.instance.instrumentalOffset;
|
||||
|
||||
@@ -31,8 +31,6 @@ class SaveProperty<T>
|
||||
|
||||
if (_autoFlush) Save.system.flush();
|
||||
|
||||
trace('[Save Property]: Changing value of $oldValue TO $newValue');
|
||||
|
||||
onChange.dispatch(newValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -93,10 +93,7 @@ class DebugBoundingState extends FlxState
|
||||
var viewDropdown:DropDown = offsetEditorDialog.findComponent("swapper", DropDown);
|
||||
viewDropdown.onChange = function(e:UIEvent)
|
||||
{
|
||||
trace(e.type);
|
||||
curView = cast e?.data?.curView;
|
||||
trace(e.data);
|
||||
// trace(e.data);
|
||||
};
|
||||
|
||||
offsetAnimationDropdown = offsetEditorDialog.findComponent("animationDropdown", DropDown);
|
||||
@@ -568,21 +565,18 @@ class DebugBoundingState extends FlxState
|
||||
for (i in swagChar.animationOffsets.keys())
|
||||
{
|
||||
characterAnimNames.push(i);
|
||||
trace(i);
|
||||
trace(swagChar.animationOffsets[i]);
|
||||
}
|
||||
|
||||
offsetAnimationDropdown.dataSource.clear();
|
||||
|
||||
for (charAnim in characterAnimNames)
|
||||
{
|
||||
trace('Adding ${charAnim} to HaxeUI dropdown');
|
||||
offsetAnimationDropdown.dataSource.add({id: charAnim, text: charAnim});
|
||||
}
|
||||
|
||||
offsetAnimationDropdown.selectedIndex = 0;
|
||||
|
||||
trace('Added ${offsetAnimationDropdown.dataSource.size} to HaxeUI dropdown');
|
||||
trace('Added ${offsetAnimationDropdown.dataSource.size} animations to HaxeUI dropdown');
|
||||
|
||||
offsetAnimationDropdown.onChange = function(event:UIEvent)
|
||||
{
|
||||
@@ -607,7 +601,6 @@ class DebugBoundingState extends FlxState
|
||||
// var animName = characterAnimNames[Std.parseInt(str)];
|
||||
var animName = str;
|
||||
swagChar.playAnimation(animName, true); // trace();
|
||||
trace(swagChar.animationOffsets.get(animName));
|
||||
|
||||
txtOffsetShit.text = 'Offset: ' + swagChar.animOffsets;
|
||||
txtOffsetShit.y = FlxG.height - 20 - txtOffsetShit.height;
|
||||
|
||||
@@ -2533,18 +2533,12 @@ class FreeplayState extends MusicBeatSubState
|
||||
*/
|
||||
function capsuleOnOpenRandom(randomCapsule:SongMenuItem):Void
|
||||
{
|
||||
trace('RANDOM SELECTED');
|
||||
|
||||
var availableSongCapsules:Array<SongMenuItem> = grpCapsules.members.filter(function(cap:SongMenuItem)
|
||||
{
|
||||
// Dead capsules are ones which were removed from the list when changing filters.
|
||||
return cap.alive && cap.freeplayData != null;
|
||||
});
|
||||
|
||||
trace('Available songs: ${availableSongCapsules.map(function(cap) {
|
||||
return cap?.freeplayData?.data.songName;
|
||||
})}');
|
||||
|
||||
if (availableSongCapsules.length == 0)
|
||||
{
|
||||
trace('No songs available!');
|
||||
@@ -2641,7 +2635,6 @@ class FreeplayState extends MusicBeatSubState
|
||||
return;
|
||||
}
|
||||
var targetSong:Song = targetSongNullable;
|
||||
trace('target song: ${targetSongId} (${targetVariation})');
|
||||
var targetLevelId:Null<String> = cap?.freeplayData?.levelId;
|
||||
PlayStatePlaylist.campaignId = targetLevelId ?? null;
|
||||
|
||||
@@ -2724,8 +2717,6 @@ class FreeplayState extends MusicBeatSubState
|
||||
var targetSong:Song = targetSongNullable;
|
||||
var targetLevelId:Null<String> = cap?.freeplayData?.levelId;
|
||||
|
||||
trace('target song: ${targetSongId} (${targetVariation})');
|
||||
|
||||
PlayStatePlaylist.campaignId = targetLevelId ?? null;
|
||||
|
||||
var targetDifficulty:Null<SongDifficulty> = targetSong.getDifficulty(currentDifficulty, currentVariation);
|
||||
|
||||
@@ -49,7 +49,7 @@ class AnimateAtlasFreeplayDJ extends BaseFreeplayDJ
|
||||
FlxAnimationUtil.addTextureAtlasAnimations(this, playableCharData.getAnimationsList());
|
||||
|
||||
var animationNames:Array<String> = this.animation.getNameList();
|
||||
log('[ATLASDJ] Successfully loaded ${animationNames.length} animations for ${characterId}');
|
||||
log('Successfully loaded ${animationNames.length} animations for ${characterId}');
|
||||
}
|
||||
|
||||
public override function update(elapsed:Float):Void
|
||||
|
||||
@@ -626,7 +626,6 @@ class MainMenuState extends MusicBeatState
|
||||
|
||||
function goBack():Void
|
||||
{
|
||||
trace("BACK: Interact complete.");
|
||||
uiStateMachine.transition(Exiting);
|
||||
rememberedSelectedIndex = menuItems?.selectedIndex ?? 0;
|
||||
FunkinSound.playOnce(Paths.sound('cancelMenu'));
|
||||
|
||||
@@ -443,7 +443,6 @@ class ControlsMenu extends Page<OptionsState.OptionsMenuPageName>
|
||||
// Shift left on the grid if the item on the right is bound and the item on the left is unbound.
|
||||
if (controlGrid.selectedIndex % 2 == 1)
|
||||
{
|
||||
trace('Modified item on right side of grid');
|
||||
if (leftItem != null && input != FlxKey.NONE && leftItem.input == FlxKey.NONE)
|
||||
{
|
||||
trace('Left item is unbound and right item is not!');
|
||||
@@ -458,7 +457,6 @@ class ControlsMenu extends Page<OptionsState.OptionsMenuPageName>
|
||||
}
|
||||
else
|
||||
{
|
||||
trace('Modified item on left side of grid');
|
||||
if (rightItem != null && input == FlxKey.NONE && rightItem.input != FlxKey.NONE)
|
||||
{
|
||||
trace('Left item is unbound and right item is not!');
|
||||
|
||||
Reference in New Issue
Block a user