Codename LogoCodename Logo

funkin.backend.utils.XMLUtil

APIWiki

Class made to make XML parsing easier.

Static methods

View in GitHub

staticaddAnimToSprite(sprite:FlxSprite, animData:AnimData):ErrorCode

View in GitHub

staticaddXMLAnimation(sprite:FlxSprite, anim:Access, loop:Bool = false):ErrorCode

Adds an XML animation to sprite.

Parameters:

sprite

Destination sprite

anim

Animation (Must be a anim XML node)

View in GitHub

staticapplyXMLProperty(object:Dynamic, property:Access):ErrorCode

Applies a property XML node to an object.

Parameters:

object

Object to which the xml property will be applied

property

property node.

View in GitHub

staticinlinecreateSpriteFromXML(node:Access, parentFolder:String = "", defaultAnimType:XMLAnimType = BEAT, ?cl:Class<FunkinSprite>, ?args:Array<Dynamic>):FunkinSprite

Creates a new sprite based on a XML node.

View in GitHub

staticinlinedefaultForcedCheck(animName:String, sprite:FunkinSprite):Bool

View in GitHub

staticextractAnimFromXML(anim:Access, animType:XMLAnimType = NONE, loop:Bool = false):AnimData

View in GitHub

staticfixSpacingInNode(node:Access):Access

WARNING: will edit directly the node!

View in GitHub

staticinlinefixXMLText(text:String):String

View in GitHub

staticgetTextFormats(_node:OneOfTwo<Xml, Access>, ?currentFormat:Dynamic, ?parsedSegments:Array<TextFormat>):Array<TextFormat>

View in GitHub

staticloadSpriteFromXML(spr:FunkinSprite, node:Access, parentFolder:String = "", defaultAnimType:XMLAnimType = BEAT):FunkinSprite

Overrides a sprite based on a XML node.