@@ -93,6 +93,10 @@ def __init__(self, parent, shipID=None, shipFittingInfo=("Test", "TestTrait", 2)
9393 self .marketInstance = Market .getInstance ()
9494 self .baseItem = self .marketInstance .getItem (self .shipID )
9595
96+ self .omegaBmp = None
97+ if self .baseItem .getAttribute ("cloneGradeRestriction" , 0 ) > 0 :
98+ self .omegaBmp = BitmapLoader .getBitmap ("25874" , "icons" )
99+
96100 # =====================================================================
97101 # DISABLED - it will be added as an option in PREFERENCES
98102
@@ -211,7 +215,12 @@ def UpdateElementsPos(self, mdc):
211215 self .raceBmpx = self .shipEffx + self .shipEffBk .GetWidth () + self .padding
212216 self .raceBmpy = (rect .height - self .raceBmp .GetHeight ()) / 2
213217
214- self .textStartx = self .raceBmpx + self .raceBmp .GetWidth () + self .padding
218+ self .omegaBmpx = self .raceBmpx + self .raceBmp .GetWidth () + self .padding
219+ omegaWidth = self .omegaBmp .GetWidth () if self .omegaBmp else 0
220+ omegaHeight = self .omegaBmp .GetHeight () if self .omegaBmp else 0
221+ self .omegaBmpy = (rect .height - omegaHeight ) / 2
222+
223+ self .textStartx = self .omegaBmpx + omegaWidth + self .padding
215224
216225 self .shipNamey = (rect .height - self .shipBmp .GetHeight ()) / 2
217226
@@ -254,6 +263,9 @@ def DrawItem(self, mdc):
254263 mdc .DrawBitmap (self .raceDropShadowBmp , round (self .raceBmpx + 1 ), round (self .raceBmpy + 1 ))
255264 mdc .DrawBitmap (self .raceBmp , round (self .raceBmpx ), round (self .raceBmpy ))
256265
266+ if self .omegaBmp :
267+ mdc .DrawBitmap (self .omegaBmp , round (self .omegaBmpx ), round (self .omegaBmpy ))
268+
257269 shipName , shipTrait , fittings = self .shipFittingInfo
258270
259271 if fittings < 1 :
0 commit comments