mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
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.
14 lines
253 B
Python
14 lines
253 B
Python
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]
|