Skip to main content

Stat

This view is going to be, most likely, a staple in your character sheet design. As the name implies, it's designed to directly display stats within your sheet, with as little extra details as required. Be sure to read through all the properties of this one, it's a mighty one!

JSON Format

{
"type": "stat",
"id": ...,
"type": ...,
"margin_left": ...,
"margin_right": ...,
"margin_top": ...,
"margin_bottom": ...,
"is_visible": ...,
"validation_message": ...,
"stat": ...,
"edit_stat": ...,
"change_amount": ...,
"min_value_allowed": ...,
"max_value_allowed": ...,
"calculated_min_value_allowed": ...,
"calculated_max_value_allowed": ...,
"on_tap_event": ...,
"on_long_tap_event": ...,
"bottom_sheet_view": ...,
"bottom_sheet_in_edit_mode": ...,
"sheet_title": ...,
"stat_color": ...,
"name_color": ...,
"style": ...,
"always_show_sign": ...,
"edit_bottom_sheet_title": ...
}

Fields

FieldTypeRequiredDescription
edit_bottom_sheet_titleStatFormulaComponentOptional. Defaults to none. If provided, the app will try to display a bottom sheet to edit (add and subtract from) the stat value when the player taps on it. This will only work if both on_tap_event and bottom_sheet_view are omitted.
@type string