12 lines
458 B
Plaintext
12 lines
458 B
Plaintext
function main()
|
|
{
|
|
variable string someValue = "some_npc_name"
|
|
variable string options = "some_option_value_1, some_option_value_2, some_option_value_3"
|
|
variable jsonvalue theUi
|
|
|
|
theUi:ParseFile["test.json"]
|
|
theUi.Get["children", 2, "children", 2]:SetString["text", "${someValue}"]
|
|
echo "${theUi.Get["children", 3, "children", 2]}"
|
|
theUi.Get["children", 3, "children", 2]:SetString["text", "${options}"]
|
|
echo "Value: ${theUi}
|
|
} |