Skip to main content

EditorPlayState

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

Public fields​

NameTypeStaticDefaultNotes
strumLineNotesFlxTypedGroup<StrumNote>no—Yes, this is mostly a copy of PlayState, it's kinda dumb to make a direct copy of it but... ehhh
opponentStrumsFlxTypedGroup<StrumNote>no——
playerStrumsFlxTypedGroup<StrumNote>no——
grpHoldSplashesFlxTypedGroup<SustainSplash>no——
grpNoteSplashesFlxTypedGroup<NoteSplash>no——
sustainNotesFlxTypedGroup<Note>no——
notesFlxTypedGroup<Note>no——
killNotesArray<Note>no[]—
unspawnNotesArray<PreloadedChartNote>no[]—
instanceEditorPlayStateyes——
cpuControlledBoolyesfalse—
noteKillOffsetFloatno350—
spawnTimeFloatno2000—
notesAddedCountIntno0—

Public methods​

new (constructor)​

function new(startPos:Float)
ParameterTypeDefault
startPosFloat—

View source

onResize​

override function onResize(width:Int, height:Int):Void
ParameterTypeDefault
widthInt—
heightInt—

View source

onFocus​

override function onFocus():Void

View source

onFocusLost​

override function onFocusLost():Void

View source

invalidateNote​

function invalidateNote(note:Note):Void
ParameterTypeDefault
noteNote—

View source

destroyNotes​

function destroyNotes():Void

View source

spawnHoldSplashOnNote​

function spawnHoldSplashOnNote(note:Note, isDad:Bool = false)
ParameterTypeDefault
noteNote—
isDad (optional)Boolfalse

View source

spawnHoldSplash​

function spawnHoldSplash(note:Note)
ParameterTypeDefault
noteNote—

View source

Internals​

Private / internal members
FieldTypeStatic
generatedMusicBoolno
vocalsFlxSoundno
opponentVocalsFlxSoundno
instFlxSoundno
startOffsetFloatno
startPosFloatno
pixelRatingPrefixStringno
pixelRatingSuffixStringno
scoreTxtFlxTextno
stepTxtFlxTextno
beatTxtFlxTextno
sectionTxtFlxTextno
botplayTxtFlxTextno
timerToStartFloatno
keysArrayArray<Dynamic>no
layoutWidthIntno
backgroundFlxSpriteno
tipTextFlxTextno
songHitsIntno
songMissesIntno
startingSongBoolno
comboIntno
COMBO_XFloatno
COMBO_YFloatno
Method
override function create()
function generateSong(startingPoint:Float = 0):Void
function startSong():Void
function sortNotesByTime(Obj1:Note, Obj2:Note):Int
function endSong()
override function update(elapsed:Float)
override function beatHit()
override function stepHit()
function resyncVocals():Void
function onKeyPress(event:KeyboardEvent):Void
function sortHitNotes(a:Note, b:Note):Int
function onKeyRelease(event:KeyboardEvent):Void
function getKeyFromEvent(key:FlxKey):Int
function handleKeyInput():Void
function updateNote(daNote:Note):Void
function goodNoteHit(?note:Note):Void
function noteMiss():Void
function calculateResetTime(sustainNote:Bool = false):Float
function cachePopUpScore()
function popUpScore(note:Note = null):Void
function generateStaticArrows(player:Int):Void
function StrumPlayAnim(isDad:Bool, id:Int, time:Float)
function spawnNoteSplashOnNote(note:Note)
function spawnNoteSplash(x:Float, y:Float, data:Int, note:Note = null)
function loadCharacterFile(char:String):CharacterFile
override function destroy()