@@ -141,6 +141,14 @@ def langDisplay(langInfo):
141141 wx .DefaultPosition , wx .DefaultSize , 0 )
142142 mainSizer .Add (self .cbShowShipBrowserTooltip , 0 , wx .ALL | wx .EXPAND , 5 )
143143
144+ self .cbShowOmegaIcons = wx .CheckBox (panel , wx .ID_ANY , _t ("Show Omega icons for hulls and modules" ),
145+ wx .DefaultPosition , wx .DefaultSize , 0 )
146+ if "wxGTK" not in wx .PlatformInfo :
147+ self .cbShowOmegaIcons .SetCursor (helpCursor )
148+ self .cbShowOmegaIcons .SetToolTip (wx .ToolTip (
149+ _t ('Shows icons for items that require Omega clone access.' )))
150+ mainSizer .Add (self .cbShowOmegaIcons , 0 , wx .ALL | wx .EXPAND , 5 )
151+
144152 self .cbReloadAll = wx .CheckBox (panel , wx .ID_ANY , _t ("Change charge in all modules of the same type" ),
145153 wx .DefaultPosition , wx .DefaultSize , 0 )
146154 if "wxGTK" not in wx .PlatformInfo :
@@ -176,6 +184,7 @@ def langDisplay(langInfo):
176184 self .cbGaugeAnimation .SetValue (self .sFit .serviceFittingOptions ["enableGaugeAnimation" ])
177185 self .cbOpenFitInNew .SetValue (self .sFit .serviceFittingOptions ["openFitInNew" ])
178186 self .cbShowShipBrowserTooltip .SetValue (self .sFit .serviceFittingOptions ["showShipBrowserTooltip" ])
187+ self .cbShowOmegaIcons .SetValue (self .sFit .serviceFittingOptions ["showOmegaIcons" ])
179188 self .cbReloadAll .SetValue (self .sFit .serviceFittingOptions ["ammoChangeAll" ])
180189 self .cbExpMutants .SetValue (self .sFit .serviceFittingOptions ["expandedMutantNames" ])
181190 self .rbAddLabels .SetSelection (self .sFit .serviceFittingOptions ["additionsLabels" ])
@@ -192,6 +201,7 @@ def langDisplay(langInfo):
192201 self .cbGaugeAnimation .Bind (wx .EVT_CHECKBOX , self .onCBGaugeAnimation )
193202 self .cbOpenFitInNew .Bind (wx .EVT_CHECKBOX , self .onCBOpenFitInNew )
194203 self .cbShowShipBrowserTooltip .Bind (wx .EVT_CHECKBOX , self .onCBShowShipBrowserTooltip )
204+ self .cbShowOmegaIcons .Bind (wx .EVT_CHECKBOX , self .onCBShowOmegaIcons )
195205 self .cbReloadAll .Bind (wx .EVT_CHECKBOX , self .onCBReloadAll )
196206 self .cbExpMutants .Bind (wx .EVT_CHECKBOX , self .onCBExpMutants )
197207
@@ -273,6 +283,25 @@ def onCBOpenFitInNew(self, event):
273283 def onCBShowShipBrowserTooltip (self , event ):
274284 self .sFit .serviceFittingOptions ["showShipBrowserTooltip" ] = self .cbShowShipBrowserTooltip .GetValue ()
275285
286+ def onCBShowOmegaIcons (self , event ):
287+ self .sFit .serviceFittingOptions ["showOmegaIcons" ] = self .cbShowOmegaIcons .GetValue ()
288+
289+ from gui .builtinViews .fittingView import FittingView
290+ for page in self .mainFrame .fitMultiSwitch ._pages :
291+ if isinstance (page , FittingView ):
292+ page .updateOmegaColumn ()
293+
294+ iView = self .mainFrame .marketBrowser .itemView
295+ iView .updateOmegaColumn ()
296+ if iView .active :
297+ iView .update (iView .active )
298+
299+ fitID = self .mainFrame .getActiveFit ()
300+ if fitID is not None :
301+ wx .PostEvent (self .mainFrame , GE .FitChanged (fitIDs = (fitID ,)))
302+
303+ event .Skip ()
304+
276305 def onCBReloadAll (self , event ):
277306 self .sFit .serviceFittingOptions ["ammoChangeAll" ] = self .cbReloadAll .GetValue ()
278307
0 commit comments