Skip to content

Commit

Permalink
Add support for new properties in 2.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanAlbert committed Oct 20, 2023
1 parent 0562311 commit 5fa7699
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dcs/unitpropertydescription.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ class UnitPropertyDescription:
# The type of control shown in the UI for this property. "label" type properties are
# not really properties, but text-only lines shown in the mission editor for
# grouping properties.
control: Literal["checkbox", "comboList", "groupbox", "label", "slider", "spinbox"]
control: Literal[
"checkbox",
"comboList",
"editbox",
"groupbox",
"label",
"slider",
"spinbox",
]

# The human readable name of this property. When the control is a label,
# the value may be None to indicate that a blank line should be printed in
Expand All @@ -37,7 +45,7 @@ class UnitPropertyDescription:
# The options allowed for comboList properties. The key of the dict is the ID of the
# option which is how the value is represented in the miz. The value is the display
# name for the UI.
values: Optional[Dict[Union[str, int, float], str]] = None
values: Optional[Dict[Union[str, int, float, None], str]] = None

# No idea what these are for.
dimension: Optional[str] = None
Expand Down

0 comments on commit 5fa7699

Please sign in to comment.