dcs-retribution/game/settings/skilloption.py
Dan Albert a618f00662 Port the campaign management page to auto.
Also fixes the oversight in the previous commit where float options were
not saved when changed.
2021-10-21 19:16:47 -07:00

23 lines
411 B
Python

from typing import Any, Optional
from .choicesoption import choices_option
def skill_option(
text: str,
page: str,
section: str,
default: str,
detail: Optional[str] = None,
**kwargs: Any,
) -> str:
return choices_option(
text,
page,
section,
default,
["Average", "Good", "High", "Excellent"],
detail=detail,
**kwargs,
)