Hide properties that have better controls.

The weapon laser codes can be set more easily from the weapon laser code
combo box. Setting the properties explicitly here will just cause
conflicts and annoying UI bugs. Hide those properties from the UI.
This commit is contained in:
Dan Albert
2023-07-22 17:23:43 -07:00
parent e901d1f538
commit e8df6a3d54
4 changed files with 26 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ class PropertyEditor(QGridLayout):
if prop.player_only and not flight.client_count:
continue
if not flight.unit_type.should_show_prop(prop.identifier):
continue
try:
widget = self.control_for_property(prop)
except (MissingPropertyDataError, UnhandledControlTypeError):