Skip to main content

ChartingState

Kindclass
Packageeditors
Full nameeditors.ChartingState
Sourcesource/editors/ChartingState.hx
ExtendsMusicBeatState

Public fields​

NameTypeStaticDefaultNotes
noteTypeListArray<String>yes——
ignoreWarnings—nofalse—
showTheGrid—nofalse—
undos—no[]—
redos—no[]—
goToPlayStateBoolyesfalse—
curSecIntyes0Array of notes showing when each section STARTS in STEPS Usually rounded up??
lastSectionIntyes0—
GRID_SIZEIntyes40—
quantizationIntyes16—
curQuant—yes3—
quantizationsArray<Int>no[4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 192, 384, 768]—
idleMusicAllowBoolyesfalse—
unsavedChangesBoolyesfalse—
vortexBoolyesfalse—
mouseQuantBoolnofalse—
hitsoundVolFloatno1—
autoSaveLengthIntno240—

Public methods​

rebuildBPMMap​

function rebuildBPMMap():Void

Rebuilds the conductor timeline after a chart's BPM or section length changes.

View source

doANoteThing​

function doANoteThing(cs, d, style)

REFACTOR: delegated to editors.charting.ChartingEvents

ParameterTypeDefault
csDynamic—
dDynamic—
styleDynamic—

View source

saveUndo​

function saveUndo(songData:SwagSong)

REFACTOR: delegated to editors.charting.ChartingSaveLoad

ParameterTypeDefault
songDataSwagSong—

View source

undo​

function undo()

REFACTOR: delegated to editors.charting.ChartingSaveLoad

View source

onFocusLost​

override function onFocusLost():Void

View source

onFocus​

override function onFocus():Void

View source

destroy​

override function destroy():Void

View source

Internals​

