Tags: Kirollos/DiscordEuroscope
Tags
refactor: FillStruct() implemented to tidy up code readability
feat: implement discord buttons
This commit introduces buttons to the rich presences.
The JSON structure would be like this:
```"buttons": [
{
"label": "Global Button1",
"url": "https://url"
},
{
"label": "Global Button2",
"url": "https://url"
}
]```
The buttons array can contain 2 elements as a maximum.
Like other parameters, the buttons can be implemented globally and in each state.
refactor: custom radio callsigns json object
JSON element "custom" has been renamed to "custom_callsigns"
The value of this element was changed from array of objects
to a single object of indefinite amount of elements.
This object will hold two values:
1. the callsign, which can be a strict constant or a regex (element name)
2. the corresponding radio callsign (element value)
Example:
"radio_callsigns": {
"config": {
"load_from_ese": false,
"path_to_ese" : "..\\..\\"
},
"custom_callsigns": {
"^HECC_CTR$": "Cairo Control Bandbox",
"^HECC_(\\d+)(?:_)CTR$" : "Cairo Control ACC $0"
}
}
More work into ESE position loading. + Changes to JSON config structure
Utilize ESE parser to load radio callsigns WIP
Update msbuild.yml: Fix another typo
PreviousNext