offerContentContainer.py (1010B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\contextualOffers\client\UI\offerContentContainer.py 2 from carbonui import uiconst 3 from carbonui.primitives.container import Container 4 from carbonui.primitives.frame import Frame 5 6 class OfferContentContainer(Container): 7 default_background_hue = (0, 0, 0, 0) 8 default_background_image = None 9 10 def ApplyAttributes(self, attributes): 11 Container.ApplyAttributes(self, attributes) 12 self.onButtonClick = attributes.onButtonClick 13 self.backgroundHue = attributes.get('backgroundHue', self.default_background_hue) 14 self.backgroundImage = attributes.get('backgroundImage', self.default_background_image) 15 self.backgroundHueFrame = Frame(parent=self, align=uiconst.CENTERTOP, width=self.width, height=self.height, cornerSize=12, texturePath='res:/UI/Texture/Shared/BracketBorderWindow/mask_Window770.png', color=self.backgroundHue) 16 17 def OnButtonClick(self): 18 self.onButtonClick()