CharacterEditorState
| Kind | class |
| Package | editors |
| Full name | editors.CharacterEditorState |
| Source | source/editors/CharacterEditorState.hx |
| Extends | MusicBeatState |
DEBUG MODE
Public methods
new (constructor)
function new(_char:String = 'spooky', goToPlayState:Bool = true)
| Parameter | Type | Default |
|---|---|---|
_char (optional) | String | 'spooky' |
goToPlayState (optional) | Bool | true |
onFocusLost
override function onFocusLost():Void
onFocus
override function onFocus():Void
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
music | EditingMusic | no |
char | Character | no |
ghostChar | Character | no |
animateGhost | FlxAnimate | no |
animateGhostImage | String | no |
bgLayer | FlxTypedGroup<FlxSprite> | no |
charLayer | FlxTypedGroup<Character> | no |
ghostLayer | FlxTypedGroup<FlxSprite> | no |
animsTxt | FlxText | no |
frameAdvanceText | FlxText | no |
animList | Array<Dynamic> | no |
curAnim | Int | no |
_char | String | no |
goToPlayState | Bool | no |
camFollow | FlxObject | no |
lastSaved | Int | no |
isDirty | Bool | no |
currentCharacter | Character | no |
savedFile | Dynamic | no |
checkifChanged | Array<CharacterChange> | no |
helpBg | FlxSprite | no |
helpTexts | FlxSpriteGroup | no |
UI_box | FlxUITabMenu | no |
UI_characterbox | FlxUITabMenu | no |
selectedFormat | FlxTextFormat | no |
camEditor | FlxCamera | no |
camHUD | FlxCamera | no |
camMenu | FlxCamera | no |
changeBGbutton | FlxButton | no |
leHealthIcon | HealthIcon | no |
characterList | Array<String> | no |
cameraFollowPointer | FlxSprite | no |
healthBarBG | FlxSprite | no |
barToUse | Int | no |
onPixelBG | Bool | no |
OFFSET_X | Float | no |
TemplateCharacter | String | no |
ghostAlpha | Float | no |
charDropDown | FlxUIDropDownMenuCustom | no |
check_player | FlxUICheckBox | no |
changeBar | Bool | no |
imageInputText | FlxUIInputText | no |
noteskinText | FlxUIInputText | no |
healthIconInputText | FlxUIInputText | no |
vocalsInputText | FlxUIInputText | no |
singDurationStepper | FlxUINumericStepper | no |
scaleStepper | FlxUINumericStepper | no |
positionXStepper | FlxUINumericStepper | no |
positionYStepper | FlxUINumericStepper | no |
positionCameraXStepper | FlxUINumericStepper | no |
positionCameraYStepper | FlxUINumericStepper | no |
flipXCheckBox | FlxUICheckBox | no |
noAntialiasingCheckBox | FlxUICheckBox | no |
healthColorStepperR | FlxUINumericStepper | no |
healthColorStepperG | FlxUINumericStepper | no |
healthColorStepperB | FlxUINumericStepper | no |
barShowDropDown | FlxUIDropDownMenuCustom | no |
minimumHealthStepper | FlxUINumericStepper | no |
drainAmountStepper | FlxUINumericStepper | no |
healthDrainCheckBox | FlxUICheckBox | no |
shakeIntensityStepper | FlxUINumericStepper | no |
shakeDurationStepper | FlxUINumericStepper | no |
shakeScreenBox | FlxUICheckBox | no |
trailLengthStepper | FlxUINumericStepper | no |
trailDelayStepper | FlxUINumericStepper | no |
trailAlphaStepper | FlxUINumericStepper | no |
trailDiffStepper | FlxUINumericStepper | no |
flixelTrailCheckBox | FlxUICheckBox | no |
animationDropDown | FlxUIDropDownMenuCustom | no |
animationInputText | FlxUIInputText | no |
animationNameInputText | FlxUIInputText | no |
animationIndicesInputText | FlxUIInputText | no |
animationFramerate | FlxUINumericStepper | no |
animationLoopCheckBox | FlxUICheckBox | no |
holdingFrameTime | Float | no |
holdingFrameElapsed | Float | no |
_file | FileReference | no |
| Method |
|---|
override function create() |
function addHelpScreen() |
function reloadBGs() |
function addCharacter(reload:Bool = false) |
function addGhostUI() |
function addSettingsUI() |
function addCharacterUI() |
function addMiscUI() |
function addCrossfadesUI() |
function addAnimationsUI() |
override function getEvent(id:String, sender:Dynamic, data:Dynamic, ?params:Array<Dynamic>) |
function reloadCharacterImage() |
function updatePointerPos() |
function findAnimationByName(name:String):AnimArray |
inline function updateCharacterPositions() |
inline function predictCharacterIsNotPlayer(name:String) |
function addAnimation(anim:String, name:String, fps:Float, loop:Bool, indices:Array<Int>) |
inline function newAnim(anim:String, name:String):AnimArray |
function reloadCharacterOptions() |
inline function updateText() |
inline function reloadAnimList() |
function reloadAnimationDropDown() |
function reloadCharacterDropDown() |
function resetHealthBarColor() |
function updatePresence() |
override function update(elapsed:Float) |
function onSaveComplete(_):Void |
function onSaveCancel(_):Void |
function onSaveError(_):Void |
function saveCharacter() |
function ClipboardAdd(prefix:String = ''):String |