YarnPaletteMarkerProcessor
parse-time processor that applies bbcode styling from a YarnMarkupPalette. register custom marker names (e.g. [happy], [angry]) mapped to formatting.
class_name YarnPaletteMarkerProcessor
extends YarnAttributeMarkerProcessorInherits from YarnAttributeMarkerProcessor
#Properties
#palette
the markup palette defining styles for each marker name.
var palette: YarnMarkupPalette = nullType YarnMarkupPalette
#Methods
#process_replacement_marker(YarnMarkupAttribute, Array, Array, String)
func process_replacement_marker(marker: YarnMarkupAttribute, child_builder: Array, child_attributes: Array, locale_code: String) -> YarnAttributeMarkerProcessor.ReplacementMarkerResultParameters
markerYarnMarkupAttributechild_builderArraychild_attributesArraylocale_codeString
Returns YarnAttributeMarkerProcessor.ReplacementMarkerResult
#register_with_line_provider(Variant)
registers this processor with a line provider for all markers in the palette.
func register_with_line_provider(line_provider: Variant) -> voidParameters
line_providerVariant
#unregister_from_line_provider(Variant)
unregisters this processor from a line provider for all palette markers.
func unregister_from_line_provider(line_provider: Variant) -> voidParameters
line_providerVariant
Generated from Yarn Spinner for Godot GDScript 3.3.