mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Generate settings pages automatically.
This adds metadata to settings fields that can be used to automatically generate the settings window. For now I have replaced the Difficulty page. Will follow up to replace the others.
This commit is contained in:
13
game/settings/optiondescription.py
Normal file
13
game/settings/optiondescription.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Optional
|
||||
|
||||
|
||||
SETTING_DESCRIPTION_KEY = "DCS_LIBERATION_SETTING_DESCRIPTION_KEY"
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class OptionDescription:
|
||||
page: str
|
||||
section: str
|
||||
text: str
|
||||
detail: Optional[str]
|
||||
Reference in New Issue
Block a user