DiffText
This view allows you to display a text showing where the differences are between two strings (texts). This is particularly useful when showing the player what their progression unlocked for them (e.g: when levelling up and feature descriptions vary slightly).
JSON Format
{
"type": "diffText",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...,
"original_text": ...,
"new_text": ...,
"added_color": ...,
"deleted_color": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
deleted_color | String | Optional. Defaults to red. The color to display removed / deleted text in. |