All pages
Powered by GitBook
1 of 1

Loading...

PaletteMarkedUpText(Markup.MarkupParseResult,MarkupPalette)

Method in LineView

Summary

Applies the palette to the line based on it's markup.

public static string PaletteMarkedUpText(Markup.MarkupParseResult line, MarkupPalette palette)

Remarks

This is static so that other dialogue views can reuse this code. While this is simplistic it is useful enough that multiple pieces might well want it.

Parameters

Name
Description

Returns

A TMP formatted string with the palette markup values injected within.

Yarn.Markup.MarkupParseResult line

The parsed marked up line with it's attributes.

Yarn.Unity.MarkupPalette palette

The palette mapping attributes to colours.