def ConstructLayout(self): charInfoCont = uicls.Container(name='charInfo', parent=self.sr.main, align=uiconst.TOTOP, height=68, padding=const.defaultPadding) charLogoCont = uicls.Container(name='charLogo', parent=charInfoCont, align=uiconst.TOLEFT, width=68) charTextCont = uicls.Container(name='charName', parent=charInfoCont, align=uiconst.TOALL) applicationCont = uicls.Container(name='charInfo', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) uiutil.GetOwnerLogo(charLogoCont, self.charID, size=64, noServerCall=True) charText = localization.GetByLabel( 'UI/Corporations/CorpApplications/ApplicationSubjectLine', player=self.charID) charNameLabel = uicls.EveLabelLarge(parent=charTextCont, text=charText, top=12, align=uiconst.TOPLEFT, width=270) editText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CorporationApplicationText') editLabel = uicls.EveLabelSmall(parent=applicationCont, text=editText, align=uiconst.TOTOP) self.rejectRb = uicls.Checkbox(text=localization.GetByLabel( 'UI/Corporations/CorpApplications/RejectApplication'), parent=applicationCont, configName='reject', retval=1, checked=False, groupname='state', align=uiconst.TOBOTTOM) self.acceptRb = uicls.Checkbox(text=localization.GetByLabel( 'UI/Corporations/CorpApplications/ApplicationInviteApplicant'), parent=applicationCont, configName='accept', retval=0, checked=True, groupname='state', align=uiconst.TOBOTTOM) if self.status not in (const.crpApplicationAppliedByCharacter, const.crpApplicationAcceptedByCorporation): self.rejectRb.state = uiconst.UI_HIDDEN self.acceptRb.state = uiconst.UI_HIDDEN self.applicationText = uicls.EditPlainText(setvalue=self.appText, parent=applicationCont, maxLength=1000, readonly=True)
def ConstructLayout(self): corpName = cfg.eveowners.Get(self.corpid).name corpInfoCont = uicls.Container(name='corpInfo', parent=self.sr.main, align=uiconst.TOTOP, height=68, padding=const.defaultPadding) corpLogoCont = uicls.Container(name='corpLogo', parent=corpInfoCont, align=uiconst.TOLEFT, width=68) corpTextCont = uicls.Container(name='corpName', parent=corpInfoCont, align=uiconst.TOALL) applicationCont = uicls.Container(name='corpInfo', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) uiutil.GetOwnerLogo(corpLogoCont, self.corpid, size=64, noServerCall=True) corpText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/ApplyForMembership', corporation=corpName) corpNameLabel = uicls.EveLabelLarge(parent=corpTextCont, text=corpText, top=12, align=uiconst.TOPLEFT, width=270) editText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CorporationApplicationText') editLabel = uicls.EveLabelSmall(parent=applicationCont, text=editText, align=uiconst.TOTOP) tax = self.corporation.taxRate * 100 taxText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CurrentTaxRateForCorporation', corporation=corpName, taxRate=tax) taxLabel = uicls.EveLabelSmall(parent=applicationCont, text=taxText, align=uiconst.TOBOTTOM) if self.corporation and not self.corporation.isRecruiting: notRecruitingText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/RecruitmentMayBeClosed') notRecruiting = uicls.EveLabelSmall(parent=applicationCont, text=notRecruitingText, align=uiconst.TOBOTTOM, idx=0) self.SetMinSize((self.default_width, self.default_height + notRecruiting.textheight), refresh=True) self.applicationText = uicls.EditPlainText(setvalue='', parent=applicationCont, align=uiconst.TOALL, maxLength=1000)
def ActivateKillRightMenu(self, menuParent): cont = menuParent.AddContainer(align=uiconst.TOTOP, padding=const.defaultPadding) cont.GetEntryWidth = lambda mc=cont: 230 charName = cfg.eveowners.Get(self.charID).name charNamelabel = localization.GetByLabel( 'UI/Contracts/ContractsWindow/ShowInfoLink', showInfoName=charName, info=('showinfo', const.typeCharacterAmarr, self.charID)) if self.price is not None: headerText = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/BuyKillRight') explainText = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/PurchaseLabel', charName=charNamelabel) priceText = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/AcativationCost', costAmount=util.FmtISK(self.price, 0)) else: headerText = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/ActivateKillRight') explainText = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/ActivateLabel', charName=charNamelabel) priceText = '' headerLabel = uicls.EveLabelLarge(text=headerText, parent=cont, align=uiconst.TOTOP, state=uiconst.UI_NORMAL, bold=True) helpTextCont = uicls.Container(name='helpTextCont', parent=cont, align=uiconst.TOTOP, height=40, padTop=const.defaultPadding) helpText = uicls.EveLabelMedium(text=explainText, parent=helpTextCont, state=uiconst.UI_NORMAL, align=uiconst.TOTOP, color=(1.0, 0.0, 0.0, 0.8)) buttonCont = uicls.Container(name='buttonCont', parent=cont, align=uiconst.TOTOP, height=20) priceLabel = uicls.EveLabelMedium(text=priceText, parent=buttonCont) buttonLabel = localization.GetByLabel( 'UI/CharacterSheet/CharacterSheetWindow/Activate') if self.price is None: self.func = 'ActivateKillRight' self.params = (self.killRightID, self.charID, self.shipID) else: self.func = 'BuyKillRight' self.params = (self.killRightID, self.charID, self.shipID, self.price) self.activateBtn = uicls.Button(parent=buttonCont, label=buttonLabel, align=uiconst.TORIGHT, func=self.ActivateKillRight)
def ApplyAttributes(self, attributes): uicls.Window.ApplyAttributes(self, attributes) self._caption = self.name = 'CtrlTabWindow' self.HideHeader() self.SetWndIcon(None) self.SetTopparentHeight(0) self.SetMainIconSize(0) self.MakeUncollapseable() self.MakeUnpinable() self.MakeUnMinimizable() self.MakeUnResizeable() self.MakeUnKillable() self.HideUnderlay() self.MakeUnstackable() uicore.event.RegisterForTriuiEvents(uiconst.UI_MOUSEDOWN, self.OnGlobalMouseDown) uicls.Frame(parent=self, color=FRAMECOLOR) uicls.Fill(parent=self, color=FILLCOLOR) self.currOpenWindows = uicore.registry.GetWindows()[:] self.showOrHide = self.AllWindowsMinimized() self.selectionBoxIndex = None self.windowIcons = [] self.showOrHideMessage = [ localization.GetByLabel('UI/Common/Windows/HideWindows'), localization.GetByLabel('UI/Common/Windows/ShowWindows') ][self.showOrHide] self.InitializeWindowIcons() self.numIcons = len(self.windowIcons) self.numRows = int(math.ceil(float(self.numIcons) / float(NUMCOLS))) if self.numRows > 1: self.xShift = 0 else: self.xShift = (NUMCOLS - self.numIcons) * BLOCKSIZE / 2 uthread.new(self.SetWindowSize) self.RenderIcons() self.sr.selectionBox = uicls.Container(name='selectionBox', parent=self.sr.main, align=uiconst.RELATIVE, pos=(SPACINGWIDTH, SPACINGWIDTH, ICONWIDTH, ICONWIDTH)) uicls.Fill(parent=self.sr.selectionBox, color=SELECTCOLOR) self.sr.selectionBoxMouse = uicls.Container(name='selectionBox', parent=self.sr.main, align=uiconst.RELATIVE, pos=(SPACINGWIDTH, SPACINGWIDTH, ICONWIDTH, ICONWIDTH), state=uiconst.UI_HIDDEN) uicls.Fill(parent=self.sr.selectionBoxMouse, color=SELECTCOLOR) self.sr.windowText = uicls.EveLabelLarge(parent=self.sr.main, align=uiconst.TOBOTTOM, color=(1, 1, 1, 1), state=uiconst.UI_DISABLED, padding=BORDER)
def ConstructNewFWPlayerHeader(self): self.topCont.Flush() iconSize = 50 firstLine = uicls.Container(parent=self.topCont, align=uiconst.TOTOP_PROP, height=0.4, padLeft=20) uicls.Sprite( parent=firstLine, align=uiconst.CENTERLEFT, pos=(0, 0, iconSize, iconSize), texturePath='res:/UI/Texture/Icons/FactionalWarfare_64.png') enemyID = facwarCommon.GetFactionMainEnemy(self.factionID) enemyAllyID = facwarCommon.GetFactionSecondaryEnemy(self.factionID) text = localization.GetByLabel( 'UI/FactionWarfare/NonFWPlayerHeader1', typeID=const.typeFaction, factionID=self.factionID, factionName=self.factionName, enemyID=enemyID, enemyName=cfg.eveowners.Get(enemyID).name, enemyAllyID=enemyAllyID, enemyAllyName=cfg.eveowners.Get(enemyAllyID).name) uicls.EveLabelLarge(parent=firstLine, align=uiconst.CENTERLEFT, state=uiconst.UI_NORMAL, left=iconSize + 20, text=text) secondLine = uicls.Container(parent=self.topCont, align=uiconst.TOTOP_PROP, height=0.6, padLeft=20) uicls.Sprite(parent=secondLine, align=uiconst.CENTERLEFT, pos=(0, 0, iconSize, iconSize), texturePath='res:/UI/Texture/Icons/34_64_8.png') enemyID = facwarCommon.GetFactionMainEnemy(self.factionID) labelCont = uicls.ContainerAutoSize(parent=secondLine, align=uiconst.CENTERLEFT, left=iconSize + 20) uicls.EveCaptionSmall(parent=labelCont, text=localization.GetByLabel( 'UI/FactionWarfare/FightForFaction', factionName=cfg.eveowners.Get( self.factionID).name)) uicls.EveLabelMedium( state=uiconst.UI_NORMAL, parent=labelCont, top=25, text=localization.GetByLabel( 'UI/FactionWarfare/FightForFactionText', url='localsvc:service=facwar&method=ShowRulesOfEngagementTab'))
def ApplyAttributes(self, attributes): uicls.Container.ApplyAttributes(self, attributes) self.lowerLimit = attributes.lowerLimit self.upperLimit = attributes.upperLimit self.lpAmount = attributes.lpAmount self.lastAmount = 0 self.level = attributes.level self.leftCont = uicls.Container(name='leftCont', parent=self, align=uiconst.TOLEFT_PROP, width=0.75) self.rightCont = uicls.Container(name='rightCont', parent=self) self.bgFrame = uicls.Frame(bgParent=self.leftCont, frameConst=uiconst.FRAME_BORDER1_CORNER1) self.bgGradient = uicls.GradientSprite(bgParent=self.leftCont, rotation=-pi / 2) levelName = uicls.EveCaptionLarge(parent=self.leftCont, text=self.GetLevelName(), top=5, left=10) if self.level == 6: levelName.fontsize = 16 self.progressGauge = uicls.Gauge(parent=self.leftCont, value=0.0, color=(0.0, 0.31, 0.4, 1.0), backgroundColor=(0.1, 0.1, 0.1, 1.0), align=uiconst.TOBOTTOM, gaugeHeight=15, padding=2, opacity=0.0) self.progressGauge.GetHint = self.GetProgressGaugeHint self.iconCont = uicls.Container(name='iconCont', parent=self.leftCont, align=uiconst.TOPRIGHT, pos=(10, 4, 300, 20)) self.ConstructIcons() self.checkboxSprite = uicls.Sprite(name='checkboxSprite', parent=self.rightCont, align=uiconst.CENTERLEFT, pos=(15, 0, 16, 16)) uicls.EveLabelLarge(parent=self.rightCont, text=localizationUtil.FormatNumeric( self.upperLimit, useGrouping=True), align=uiconst.CENTERLEFT, left=50) self.SetLPAmount(self.lpAmount, init=True)
def __init__(self, typeID, uiPointer, targetBall): self.itemID = targetBall.id self.bracket = SpaceObjectUiPointerBracket(parent=uicore.layer.bracket, name='SpaceObjectUiPointerBracket') self.bracket.trackBall = targetBall blue.pyos.synchro.Yield() height = 2 * const.defaultPadding + ICON_SIZE self.floatingBox = FloatingBox(name='SpaceObjectUiPointer.box', parent=uicore.layer.abovemain, top=(uicore.desktop.height - height) / 2, left=(uicore.desktop.width - POINTER_WIDTH) / 2, hint=localization.GetByLabel(uiPointer.hint) if uiPointer.hint else None, state=uiconst.UI_NORMAL, itemID=self.itemID) self.icon = uicls.Icon(typeID=typeID, parent=self.floatingBox, width=ICON_SIZE, height=ICON_SIZE, ignoreSize=True, padding=const.defaultPadding, align=uiconst.TOLEFT, OnClick=lambda : sm.GetService('info').ShowInfo(typeID=typeID)) textContainer = uicls.Container(parent=self.floatingBox, align=uiconst.TOALL) self.typeLabel = uicls.EveLabelLarge(name='typeNameLabel', parent=textContainer, text='<url=showinfo:%s//%s>%s</url>' % (typeID, self.itemID, cfg.invtypes.Get(typeID).typeName), top=const.defaultPadding, align=uiconst.TOTOP, state=uiconst.UI_NORMAL) self.messgeLabel = uicls.EveLabelSmall(name='mesageLabel', parent=textContainer, text=localization.GetByLabel(uiPointer.message) if uiPointer.message else '', align=uiconst.TOTOP) self.line = uicls.VectorLine(widthFrom=1.2, widthTo=1.2, translationFrom=(0, 0), translationTo=(10, 10), parent=self.floatingBox, name='spaceObjectBracketPointer', left=self.floatingBox.width / 2, top=self.floatingBox.height / 2, color=TutorialColor.HINT_FRAME, align=uiconst.TOPLEFT) cs = uicore.uilib.bracketCurveSet self.bindings = [] self.bindings.append(trinity.CreateBinding(cs, self.bracket.renderObject, 'displayX', None, '')) self.bindings.append(trinity.CreateBinding(cs, self.bracket.renderObject, 'displayY', None, '')) self.bindings.append(trinity.CreateBinding(cs, self.floatingBox.renderObject, 'displayX', None, '')) self.bindings.append(trinity.CreateBinding(cs, self.floatingBox.renderObject, 'displayY', None, '')) for binding in self.bindings: binding.copyValueCallable = self.Update self.lastUpdateTime = blue.os.GetSimTime() self.speed = 0.0
def ConstructLayout(self): allianceName = cfg.eveowners.Get(self.allianceID).name allianceInfoCont = uicls.Container(name='allianceInfo', parent=self.sr.main, align=uiconst.TOTOP, height=68, padding=const.defaultPadding) allianceLogoCont = uicls.Container(name='allianceLogo', parent=allianceInfoCont, align=uiconst.TOLEFT, width=68) allianceTextCont = uicls.Container(name='allianceName', parent=allianceInfoCont, align=uiconst.TOALL) applicationCont = uicls.Container(name='allianceInfo', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) uiutil.GetOwnerLogo(allianceLogoCont, self.allianceID, size=64, noServerCall=True) allianceText = localization.GetByLabel( 'UI/Corporations/CorpApplications/YourApplicationToJoin', corpName=allianceName) allianceNameLabel = uicls.EveLabelLarge(parent=allianceTextCont, text=allianceText, top=12, align=uiconst.TOPLEFT, width=270) editText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CorporationApplicationText') editLabel = uicls.EveLabelSmall(parent=applicationCont, text=editText, height=16, align=uiconst.TOTOP) if self.application.applicationText is not None: appText = self.application.applicationText else: appText = '' self.applicationText = uicls.EditPlainText(setvalue=appText, parent=applicationCont, align=uiconst.TOTOP, maxLength=1000, height=100, readonly=True) status = uicls.EveLabelSmall( parent=applicationCont, text=localization.GetByLabel( 'UI/Corporations/CorporationWindow/Alliances/Applications/Status' ), align=uiconst.TOTOP, top=6) statusText = STATUSDICT[self.application.state] statusLabel = uicls.EveLabelSmallBold( parent=applicationCont, text=localization.GetByLabel(statusText), height=12, align=uiconst.TOTOP)
def ConstructLayout(self): allianceName = cfg.eveowners.Get(self.allianceID).name allianceInfoCont = uicls.Container(name='allianceInfo', parent=self.sr.main, align=uiconst.TOTOP, height=68, padding=const.defaultPadding) allianceLogoCont = uicls.Container(name='allianceLogo', parent=allianceInfoCont, align=uiconst.TOLEFT, width=68) allianceTextCont = uicls.Container(name='allianceName', parent=allianceInfoCont, align=uiconst.TOALL) applicationCont = uicls.Container(name='allianceInfo', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) uiutil.GetOwnerLogo(allianceLogoCont, self.allianceID, size=64, noServerCall=True) allianceText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/ApplyForMembership', corporation=allianceName) allianceNameLabel = uicls.EveLabelLarge(parent=allianceTextCont, text=allianceText, top=12, align=uiconst.TOPLEFT, width=270) alliance = sm.GetService('alliance').GetAlliance(self.allianceID) corp = sm.GetService('corp').GetCorporation(alliance.executorCorpID) myCorpName = cfg.eveowners.Get(session.corpid).ownerName stdText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/AskJoinAlliance', ceo='-----', ceoID=corp.ceoID, mycorp=myCorpName, alliancename=allianceName, sender=session.charid, mycorpname=myCorpName) editText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CorporationApplicationText') editLabel = uicls.EveLabelSmall(parent=applicationCont, text=editText, height=16, align=uiconst.TOTOP) self.applicationText = uicls.EditPlainText(setvalue=stdText, parent=applicationCont, align=uiconst.TOTOP, maxLength=1000, height=100) appText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/ThisApplicationOverwritesOlderOnes' ) appLabel = uicls.EveLabelMedium(parent=applicationCont, text=appText, align=uiconst.TOTOP, top=8)
def ConstructLayout(self): pad = const.defaultPadding self.sr.footer = uicls.Container(name='footer', parent=self.sr.main, align=uiconst.TOBOTTOM, pos=(0, 0, 0, 25), padding=(pad, pad, pad, pad)) self.sr.cols = uicls.Container(name='col1', parent=self.sr.main, align=uiconst.TOALL) uicls.Line(parent=self.sr.cols, align=uiconst.TOTOP) uicls.Line(parent=self.sr.cols, align=uiconst.TOBOTTOM) self.sr.col1 = uicls.Container(name='col1', parent=self.sr.cols, align=uiconst.TOLEFT, padding=(pad, pad, pad, pad), clipChildren=True) self.sr.col2 = uicls.Container(name='col1', parent=self.sr.cols, align=uiconst.TOLEFT, padding=(pad, pad, pad, pad), clipChildren=True) uicls.Line(parent=self.sr.cols, align=uiconst.TOLEFT) self.sr.col3 = uicls.Container(name='col1', parent=self.sr.cols, align=uiconst.TOLEFT, padding=(pad, pad, pad, pad), clipChildren=True) colTopHeight = 60 self.sr.sourcePinHeader = uicls.Container(name='pinHeader', parent=self.sr.col1, align=uiconst.TOTOP, padding=(pad, 0, pad, pad), pos=(0, 0, 0, colTopHeight)) self.sr.sourcePinList = uicls.Container(name='pinList', parent=self.sr.col1, align=uiconst.TOALL, state=uiconst.UI_PICKCHILDREN) self.sr.transferHeader = uicls.Container(name='transferHeader', parent=self.sr.col2, align=uiconst.TOTOP, padding=(pad, 0, pad, pad), pos=(0, 0, 0, colTopHeight)) self.sr.transferList = uicls.Container(name='transferList', parent=self.sr.col2, align=uiconst.TOALL, state=uiconst.UI_PICKCHILDREN) self.sr.destPinHeader = uicls.Container(name='destPinHeader', parent=self.sr.col3, align=uiconst.TOTOP, padding=(pad, 0, pad, pad), pos=(0, 0, 0, colTopHeight)) self.sr.destPinList = uicls.Container(name='destPinList', parent=self.sr.col3, align=uiconst.TOALL, state=uiconst.UI_PICKCHILDREN) self.sr.footerLeft = uicls.Container(name='footerLeft', parent=self.sr.footer, align=uiconst.TOLEFT) self.sr.footerRight = uicls.Container(name='footerRight', parent=self.sr.footer, align=uiconst.TORIGHT) btns = [(localization.GetByLabel('UI/PI/Common/ExecuteTransfer'), self.GoForTransfer, (), None)] uicls.ButtonGroup(btns=btns, parent=self.sr.footerRight, line=0) self.sr.volumeText = uicls.EveLabelSmall(text='', parent=self.sr.transferHeader, left=0, top=20, state=uiconst.UI_NORMAL) self.sr.timeText = uicls.EveLabelSmall(text='', parent=self.sr.transferHeader, left=0, top=35, state=uiconst.UI_NORMAL) self.sr.timeText.hint = localization.GetByLabel( 'UI/PI/Common/ExpeditedTransferProcessingHint') self.sr.cooldownTimeText = uicls.EveLabelSmall( parent=self.sr.transferHeader, left=0, top=46) self.sr.cooldownTimeText.hint = localization.GetByLabel( 'UI/PI/Common/CoolDownTimeHint') btns = [(localization.GetByLabel('UI/PI/Common/Add'), self.AddBtnClicked, (), None), (localization.GetByLabel('UI/PI/Common/Remove'), self.RemoveBtnClicked, (), None)] btns = uicls.ButtonGroup(btns=btns, parent=self.sr.footerLeft, line=0) for b in btns.children[0].children: b.SetHint( localization.GetByLabel( 'UI/PI/Common/ExpeditedTransferSplitHint')) self.OnResizeUpdate() self.sr.sourcePinHeaderText = uicls.Label( text=planetCommon.GetGenericPinName(self.sourcePin.typeID, self.sourcePin.id), parent=self.sr.sourcePinHeader, align=uiconst.TOPLEFT, fontsize=16, left=0, state=uiconst.UI_NORMAL) self.sr.sourcePinSubGauge = uicls.Gauge( parent=self.sr.sourcePinHeader, value=0.0, color=planetCommon.PLANET_COLOR_STORAGE, label=localization.GetByLabel('UI/PI/Common/Capacity'), left=0, top=24, state=uiconst.UI_NORMAL) self.sr.sourcePinListScroll = uicls.Scroll( parent=self.sr.sourcePinList, name='pinList') content = self.sr.sourcePinListScroll.sr.content content.OnDropData = self.OnSourceScrollDropData self.sr.transferHeaderText = uicls.Label( text=localization.GetByLabel('UI/PI/Common/ToBeTransferred'), parent=self.sr.transferHeader, align=uiconst.TOPLEFT, fontsize=16, left=0, state=uiconst.UI_NORMAL) self.sr.transferListScroll = uicls.Scroll(parent=self.sr.transferList, name='transferList') content = self.sr.transferListScroll.sr.content content.OnDropData = self.OnTransferScrollDropData self.sr.destPinText = uicls.Label(text='', parent=self.sr.destPinHeader, align=uiconst.TOTOP, fontsize=16, state=uiconst.UI_NORMAL, maxLines=1) self.sr.destPinSubText = uicls.EveLabelLarge( text='', parent=self.sr.destPinHeader, align=uiconst.TOTOP, top=5, state=uiconst.UI_HIDDEN) self.sr.destPinSubGauge = uicls.Gauge( parent=self.sr.destPinHeader, value=0.0, color=planetCommon.PLANET_COLOR_STORAGE, label=localization.GetByLabel('UI/PI/Common/Capacity'), left=0, top=24, state=uiconst.UI_HIDDEN) self.sr.destPinListScroll = uicls.Scroll(parent=self.sr.destPinList)
def ConstructExistingFWPlayerHeader(self): self.topCont.Flush() iconSize = 50 rightCont = uicls.Container(name='rightCont', parent=self.topCont, align=uiconst.TORIGHT, width=200, padLeft=2) leftCont = uicls.Container(name='leftCont', parent=self.topCont, clipChildren=True) firstLine = uicls.Container(parent=leftCont, align=uiconst.TOTOP_PROP, height=0.4, padLeft=20) uicls.Sprite( parent=firstLine, align=uiconst.CENTERLEFT, pos=(0, 0, iconSize, iconSize), texturePath='res:/UI/Texture/Icons/FactionalWarfare_64.png') enemyID = facwarCommon.GetFactionMainEnemy(self.factionID) enemyAllyID = facwarCommon.GetFactionSecondaryEnemy(self.factionID) text = localization.GetByLabel( 'UI/FactionWarfare/FWPlayerHeader1', typeID=const.typeFaction, factionID=self.factionID, factionName=self.factionName, enemyID=enemyID, enemyName=cfg.eveowners.Get(enemyID).name, enemyAllyID=enemyAllyID, enemyAllyName=cfg.eveowners.Get(enemyAllyID).name) uicls.EveLabelLarge(parent=firstLine, align=uiconst.CENTERLEFT, state=uiconst.UI_NORMAL, left=iconSize + 20, text=text) secondLine = uicls.Container(parent=leftCont, align=uiconst.TOTOP_PROP, height=0.6, padLeft=20) logo = uicls.LogoIcon(itemID=self.factionID, parent=secondLine, align=uiconst.CENTERLEFT, size=iconSize, ignoreSize=True) enemyID = facwarCommon.GetFactionMainEnemy(self.factionID) labelCont = uicls.ContainerAutoSize(parent=secondLine, align=uiconst.CENTERLEFT, left=iconSize + 20) rank, rankDesc = self.GetCurrentRank() timeServed = self.GetTimeServed() text = localization.GetByLabel('UI/FactionWarfare/FWPlayerHeader2', rank=rank, corp=cfg.eveowners.Get( session.corpid).name, faction=self.factionName, time=timeServed) uicls.EveLabelMedium(parent=labelCont, text=text, tabs=[100]) firstLine = uicls.Container(name='firstLine', parent=rightCont, align=uiconst.TOTOP, height=80) secondLine = uicls.Container(name='secondLine', parent=rightCont, align=uiconst.TOTOP, height=40, top=3) totalPointsCont = uicls.Container( parent=firstLine, pos=(0, 30, 55, 30), align=uiconst.TOPLEFT, state=uiconst.UI_NORMAL, hint=localization.GetByLabel( 'UI/FactionWarfare/WarzoneProgress', points=self.warZoneInfo.factionPoints, pointsTotal=int(self.warZoneInfo.maxWarZonePoints))) uicls.EveLabelSmall( parent=totalPointsCont, text=localization.GetByLabel('UI/FactionWarfare/Points'), align=uiconst.CENTERTOP, top=-15) uicls.Frame(bgParent=totalPointsCont, color=(0.392, 0.635, 0.212, 0.2)) uicls.GradientSprite(bgParent=totalPointsCont, rotation=-pi / 2, rgbData=[(0, (0.239, 0.42, 0.235)), (1, (0.075, 0.157, 0.086))], alphaData=[(0, 1.0), (1, 0.9)]) self.totalPointsLabel = uicls.EveCaptionMedium( parent=totalPointsCont, align=uiconst.CENTER, text=self.warZoneInfo.factionPoints) systemsCont = uicls.Container( parent=firstLine, align=uiconst.TOPLEFT, pos=(65, 5, 50, 100), state=uiconst.UI_NORMAL, hint=localization.GetByLabel( 'UI/FactionWarfare/NumConqueredSystems')) uicls.Sprite(parent=systemsCont, align=uiconst.CENTERTOP, state=uiconst.UI_DISABLED, pos=(0, 0, 32, 32), texturePath='res:/UI/Texture/Icons/Systems_64.png') numSystems = len( sm.GetService('facwar').GetSolarSystemsOccupiedByFactions( [self.factionID])) self.numSystemsLabel = uicls.EveHeaderLarge(parent=systemsCont, align=uiconst.CENTERTOP, top=30, text=numSystems) numUpgrades = self.GetSystemUpgradeNumbers() for i, num in enumerate(numUpgrades): if num: bgColor = util.Color.GetGrayRGBA(0.5, 0.5) else: bgColor = util.Color.GetGrayRGBA(0.2, 0.5) cont = uicls.Container(parent=secondLine, bgColor=bgColor, align=uiconst.TOLEFT, state=uiconst.UI_NORMAL, width=35, padTop=15, padRight=4, hint=localization.GetByLabel( 'UI/FactionWarfare/UpgradeLevelHint', level=util.IntToRoman(i + 1))) uicls.EveLabelMedium(parent=cont, align=uiconst.CENTERTOP, text=util.IntToRoman(i + 1), top=-20) uicls.EveHeaderLarge(parent=cont, align=uiconst.CENTER, text=num)
def ApplyAttributes(self, attributes): uicls.Window.ApplyAttributes(self, attributes) self.itemID = attributes.Get('itemID') lpPool = sm.GetService('facwar').GetSolarSystemLPs() topCont = uicls.Container(name='topCont', parent=self.sr.main, align=uiconst.TOTOP, height=40, padding=(self.PADSIDE, self.PADTOP, self.PADSIDE, self.PADSIDE)) mainCont = uicls.ContainerAutoSize(name='mainCont', parent=self.sr.main, align=uiconst.TOTOP) bottomCont = uicls.Container(name='bottomCont', parent=self.sr.main, align=uiconst.TOBOTTOM, height=100, padTop=self.PADTOP) uicls.EveLabelLarge(parent=topCont, text=localization.GetByLabel( 'UI/FactionWarfare/IHub/SystemUpgradePanel', systemName=cfg.evelocations.Get( session.solarsystemid2).name), align=uiconst.TOPLEFT, top=5) uicls.EveLabelLarge( parent=topCont, text=localization.GetByLabel('UI/FactionWarfare/IHub/TotalLP'), align=uiconst.TOPRIGHT, top=5) self.lpPoolLabel = uicls.EveCaptionSmall(parent=topCont, align=uiconst.TOPRIGHT, top=25) limits = [0] + const.facwarSolarSystemUpgradeThresholds + [ const.facwarSolarSystemMaxLPPool ] self.upgradeBars = [] for i in xrange(1, 7): bar = uicls.FWUpgradeLevelCont(parent=mainCont, align=uiconst.TOTOP, padding=(self.PADSIDE, 0, 10, 10), lowerLimit=limits[i - 1], upperLimit=limits[i], lpAmount=lpPool, level=i, idx=0) self.upgradeBars.append(bar) self.bottomGradient = uicls.GradientSprite(bgParent=bottomCont, rotation=-pi / 2, rgbData=[(0, (0.3, 0.3, 0.3))], alphaData=[(0, 0.3), (0.9, 0.0)]) self.bottomFlashEffect = uicls.GradientSprite(bgParent=bottomCont, rotation=-pi / 2, rgbData=[(0, (0.6, 0.6, 0.6))], alphaData=[(0, 0.3), (0.9, 0.0)], opacity=0.0) uicls.Line(parent=bottomCont, align=uiconst.TOTOP, color=(0.3, 0.3, 0.3, 0.3)) bottomMainCont = uicls.Container(name='bottomMainCont', parent=bottomCont, align=uiconst.CENTER, width=450, height=100) self.myLPLabel = uicls.Label(parent=bottomMainCont, text=self.GetLPOwnedLabel(), align=uiconst.TOPLEFT, left=self.PADSIDE, top=self.PADTOP) self.bottomBottomCont = uicls.Container(name='bottomBottom', align=uiconst.TOPLEFT, pos=(self.PADSIDE, 40, 450, 25), parent=bottomMainCont) self.donateAmountEdit = uicls.SinglelineEdit( parent=self.bottomBottomCont, name='donateAmountEdit', align=uiconst.TOLEFT, setvalue=0, width=155, OnReturn=self.OnDonateLPBtn, OnChange=self.OnDonateValueChanged) self.donateBtn = uicls.Button( parent=self.bottomBottomCont, align=uiconst.TOLEFT, func=self.OnDonateLPBtn, label=localization.GetByLabel('UI/FactionWarfare/IHub/DonateLPs'), padLeft=4) self.donationReceivedLabel = uicls.EveCaptionMedium( name='donationReceivedLabel', parent=bottomMainCont, align=uiconst.TOPLEFT, text=localization.GetByLabel( 'UI/FactionWarfare/IHub/DonationReceived'), left=self.PADSIDE, top=50, opacity=0.0) self.bottomTaxCont = uicls.Container(name='bottomTax', align=uiconst.TOPLEFT, pos=(self.PADSIDE, 73, 400, 25), parent=bottomMainCont) self.myLPToIhubLabel = None factionID = sm.GetService('facwar').GetSystemOccupier( session.solarsystemid) self.myLPTaxLabel = uicls.Label( name='myLPTaxLabel', parent=self.bottomTaxCont, text=localization.GetByLabel( 'UI/FactionWarfare/IHub/maintenanceTax', tax=int(facwarCommon.GetDonationTax(factionID) * 100)), align=uiconst.TOLEFT, state=uiconst.UI_NORMAL, left=5) self.SetLPPoolAmount(lpPool) self.UpdateMyLPAmount() self.UpdateMyLPToIHubLabel() uthread.new(self.CheckOpenThread)
def ConstructLayout(self): self.acceptRb = None self.withdrawRb = None corpName = cfg.eveowners.Get(self.corpid).name corpInfoCont = uicls.Container(name='corpInfo', parent=self.sr.main, align=uiconst.TOTOP, height=68, padding=const.defaultPadding) corpLogoCont = uicls.Container(name='corpLogo', parent=corpInfoCont, align=uiconst.TOLEFT, width=68) corpTextCont = uicls.Container(name='corpName', parent=corpInfoCont, align=uiconst.TOALL) controlCont = uicls.Container(name='buttons', parent=self.sr.main, align=uiconst.TOBOTTOM, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) controlContHeight = 0 applicationCont = uicls.Container(name='applicationCont', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, 0, const.defaultPadding, const.defaultPadding)) uiutil.GetOwnerLogo(corpLogoCont, self.corpid, size=64, noServerCall=True) corpText = localization.GetByLabel( 'UI/Corporations/CorpApplications/YourApplicationToJoin', corpName=corpName) corpNameLabel = uicls.EveLabelLarge(parent=corpTextCont, text=corpText, top=12, align=uiconst.TOPLEFT, width=270) if self.status == const.crpApplicationAppliedByCharacter: statusText = localization.GetByLabel( 'UI/Corporations/CorpApplications/ApplicationNotProcessed') statusLabel = uicls.EveLabelSmall(parent=applicationCont, text=statusText, align=uiconst.TOTOP, padBottom=const.defaultPadding) else: statusText = statusLabel = '' editText = localization.GetByLabel( 'UI/Corporations/BaseCorporationUI/CorporationApplicationText') editLabel = uicls.EveLabelSmall(parent=applicationCont, text=editText, align=uiconst.TOTOP) if self.application.applicationText is not None: appText = self.application.applicationText else: appText = '' self.applicationText = uicls.EditPlainText(setvalue=appText, parent=applicationCont, maxLength=1000, readonly=True) if self.status in (const.crpApplicationAppliedByCharacter, const.crpApplicationAcceptedByCorporation): isWithdrawChecked = True if self.status == const.crpApplicationAcceptedByCorporation: isWithdrawChecked = False self.acceptRb = uicls.Checkbox(text=localization.GetByLabel( 'UI/Corporations/CorpApplications/AcceptApplication'), parent=controlCont, configName='accept', retval=1, checked=True, groupname='stateGroup', align=uiconst.TOBOTTOM) controlContHeight += 40 self.withdrawRb = uicls.Checkbox(text=localization.GetByLabel( 'UI/Corporations/CorpApplications/WithdrawApplication'), parent=controlCont, configName='accept', retval=3, checked=isWithdrawChecked, groupname='stateGroup', align=uiconst.TOBOTTOM) controlContHeight += 20 controlCont.height = controlContHeight
def ConstructLayout(self): topCont = uicls.Container(name='topCont', parent=self.sr.main, align=uiconst.TOTOP, height=135, clipChildren=True, padding=(const.defaultPadding, 0, const.defaultPadding, 0)) self.loadingCont = uicls.Container(name='loadingCont', parent=self.sr.main, align=uiconst.TOALL) self.loadingText = uicls.EveCaptionMedium(text='', parent=self.loadingCont, align=uiconst.CENTER) self.loadingCont.display = True self.historyCont = uicls.Container(name='historyCont', parent=self.sr.main, align=uiconst.TOALL, padding=(const.defaultPadding, const.defaultPadding * 2, const.defaultPadding, const.defaultPadding)) self.historyCont.display = False line = uicls.Line(parent=topCont, align=uiconst.TOBOTTOM) textCont = uicls.Container(name='textCont', parent=topCont, align=uiconst.TOTOP, height=35) self.warDateLabel = uicls.EveLabelMedium(text='', parent=textCont, align=uiconst.CENTER) self.mutualWarLabel = uicls.EveLabelMedium(text=localization.GetByLabel('UI/Corporations/Wars/MutualWar'), parent=textCont, align=uiconst.CENTER) self.mutualWarLabel.display = False warInfoCont = uicls.Container(name='buttonCont', parent=topCont, align=uiconst.TOBOTTOM, height=33) self.surrenderBtn = uicls.ButtonIcon(name='surrenderBtn', parent=warInfoCont, align=uiconst.TOLEFT, width=24, iconSize=24, texturePath='res:/UI/Texture/Icons/Surrender_64.png', func=self.OpenSurrenderWnd) self.surrenderBtn.display = False self.allyBtn = uicls.ButtonIcon(name='allyBtn', parent=warInfoCont, align=uiconst.TORIGHT, width=24, iconSize=24, texturePath='res:/UI/Texture/Icons/Mercenary_64.png', func=self.OpenAllyWnd) warCont = uicls.Container(name='warCont', parent=topCont, align=uiconst.TOALL) attackerCont = uicls.Container(name='attackerCont', parent=warCont, align=uiconst.TOLEFT_PROP, width=0.45) attackerLogoCont = uicls.Container(name='attackerLogoCont', parent=attackerCont, align=uiconst.TORIGHT, width=64) self.attackerLogoDetailed = uicls.Container(name='attackerLogoDetailed', parent=attackerLogoCont, align=uiconst.TOPRIGHT, width=64, height=64) attackerTextCont = uicls.Container(name='attackerTextCont', parent=attackerCont, align=uiconst.TOALL, padding=(4, 0, 8, 4)) self.attackerNameLabel = uicls.EveLabelLarge(text='', parent=attackerTextCont, align=uiconst.TOPRIGHT, state=uiconst.UI_NORMAL) self.attackerISKLostLabel = uicls.EveLabelMedium(text='', parent=attackerTextCont, align=uiconst.CENTERRIGHT, height=16) self.attackerShipsLostLabel = uicls.EveLabelMedium(text='', parent=attackerTextCont, align=uiconst.BOTTOMRIGHT) centerCont = uicls.Container(name='centerCont', parent=warCont, align=uiconst.TOLEFT_PROP, width=0.1) iconSize = 24 swords = uicls.Icon(name='warIcon', parent=centerCont, align=uiconst.CENTER, size=iconSize, ignoreSize=True, state=uiconst.UI_NORMAL) swords.LoadIcon('res:/UI/Texture/Icons/swords.png') swords.SetAlpha(0.7) swords.hint = localization.GetByLabel('UI/Corporations/Wars/Vs') defenderCont = uicls.Container(name='defenderCont', parent=warCont, align=uiconst.TOLEFT_PROP, width=0.45) defenderLogoCont = uicls.Container(name='defenderLogoCont', parent=defenderCont, align=uiconst.TOLEFT, width=64) self.defenderLogoDetailed = uicls.Container(name='defenderLogoDetailed', parent=defenderLogoCont, align=uiconst.TOPLEFT, width=64, height=64) defenderTextCont = uicls.Container(name='defenderTextCont', parent=defenderCont, align=uiconst.TOALL, padding=(8, 0, 4, 4)) self.defenderNameLabel = uicls.EveLabelLarge(text='', parent=defenderTextCont, state=uiconst.UI_NORMAL) self.defenderISKKilledLabel = uicls.EveLabelMedium(text='', parent=defenderTextCont, align=uiconst.CENTERLEFT, height=16) self.defenderShipsKilledLabel = uicls.EveLabelMedium(text='', parent=defenderTextCont, align=uiconst.BOTTOMLEFT) killsFilterCont = uicls.Container(name='killsFilterCont', parent=self.historyCont, align=uiconst.TOTOP, height=24) killOptions = [(localization.GetByLabel('UI/Corporations/Wars/ShowAllKills'), None), (localization.GetByLabel('UI/Corporations/Wars/ShowAggressorKills'), 'attacker'), (localization.GetByLabel('UI/Corporations/Wars/ShowDefenderKills'), 'defender')] comboSetting = settings.user.ui.Get('killComboValue', 0) self.killsFilterCombo = uicls.Combo(name='killsFilterCombo', parent=killsFilterCont, options=killOptions, adjustWidth=True, select=comboSetting, callback=self.OnKillComboChange) showGraph = settings.user.ui.Get('killShowGraph', 0) self.showGraph = uicls.Checkbox(text=localization.GetByLabel('UI/Corporations/Wars/ShowGraph'), parent=killsFilterCont, padLeft=self.killsFilterCombo.width + const.defaultPadding, checked=showGraph, callback=self.ShowGraph) self.killsParent = uicls.Container(name='killsParent', parent=self.historyCont, align=uiconst.TOALL) self.killsScroll = uicls.Scroll(name='killsScroll', parent=self.killsParent) self.killsByGroupParent = uicls.Container(name='killsByGroupParent', parent=self.historyCont, align=uiconst.TOALL) killGroupsCont = uicls.Container(name='killsFilterCont', parent=self.killsByGroupParent, align=uiconst.TOTOP, height=188) self.killGroupsTextCont = uicls.Container(name='killGroupsTextCont', parent=killGroupsCont, align=uiconst.TOLEFT, width=90) self.killGroupsLegendCont = uicls.Container(name='killGroupsTextCont', parent=killGroupsCont, align=uiconst.TOBOTTOM, height=20) self.killGroupsDataCont = uicls.Container(name='killGroupsDataCont', parent=killGroupsCont, align=uiconst.TOALL, padding=(const.defaultPadding, 0, 0, const.defaultPadding), bgColor=util.Color.GetGrayRGBA(0.4, 0.2)) self.killGroupsScroll = uicls.Scroll(name='killGroupsScroll', parent=self.killsByGroupParent) self.LoadInfo(self.warID)
def Startup(self, *etc): uicls.Line(parent=self, align=uiconst.TOBOTTOM) self.icon = uicls.Icon(parent=self, top=TOPMARGIN, size=32, ignoreSize=True, left=4) self.header = uicls.EveLabelLarge(parent=self, left=50, top=TOPMARGIN, state=uiconst.UI_NORMAL) self.text = uicls.EveLabelMedium(parent=self, left=50, state=uiconst.UI_NORMAL)
def ApplyAttributes(self, attributes): self.openTime = blue.os.GetWallclockTime() uicls.Window.ApplyAttributes(self, attributes) self.storeSvc = sm.GetService('store') self.scope = 'station' self.SetMinSize([700, 360]) self.SetCaption( localization.GetByLabel('UI/VirtualGoodsStore/StoreNameCaption')) self.SetTopparentHeight(0) self.lastWidth = self.width self.stationID = session.stationid2 cornerSize = 7 imageHeight = 160 imageWidth = 215 color, bgColor, comp, compsub = sm.GetService( 'window').GetWindowColors() defaultTopButtonContWidth = 210 self.frames = [] self.unresizablePadding = 320 topCont = uicls.Container( parent=self.sr.main, name='topCont', align=uiconst.TOTOP, pos=(0, 0, 0, imageHeight + 2 * const.defaultPadding), padding=(const.defaultPadding, const.defaultPadding, const.defaultPadding, const.defaultPadding)) topButtonCont = uicls.Container(parent=topCont, name='topButtonCont', align=uiconst.TORIGHT, pos=(0, 0, defaultTopButtonContWidth, 0)) bannerCont = uicls.Container(parent=topCont, name='bannerCont', align=uiconst.TOALL, clipChildren=1) fallbackImagePath = 'res:/UI/Texture/Store_MarketingBox_03.png' contWidth = imageWidth + 2 * cornerSize containerInfo = [['topLeftCont', 1], ['topMiddleCont', 2], ['topRightCont', 3]] for contName, adSlotID in containerInfo: cont = uicls.Container( parent=bannerCont, name=contName, align=uiconst.TOLEFT, pos=(0, 0, contWidth, 0), padding=(const.defaultPadding, const.defaultPadding, const.defaultPadding, const.defaultPadding), state=uiconst.UI_NORMAL) sprite = uicls.Sprite(parent=cont, pos=(cornerSize, cornerSize, imageWidth, imageHeight), align=uiconst.BOTTOMLEFT, idx=0) sprite.texturePath = sm.GetService('photo').GetStorebanner( adSlotID, prefs.languageID, sprite) if not sprite.texturePath: sprite.texturePath = sm.GetService('photo').GetStorebanner( adSlotID, 'EN', sprite) if not sprite.texturePath: sprite.texturePath = fallbackImagePath fPadding = 2 fHeight = imageHeight - cornerSize - fPadding frame = uicls.Frame(parent=cont, color=bgColor, align=uiconst.TOBOTTOM, pos=(0, 0, 0, fHeight - 1), spriteEffect=trinity.TR2_SFX_FILL, padding=(fPadding, fPadding, fPadding, fPadding)) self.frames.append(frame) setattr(self, contName, cont) btnPadding = 6 redeemPlexBtn = uicls.Button( parent=topButtonCont, name='redeemPlexBtn', label=localization.GetByLabel('UI/VirtualGoodsStore/RedeemPLEX'), func=self.RedeemPlex, pos=(0, const.defaultPadding + cornerSize, 0, 0), align=uiconst.BOTTOMRIGHT) top = redeemPlexBtn.top + redeemPlexBtn.height + btnPadding buyPlexOnlineBtn = uicls.Button( parent=topButtonCont, name='buyPlexOnline', label=localization.GetByLabel( 'UI/VirtualGoodsStore/BuyPlexOnline'), func=self.BuyPlexOnline, pos=(0, top, 0, 0), align=uiconst.BOTTOMRIGHT) top = buyPlexOnlineBtn.top + buyPlexOnlineBtn.height + btnPadding buyPlexMarketBtn = uicls.Button( parent=topButtonCont, name='buyPlexMarket', label=localization.GetByLabel( 'UI/VirtualGoodsStore/BuyPLEXOnMarket'), func=self.BuyPlexFromMarket, pos=(0, top, 0, 0), align=uiconst.BOTTOMRIGHT) top = buyPlexMarketBtn.top + buyPlexMarketBtn.height + btnPadding sellPlexBtn = uicls.Button( parent=topButtonCont, name='sellPlexBtn', label=localization.GetByLabel( 'UI/VirtualGoodsStore/Buttons/ExchangePLEXForAUR'), func=self.SellPlex, pos=(0, top, 0, 50), align=uiconst.BOTTOMRIGHT) top = sellPlexBtn.top + sellPlexBtn.height + btnPadding self.aurWealthLabel = uicls.EveLabelLarge(text='<right>%s' % util.FmtAUR(0), parent=topButtonCont, name='aurWealth', align=uiconst.BOTTOMRIGHT, state=uiconst.UI_DISABLED, left=16, top=top, width=300) self.aurWealthLabel.amount = 0 b = uicls.EveHeaderSmall( text=localization.GetByLabel('UI/VirtualGoodsStore/Balance'), parent=topButtonCont, align=uiconst.BOTTOMRIGHT, left=16, top=self.aurWealthLabel.top + self.aurWealthLabel.height, state=uiconst.UI_DISABLED) maxWidth = max(160, redeemPlexBtn.width, sellPlexBtn.width, buyPlexMarketBtn.width, buyPlexOnlineBtn.width) left = int((defaultTopButtonContWidth - maxWidth) / 2.0) redeemPlexBtn.width = sellPlexBtn.width = buyPlexMarketBtn.width = buyPlexOnlineBtn.width = maxWidth redeemPlexBtn.left = sellPlexBtn.left = buyPlexMarketBtn.left = left buyPlexOnlineBtn.left = b.left = self.aurWealthLabel.left = left scrollParent = uicls.Container(parent=self.sr.main, name='scrollParent', align=uiconst.TOALL) self.scroll = uicls.Scroll( parent=scrollParent, padding=(const.defaultPadding, const.defaultPadding, const.defaultPadding, const.defaultPadding + 2)) uthread.new(self.DisplayAurWealth) self.scroll.sr.id = 'vsgScroll' self.scroll.sr.fixedColumns = { ' ': 72, localization.GetByLabel('UI/VirtualGoodsStore/Gender'): 100, localization.GetByLabel('UI/VirtualGoodsStore/Price'): 100 } self.scroll.sr.defaultColumnWidth = { localization.GetByLabel('UI/VirtualGoodsStore/ItemName'): 350 } self.scroll.sr.minColumnWidth = { localization.GetByLabel('UI/VirtualGoodsStore/ItemName'): 100 } self.scroll.sr.notSortableColumns = [' '] self.scroll.ScalingCol = self.StoreScalingCol self.scroll.showColumnLines = False self.PopulateOfferScroll()