Codename LogoCodename Logo

funkin.game.cutscenes.dialogue.DialogueBox

APIWiki

Constructor

View in GitHub

new(name:String)

Variables

cutscene:DialogueCutscene = DialogueCutscene.cutscene

defPath:String = "dialogue/boxes/"

defaultTextTypeSFX:Array<FlxSound>

dialogueEnded:Bool = false

nextSFX:String = Paths.sound("dialogue/next")

positions:Map<String, CharPosDef> = []

text:FlxTypeText

Methods

View in GitHub

playBubbleAnim(bubble:String, suffix:String = "", text:String = "", ?format:Array<TextFormat>, speed:Float = 0.05, ?customSFX:FlxSound, ?customTypeSFX:Array<FlxSound>, setTextAfter:Bool = false, allowDefault:Bool = true):Void

View in GitHub

popupChar(char:DialogueCharacter, force:Bool = false):Void

View in GitHub

resetText(text:String = "", ?formats:Array<TextFormat>, ?event:DialogueBoxSetTextEvent):Void

View in GitHub

startText(text:String = "", ?format:Array<TextFormat>, speed:Float = 0.05, ?customTypeSFX:Array<FlxSound>):Void

Inherited Variables

Defined by FunkinSprite

animDatas:Map<String, AnimData> = []

animOffsets:Map<String, FlxPoint> = new Map<String,FlxPoint>()

beatAnims:Array<BeatAnim> = []

beatInterval:Int = 2

ODD interval -> asynced; EVEN interval -> synced

beatOffset:Int = 0

debugMode:Bool = false

extra:Map<String, Dynamic> = []

initialZoom:Float = 1

name:String

skipNegativeBeats:Bool = false

zoomFactor:Float = 1

Inherited Methods

Defined by FunkinSprite

View in GitHub

addOffset(name:String, x:Float = 0, y:Float = 0):Void

View in GitHub

getAnim(name:String):OneOfTwo<FlxAnimation, FlxSymbolAnimation>

View in GitHub

inlinegetAnimOffset(name:String):Null<FlxPoint>

View in GitHub

inlinegetNameList():Array<String>

View in GitHub

inlinehasAnimation(AnimName:String):Bool

View in GitHub

loadSprite(path:String, Unique:Bool = false, ?Key:String):Void

View in GitHub

measureHit(curMeasure:Int):Void

View in GitHub

onPropertySet(property:String, value:Dynamic):Void

View in GitHub

inlineremoveAnimation(name:String):Void

View in GitHub

stepHit(curBeat:Int):Void

View in GitHub

switchOffset(anim1:String, anim2:String):Void