Skip to content

User JSON TimeTextIndicator

roosit edited this page May 15, 2026 · 4 revisions

Time Text JSON

Back to list | Indicator page | Russian

Purpose

This page describes the JSON template for the timeText indicator for manual .vttp editing.

Full Template

{
  "name": "com.velitask.plagin.official.timeText",
  "data": {
    "maket": { "preset": "auto" },
    "properties": {
      "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}},
      "textAlign": {"value":0},
      "timeZone": {"value":""},
      "timeFormat": {"value":"dd.MM.yyyy HH:mm:ss"},
      "durationFormat": {"value":"HH:mm:ss"},
      "textTemplate": {"template":"Time {curr} / passed {passed}","vars":{"curr":"%s","tzid":"%s","passed":"%s","left":"%s"}}
    }
  }
}

Settings

font

Changes text font and color.

{
  "font": {"name":"Dialog","style":{"value":0},"size":{"value":48},"color":{"r":255,"g":255,"b":255,"a":255}}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

textAlign

Aligns the text.

{
  "textAlign": {"value":0}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

timeZone

Selects the time zone.

{
  "timeZone": {"value":""}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

timeFormat

Defines the date/time format.

{
  "timeFormat": {"value":"dd.MM.yyyy HH:mm:ss"}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

durationFormat

Defines elapsed and remaining time format.

{
  "durationFormat": {"value":"HH:mm:ss"}
}
Field Values What it does
value or nested fields depends on the setting type Stores the setting value.

textTemplate

Defines the final time string. Variables show current time, time zone, elapsed project time, and remaining project time.

{
  "textTemplate": {"template":"Time {curr} / passed {passed}","vars":{"curr":"%s","tzid":"%s","passed":"%s","left":"%s"}}
}
Field Values What it does
template string with variables in curly braces Final text.
vars object with variable formats Formats variable values.

Template Variables

Variable Default format What it shows
{curr} %s Current player time formatted with timeFormat and the selected time zone.
{tzid} %s Full display name of the time zone.
{passed} %s Time passed from the project period start to the current moment, formatted with durationFormat.
{left} %s Time left from the current moment to the project period end, formatted with durationFormat.

Clone this wiki locally