Skip to content

Add preset support to JSON structure #29

@KSneijders

Description

@KSneijders

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
                }
            }
        ]
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    client-sideRelated to the client side of the applicationenhancementNew feature or request

    Projects

    Status

    Backlog / Blocking

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions