Repository navigation
User JSON TimeTextIndicator
roosit edited this page May 15, 2026
·
4 revisions
Back to list | Indicator page | Russian
This page describes the JSON template for the timeText indicator for manual .vttp editing.
{
"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"}}
}
}
}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. |
Aligns the text.
{
"textAlign": {"value":0}
}| Field | Values | What it does |
|---|---|---|
| value or nested fields | depends on the setting type | Stores the setting value. |
Selects the time zone.
{
"timeZone": {"value":""}
}| Field | Values | What it does |
|---|---|---|
| value or nested fields | depends on the setting type | Stores the setting value. |
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. |
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. |
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. |
| 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. |