mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Also fixes the oversight in the previous commit where float options were not saved when changed.
23 lines
411 B
Python
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,
|
|
)
|