DialogueBoxPsych
| Kind | class |
| Package | objects |
| Full name | objects.DialogueBoxPsych |
| Source | source/objects/DialogueBoxPsych.hx |
| Extends | FlxSpriteGroup |
TO DO: Clean code? Maybe? idk
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
finishThing | Void->Void | no | — | — |
nextDialogueThing | Void->Void = null | no | — | — |
skipDialogueThing | Void->Void = null | no | — | — |
LEFT_CHAR_X | Float | yes | -60 | — |
RIGHT_CHAR_X | Float | yes | -100 | — |
DEFAULT_CHAR_Y | Float | yes | 60 | — |
DEFAULT_TEXT_X | — | yes | 175 | — |
DEFAULT_TEXT_Y | — | yes | 432 | — |
LONG_TEXT_ADD | — | yes | 24 | — |
closeSound | String | no | 'dialogueClose' | — |
closeVolume | Float | no | 1 | — |
Public methods
destroy
override function destroy():Void
new (constructor)
function new(dialogueList:DialogueFile, song:String = null)
| Parameter | Type | Default |
|---|---|---|
dialogueList | DialogueFile | — |
song (optional) | String | null |
parseDialogue
static inline function parseDialogue(path:String):DialogueFile
| Parameter | Type | Default |
|---|---|---|
path | String | — |
dummy
static inline function dummy():DialogueFile
updateBoxOffsets
static function updateBoxOffsets(box:FlxSprite)
| Parameter | Type | Default |
|---|---|---|
box | FlxSprite | — |
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
dialogue | TypedAlphabet | no |
dialogueList | DialogueFile | no |
bgFade | FlxSprite | no |
box | FlxSprite | no |
textToType | String | no |
arrayCharacters | Array<DialogueCharacter> | no |
currentText | Int | no |
offsetPos | Float | no |
textBoxTypes | Array<String> | no |
curCharacter | String | no |
layoutWidth | Int | no |
dialogueStarted | Bool | no |
dialogueEnded | Bool | no |
scrollSpeed | — | no |
daText | TypedAlphabet | no |
ignoreThisFrame | Bool | no |
lastCharacter | Int | no |
lastBoxType | String | no |
| Method |
|---|
function onGameResized(_:Int, _:Int):Void |
function spawnCharacters() |
function anyTouchJustPressed():Bool |
override function update(elapsed:Float) |
function startNextDialog():Void |