dcs_liberation/game/settings/optiondescription.py
Dan Albert 7bec4c62f7 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.
2021-10-21 18:30:56 -07:00

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]