Add support for preset values which can be set by json structure.
This should be visible in the Tyrant View.
Per preset show a button with the preset.
When clicked, the values should be filled into the fields (not immediately sent)
Potentially add a key combo to send directly by holding CTRL or double click or something along those lines.
{
"name": "Send Resources",
"funcName": "sendResources",
"params": [
{
"name": "food",
"type": "float",
"default": 0
},
{
"name": "wood",
"type": "float",
"default": 0
},
{
"name": "stone",
"type": "float",
"default": 0
},
{
"name": "gold",
"type": "float",
"default": 0
},
{
"name": "player",
"type": "int",
"default": -1
}
],
"presets": [
{
"name": "CASTLE RACE!",
"params": {
"stone": 650
}
},
{
"name": "[P1] +1K Food",
"params": {
"food": 1000,
"player": 1
}
}
]
},
Add support for preset values which can be set by json structure.
This should be visible in the Tyrant View.
Per preset show a button with the preset.
When clicked, the values should be filled into the fields (not immediately sent)
Potentially add a key combo to send directly by holding CTRL or double click or something along those lines.
{ "name": "Send Resources", "funcName": "sendResources", "params": [ { "name": "food", "type": "float", "default": 0 }, { "name": "wood", "type": "float", "default": 0 }, { "name": "stone", "type": "float", "default": 0 }, { "name": "gold", "type": "float", "default": 0 }, { "name": "player", "type": "int", "default": -1 } ], "presets": [ { "name": "CASTLE RACE!", "params": { "stone": 650 } }, { "name": "[P1] +1K Food", "params": { "food": 1000, "player": 1 } } ] },