EditorPlayState
| Kind | class |
| Package | editors |
| Full name | editors.EditorPlayState |
| Source | source/editors/EditorPlayState.hx |
| Extends | MusicBeatState |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
strumLineNotes | FlxTypedGroup<StrumNote> | no | — | Yes, this is mostly a copy of PlayState, it's kinda dumb to make a direct copy of it but... ehhh |
opponentStrums | FlxTypedGroup<StrumNote> | no | — | — |
playerStrums | FlxTypedGroup<StrumNote> | no | — | — |
grpHoldSplashes | FlxTypedGroup<SustainSplash> | no | — | — |
grpNoteSplashes | FlxTypedGroup<NoteSplash> | no | — | — |
sustainNotes | FlxTypedGroup<Note> | no | — | — |
notes | FlxTypedGroup<Note> | no | — | — |
killNotes | Array<Note> | no | [] | — |
unspawnNotes | Array<PreloadedChartNote> | no | [] | — |
instance | EditorPlayState | yes | — | — |
cpuControlled | Bool | yes | false | — |
noteKillOffset | Float | no | 350 | — |
spawnTime | Float | no | 2000 | — |
notesAddedCount | Int | no | 0 | — |
Public methods
new (constructor)
function new(startPos:Float)
| Parameter | Type | Default |
|---|---|---|
startPos | Float | — |
onResize
override function onResize(width:Int, height:Int):Void
| Parameter | Type | Default |
|---|---|---|
width | Int | — |
height | Int | — |
onFocus
override function onFocus():Void
onFocusLost
override function onFocusLost():Void
invalidateNote
function invalidateNote(note:Note):Void
| Parameter | Type | Default |
|---|---|---|
note | Note | — |
destroyNotes
function destroyNotes():Void
spawnHoldSplashOnNote
function spawnHoldSplashOnNote(note:Note, isDad:Bool = false)
| Parameter | Type | Default |
|---|---|---|
note | Note | — |
isDad (optional) | Bool | false |
spawnHoldSplash
function spawnHoldSplash(note:Note)
| Parameter | Type | Default |
|---|---|---|
note | Note | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
generatedMusic | Bool | no |
vocals | FlxSound | no |
opponentVocals | FlxSound | no |
inst | FlxSound | no |
startOffset | Float | no |
startPos | Float | no |
pixelRatingPrefix | String | no |
pixelRatingSuffix | String | no |
scoreTxt | FlxText | no |
stepTxt | FlxText | no |
beatTxt | FlxText | no |
sectionTxt | FlxText | no |
botplayTxt | FlxText | no |
timerToStart | Float | no |
keysArray | Array<Dynamic> | no |
layoutWidth | Int | no |
background | FlxSprite | no |
tipText | FlxText | no |
songHits | Int | no |
songMisses | Int | no |
startingSong | Bool | no |
combo | Int | no |
COMBO_X | Float | no |
COMBO_Y | Float | no |
| 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() |