Codename LogoCodename Logo

funkin.game.cutscenes.dialogue.DialogueBox

APIWiki

Constructor

View in GitHub

new(name:String)

Variables

@:value(DialogueCutscene.cutscene)cutscene:DialogueCutscene = DialogueCutscene.cutscene

@:value("dialogue/boxes/")defPath:String = "dialogue/boxes/"

defaultTextTypeSFX:Array<FlxSound>

@:value(false)dialogueEnded:Bool = false

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

@:value([])positions:Map<String, CharPosDef> = []

text:FlxTypeText

Methods

View in GitHub

@:value({ allowDefault : true, setTextAfter : false, speed : 0.05, text : "", suffix : "" })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

@:value({ force : false })popupChar(char:DialogueCharacter, force:Bool = false):Void

View in GitHub

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

View in GitHub

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

Inherited Variables

Defined by FunkinSprite

@:value([])animDatas:Map<String, AnimData> = []

@:value(new Map&lt;String,FlxPoint&gt;())animOffsets:Map<String, FlxPoint> = new Map<String,FlxPoint>()

@:value([])beatAnims:Array<BeatAnim> = []

@:value(2)beatInterval:Int = 2

ODD interval -> asynced; EVEN interval -> synced

@:value(0)beatOffset:Int = 0

@:value(false)debugMode:Bool = false

@:value([])extra:Map<String, Dynamic> = []

@:value(1)initialZoom:Float = 1

@:value(DANCE)lastAnimContext:PlayAnimContext = DANCE

name:String

@:value(false)skipNegativeBeats:Bool = false

@:value(NONE)spriteAnimType:XMLAnimType = NONE

@:value(1)zoomFactor:Float = 1

Inherited Methods

Defined by FunkinSprite

View in GitHub

@:value({ y : 0, x : 0 })addOffset(name:String, x:Float = 0, y:Float = 0):Void

View in GitHub

inlinegetAnimOffset(name:String):Null<FlxPoint>

View in GitHub

inlinegetNameList():Array<String>

View in GitHub

inlinehasAnimation(AnimName:String):Bool

View in GitHub

@:value({ Key : null, Unique : false })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