Private / internal members
FieldTypeStatic
noteTypeIntMapMap<Int, String>no
noteTypeMapMap<String, Null<Int>>no
lastUndoDataStringno
eventStuffArray<Dynamic>no
_fileFileReferenceno
UI_boxFlxUITabMenuno
lastSongStringyes
difficultyStringno
specialAudioNameStringno
specialEventsNameStringno
bpmTxtFlxTextno
songSliderFlxUISliderno
camPosFlxObjectno
strumLineFlxSpriteno
quantAttachedSpriteno
strumLineNotesFlxTypedGroup<StrumNote>no
curSongStringno
amountStepsIntno
chartingUiFlxGroupno
highlightFlxSpriteno
CAM_OFFSETIntno
selectionNoteSelectionNoteno
selectionEventFlxSpriteno
curRenderedSustainsFlxTypedGroup<FlxSprite>no
curRenderedNotesFlxTypedGroup<Note>no
curRenderedNoteTypeFlxTypedGroup<AttachedFlxText>no
curRenderedEventTextFlxTypedGroup<AttachedFlxText>no
nextRenderedSustainsFlxTypedGroup<FlxSprite>no
nextRenderedNotesFlxTypedGroup<Note>no
gridBGFlxSpriteno
nextGridBGFlxSpriteno
daquantspot—no
curEventSelectedIntno
curUndoIndex—no
curRedoIndex—no
_songSwagSongno
curSelectedNoteArray<Dynamic>no
playbackSpeedFloatno
vocalsFlxSoundno
opponentVocalsFlxSoundno
idleMusicEditingMusicno
leftIconHealthIconno
rightIconHealthIconno
lilStageFlxSpriteno
lilBfFlxSpriteno
lilOppFlxSpriteno
value1InputTextFlxUIInputTextno
value2InputTextFlxUIInputTextno
currentSongNameStringno
autosaveIndicatorFlxSpriteno
hitsoundFlxSoundno
zoomTxtFlxTextno
zoomListArray<Float>no
curZoomIntno
blockPressWhileTypingOnArray<FlxUIInputText>no
blockPressWhileTypingOnStepperArray<FlxUINumericStepper>no
blockPressWhileScrollingArray<FlxUIDropDownMenuCustom>no
waveformSpriteFlxSpriteno
gridLayerFlxTypedGroup<FlxSprite>no
textStringno
autoSaveTimerFlxTimerno
check_mute_instFlxUICheckBoxno
check_mute_vocalsFlxUICheckBoxno
check_mute_vocals_opponentFlxUICheckBoxno
check_vortexFlxUICheckBoxno
check_showGridFlxUICheckBoxno
check_warningsFlxUICheckBoxno
playSoundBfFlxUICheckBoxno
playSoundDadFlxUICheckBoxno
UI_songTitleFlxUIInputTextno
UI_songDiffFlxUIInputTextno
UI_specAudioFlxUIInputTextno
UI_specEventsFlxUIInputTextno
noteSkinInputTextFlxUIInputTextno
noteSplashesInputTextFlxUIInputTextno
stageDropDownFlxUIDropDownMenuCustomno
sliderRateFlxUISliderno
gameOverCharacterInputTextFlxUIInputTextno
gameOverSoundInputTextFlxUIInputTextno
gameOverLoopInputTextFlxUIInputTextno
gameOverEndInputTextFlxUIInputTextno
creditInputTextFlxUIInputTextno
creditPathInputTextFlxUIInputTextno
creditIconInputTextFlxUIInputTextno
winNameInputTextFlxUIInputTextno
stepperBeatsFlxUINumericStepperno
check_mustHitSectionFlxUICheckBoxno
check_gfSectionFlxUICheckBoxno
check_changeBPMFlxUICheckBoxno
stepperSectionBPMFlxUINumericStepperno
check_altAnimFlxUICheckBoxno
check_crossFadeFlxUICheckBoxno
sectionToCopyIntno
notesCopiedArray<Dynamic>no
CopyLastSectionCountFlxUINumericStepperno
CopyFutureSectionCountFlxUINumericStepperno
CopyLoopCountFlxUINumericStepperno
copyMultiSectButtonFlxButtonno
deleteSecStartFlxUINumericStepperno
deleteSecEndFlxUINumericStepperno
deleteSectionsFlxButtonno
stepperSusLengthFlxUINumericStepperno
strumTimeInputTextFlxUIInputTextno
noteTypeDropDownFlxUIDropDownMenuCustomno
currentTypeIntno
check_stackActiveFlxUICheckBoxno
stepperStackNumFlxUINumericStepperno
stepperStackOffsetFlxUINumericStepperno
stepperStackSideOffsetFlxUINumericStepperno
stepperShrinkAmountFlxUINumericStepperno
eventDropDownFlxUIDropDownMenuCustomno
descTextFlxTextno
selectedEventTextFlxTextno
event7DropDownFlxUIDropDownMenuCustomno
event7InputTextFlxUIInputTextno
metronomeFlxUICheckBoxno
mouseScrollingQuantFlxUICheckBoxno
metronomeStepperFlxUINumericStepperno
metronomeOffsetStepperFlxUINumericStepperno
disableAutoScrollingFlxUICheckBoxno
lilBuddiesBoxFlxUICheckBoxno
saveUndoCheckFlxUICheckBoxno
soundEffectsCheckFlxUICheckBoxno
idleMusicCheckFlxUICheckBoxno
instVolumeFlxUINumericStepperno
voicesVolumeFlxUINumericStepperno
voicesOppVolumeFlxUINumericStepperno
hitsoundVolumeFlxUINumericStepperno
updatedSectionBoolno
lastConductorPosFloatno
colorSineFloatno
lastSecBeatsFloatno
lastSecBeatsNextFloatno
lastGridZoomIntno
lastGridBeatsFloatno
lastGridBeatsNextFloatno
lastGridShowBoolno
lastGridVortexBoolno
lastGridHasNextBoolno
lastGridBGHeightIntno
waveformPrintedBoolno
wavDataArray<Array<Array<Float>>>no
lastWaveformHeightIntno
waveformCacheSoundFlxSoundno
waveformCacheBufferAudioBufferno
waveformCacheBytesBytesno
characterDataDynamicno
characterFailedBoolno
Method
override function create()
function setupMobilePad():Void
function mobilePadJumpSection(amount:Int):Void
function mobilePadScrub(backward:Bool):Void
function mobilePadQuant(previous:Bool):Void
function mobilePadNextSection():Void
function mobilePadPrevSection():Void
function mobilePadTogglePlayback():Void
function mobilePadPlayTest():Void
function mobilePadEditorPlayTest():Void
function mobilePadExit():Void
function addSongUI():Void
function songJsonPopup()
function promptBackup()
function addSongDataUI():Void // therell be more added here later
function addSectionUI():Void
function addNoteUI():Void
function addNoteStackingUI():Void
function addEventsUI():Void
function changeEventSelected(change:Int = 0)
function setAllLabelsOffset(button:FlxButton, x:Float, y:Float)
function addChartingUI()
function pauseVocals()
function pauseAndSetVocalsTime()
function loadSong():Void
function generateSong(diff:String = '')
function generateUI():Void
override function getEvent(id:String, sender:Dynamic, data:Dynamic, ?params:Array<Dynamic>)
function sectionStartTime(add:Int = 0):Float
function sectionStartTimeAt(section:Int):Float
function sectionIndexAtTime(time:Float):Int
function beatToSeconds(beat:Float):Float
override function update(elapsed:Float)
function resetBuddies()
function updateZoom()
function reloadGridLayer()
function strumLineUpdateY()
function updateWaveform()
function waveformData(buffer:AudioBuffer, bytes:Bytes, time:Float, endTime:Float, multiply:Float = 1, ?array:Array<Array<Array<Float>>>, ?steps:Float):Array<Array<Array<Float>>>
function changeNoteSustain(value:Float):Void
override function updateCurStep():Void
function recalculateSteps(add:Float = 0):Int
function resetSection(songBeginning:Bool = false):Void
function changeSection(sec:Int = 0, updateMusic:Bool = true, updateTheGridBITCH:Bool = true):Void
function updateSectionUI():Void
function updateJsonData():Void
function updateHeads():Void
function loadCharacterFile(char:String):CharacterFile
function updateNoteUI():Void
function updateGrid(andNext:Bool = true, onlyEvents:Bool = false):Void
function setupNoteData(i:Array<Dynamic>, isNextSection:Bool):Note
function getEventName(names:Array<Dynamic>):String
function setupSusNote(note:Note, section:Int):FlxSprite
function addSection(sectionBeats:Float = 4):Void
function selectNote(note:Note, updateTheGrid:Bool = true):Void
function deleteNote(note:Note, usingVortex:Bool = false):Void
function clearSong():Void
function addNote(strum:Null<Float> = null, data:Null<Int> = null, type:Null<Int> = null, gridUpdate:Bool = true):Void
function redo()
function getStrumTime(yPos:Float):Float
function getYfromStrum(strumTime:Float):Float
function getYfromStrumNotes(strumTime:Float, beats:Float, section:Int, sectionTop:Float):Float
function getNotes():Array<Dynamic>
function loadJson(song:String, diff:String = ''):Void
function clearEvents()
function saveLevel(compressed:Bool = false, isAuto:Bool = false)
function sortByTime(Obj1:Array<Dynamic>, Obj2:Array<Dynamic>):Int
function saveEvents()
function onSaveComplete(_):Void
function onSaveCancel(_):Void
function onSaveError(_):Void
function getSectionBeats(section:Null<Int> = null)