ChartingState
| Kind | class |
| Package | editors |
| Full name | editors.ChartingState |
| Source | source/editors/ChartingState.hx |
| Extends | MusicBeatState |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
noteTypeList | Array<String> | yes | — | — |
ignoreWarnings | — | no | false | — |
showTheGrid | — | no | false | — |
undos | — | no | [] | — |
redos | — | no | [] | — |
goToPlayState | Bool | yes | false | — |
curSec | Int | yes | 0 | Array of notes showing when each section STARTS in STEPS Usually rounded up?? |
lastSection | Int | yes | 0 | — |
GRID_SIZE | Int | yes | 40 | — |
quantization | Int | yes | 16 | — |
curQuant | — | yes | 3 | — |
quantizations | Array<Int> | no | [4, 8, 12, 16, 20, 24, 32, 48, 64, 96, 192, 384, 768] | — |
idleMusicAllow | Bool | yes | false | — |
unsavedChanges | Bool | yes | false | — |
vortex | Bool | yes | false | — |
mouseQuant | Bool | no | false | — |
hitsoundVol | Float | no | 1 | — |
autoSaveLength | Int | no | 240 | — |
Public methods
rebuildBPMMap
function rebuildBPMMap():Void
Rebuilds the conductor timeline after a chart's BPM or section length changes.
doANoteThing
function doANoteThing(cs, d, style)
REFACTOR: delegated to editors.charting.ChartingEvents
| Parameter | Type | Default |
|---|---|---|
cs | Dynamic | — |
d | Dynamic | — |
style | Dynamic | — |
saveUndo
function saveUndo(songData:SwagSong)
REFACTOR: delegated to editors.charting.ChartingSaveLoad
| Parameter | Type | Default |
|---|---|---|
songData | SwagSong | — |
undo
function undo()
REFACTOR: delegated to editors.charting.ChartingSaveLoad
onFocusLost
override function onFocusLost():Void
onFocus
override function onFocus():Void
destroy
override function destroy():Void
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
noteTypeIntMap | Map<Int, String> | no |
noteTypeMap | Map<String, Null<Int>> | no |
lastUndoData | String | no |
eventStuff | Array<Dynamic> | no |
_file | FileReference | no |
UI_box | FlxUITabMenu | no |
lastSong | String | yes |
difficulty | String | no |
specialAudioName | String | no |
specialEventsName | String | no |
bpmTxt | FlxText | no |
songSlider | FlxUISlider | no |
camPos | FlxObject | no |
strumLine | FlxSprite | no |
quant | AttachedSprite | no |
strumLineNotes | FlxTypedGroup<StrumNote> | no |
curSong | String | no |
amountSteps | Int | no |
chartingUi | FlxGroup | no |
highlight | FlxSprite | no |
CAM_OFFSET | Int | no |
selectionNote | SelectionNote | no |
selectionEvent | FlxSprite | no |
curRenderedSustains | FlxTypedGroup<FlxSprite> | no |
curRenderedNotes | FlxTypedGroup<Note> | no |
curRenderedNoteType | FlxTypedGroup<AttachedFlxText> | no |
curRenderedEventText | FlxTypedGroup<AttachedFlxText> | no |
nextRenderedSustains | FlxTypedGroup<FlxSprite> | no |
nextRenderedNotes | FlxTypedGroup<Note> | no |
gridBG | FlxSprite | no |
nextGridBG | FlxSprite | no |
daquantspot | — | no |
curEventSelected | Int | no |
curUndoIndex | — | no |
curRedoIndex | — | no |
_song | SwagSong | no |
curSelectedNote | Array<Dynamic> | no |
playbackSpeed | Float | no |
vocals | FlxSound | no |
opponentVocals | FlxSound | no |
idleMusic | EditingMusic | no |
leftIcon | HealthIcon | no |
rightIcon | HealthIcon | no |
lilStage | FlxSprite | no |
lilBf | FlxSprite | no |
lilOpp | FlxSprite | no |
value1InputText | FlxUIInputText | no |
value2InputText | FlxUIInputText | no |
currentSongName | String | no |
autosaveIndicator | FlxSprite | no |
hitsound | FlxSound | no |
zoomTxt | FlxText | no |
zoomList | Array<Float> | no |
curZoom | Int | no |
blockPressWhileTypingOn | Array<FlxUIInputText> | no |
blockPressWhileTypingOnStepper | Array<FlxUINumericStepper> | no |
blockPressWhileScrolling | Array<FlxUIDropDownMenuCustom> | no |
waveformSprite | FlxSprite | no |
gridLayer | FlxTypedGroup<FlxSprite> | no |
text | String | no |
autoSaveTimer | FlxTimer | no |
check_mute_inst | FlxUICheckBox | no |
check_mute_vocals | FlxUICheckBox | no |
check_mute_vocals_opponent | FlxUICheckBox | no |
check_vortex | FlxUICheckBox | no |
check_showGrid | FlxUICheckBox | no |
check_warnings | FlxUICheckBox | no |
playSoundBf | FlxUICheckBox | no |
playSoundDad | FlxUICheckBox | no |
UI_songTitle | FlxUIInputText | no |
UI_songDiff | FlxUIInputText | no |
UI_specAudio | FlxUIInputText | no |
UI_specEvents | FlxUIInputText | no |
noteSkinInputText | FlxUIInputText | no |
noteSplashesInputText | FlxUIInputText | no |
stageDropDown | FlxUIDropDownMenuCustom | no |
sliderRate | FlxUISlider | no |
gameOverCharacterInputText | FlxUIInputText | no |
gameOverSoundInputText | FlxUIInputText | no |
gameOverLoopInputText | FlxUIInputText | no |
gameOverEndInputText | FlxUIInputText | no |
creditInputText | FlxUIInputText | no |
creditPathInputText | FlxUIInputText | no |
creditIconInputText | FlxUIInputText | no |
winNameInputText | FlxUIInputText | no |
stepperBeats | FlxUINumericStepper | no |
check_mustHitSection | FlxUICheckBox | no |
check_gfSection | FlxUICheckBox | no |
check_changeBPM | FlxUICheckBox | no |
stepperSectionBPM | FlxUINumericStepper | no |
check_altAnim | FlxUICheckBox | no |
check_crossFade | FlxUICheckBox | no |
sectionToCopy | Int | no |
notesCopied | Array<Dynamic> | no |
CopyLastSectionCount | FlxUINumericStepper | no |
CopyFutureSectionCount | FlxUINumericStepper | no |
CopyLoopCount | FlxUINumericStepper | no |
copyMultiSectButton | FlxButton | no |
deleteSecStart | FlxUINumericStepper | no |
deleteSecEnd | FlxUINumericStepper | no |
deleteSections | FlxButton | no |
stepperSusLength | FlxUINumericStepper | no |
strumTimeInputText | FlxUIInputText | no |
noteTypeDropDown | FlxUIDropDownMenuCustom | no |
currentType | Int | no |
check_stackActive | FlxUICheckBox | no |
stepperStackNum | FlxUINumericStepper | no |
stepperStackOffset | FlxUINumericStepper | no |
stepperStackSideOffset | FlxUINumericStepper | no |
stepperShrinkAmount | FlxUINumericStepper | no |
eventDropDown | FlxUIDropDownMenuCustom | no |
descText | FlxText | no |
selectedEventText | FlxText | no |
event7DropDown | FlxUIDropDownMenuCustom | no |
event7InputText | FlxUIInputText | no |
metronome | FlxUICheckBox | no |
mouseScrollingQuant | FlxUICheckBox | no |
metronomeStepper | FlxUINumericStepper | no |
metronomeOffsetStepper | FlxUINumericStepper | no |
disableAutoScrolling | FlxUICheckBox | no |
lilBuddiesBox | FlxUICheckBox | no |
saveUndoCheck | FlxUICheckBox | no |
soundEffectsCheck | FlxUICheckBox | no |
idleMusicCheck | FlxUICheckBox | no |
instVolume | FlxUINumericStepper | no |
voicesVolume | FlxUINumericStepper | no |
voicesOppVolume | FlxUINumericStepper | no |
hitsoundVolume | FlxUINumericStepper | no |
updatedSection | Bool | no |
lastConductorPos | Float | no |
colorSine | Float | no |
lastSecBeats | Float | no |
lastSecBeatsNext | Float | no |
lastGridZoom | Int | no |
lastGridBeats | Float | no |
lastGridBeatsNext | Float | no |
lastGridShow | Bool | no |
lastGridVortex | Bool | no |
lastGridHasNext | Bool | no |
lastGridBGHeight | Int | no |
waveformPrinted | Bool | no |
wavData | Array<Array<Array<Float>>> | no |
lastWaveformHeight | Int | no |
waveformCacheSound | FlxSound | no |
waveformCacheBuffer | AudioBuffer | no |
waveformCacheBytes | Bytes | no |
characterData | Dynamic | no |
characterFailed | Bool | no |
| 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) |