mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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.
21 lines
376 B
Python
21 lines
376 B
Python
from typing import Any, Optional
|
|
|
|
from .choicesoption import choices_option
|
|
|
|
|
|
def skill_option(
|
|
text: str,
|
|
page: str,
|
|
section: str,
|
|
detail: Optional[str] = None,
|
|
**kwargs: Any,
|
|
) -> str:
|
|
return choices_option(
|
|
text,
|
|
page,
|
|
section,
|
|
["Average", "Good", "High", "Excellent"],
|
|
detail=detail,
|
|
**kwargs,
|
|
)
|