omegaConfirmationContainer.py (1914B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\contextualOffers\client\UI\omegaOffer\omegaConfirmationContainer.py 2 from carbonui import uiconst, fontconst 3 from contextualOffers.client.UI.offerContentContainer import OfferContentContainer 4 from eve.client.script.ui.control.eveLabel import Label 5 from newFeatures.newFeatureNotifyButton import NewFeatureButton 6 from clonegrade.const import COLOR_OMEGA_GOLD 7 8 class OmegaConfirmationContainer(OfferContentContainer): 9 default_name = 'omegaConfirmationContainer' 10 default_background_hue = (0, 0, 0, 0.15) 11 12 def ApplyAttributes(self, attributes): 13 OfferContentContainer.ApplyAttributes(self, attributes) 14 self.ConstructText() 15 self.ConstructButtons() 16 17 def ConstructText(self): 18 text_color = COLOR_OMEGA_GOLD 19 self.fanfareTitle = Label(name='fanfareHeader', parent=self, fontsize=88, bold=True, align=uiconst.TOPLEFT, left=50, top=110 - (100 * fontconst.fontSizeFactor - 100), color=text_color, idx=0) 20 self.fanfareDescription = Label(name='fanfareDescription', parent=self, fontsize=60, bold=True, align=uiconst.TOPLEFT, left=50, top=190 + (50 * fontconst.fontSizeFactor - 50), color=text_color, idx=0) 21 22 def ConstructButtons(self): 23 self.doneButton = NewFeatureButton(name='doneButton', parent=self, align=uiconst.BOTTOMRIGHT, stretchTexturePath='res:/UI/Texture/Shared/BracketBorderWindow/button180.png', hiliteTexturePath='res:/UI/Texture/Shared/BracketBorderWindow/button180.png', height=31, width=112, fontSize=16, buttonColor=(0.8, 0.8, 0.8, 1), top=30, left=30, idx=0, onClick=self.OnButtonClick) 24 25 def SetTitleText(self, title): 26 self.fanfareTitle.SetText(title) 27 28 def SetDescriptionText(self, description): 29 self.fanfareDescription.SetText(description) 30 31 def SetButtonText(self, buttonText): 32 self.doneButton.SetText(buttonText)