standingsTooltip.py (1393B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\agencyNew\ui\tooltips\standingsTooltip.py 2 from carbonui import uiconst 3 from carbonui.control.button import Button 4 from eve.client.script.ui.control.tooltips import TooltipPanel 5 from eve.client.script.ui.control import tooltipConst 6 from eve.client.script.ui.shared.neocom.characterSheetWindow import CharacterSheetWindow 7 from eve.client.script.ui.tooltips.tooltipsWrappers import TooltipBaseWrapper 8 from localization import GetByLabel 9 10 class StandingsTooltip(TooltipBaseWrapper): 11 12 def CreateTooltip(self, parent, owner, idx): 13 self.tooltipPanel = TooltipPanel(parent=parent, owner=owner, idx=idx) 14 self.tooltipPanel.LoadGeneric1ColumnTemplate() 15 self.tooltipPanel.SetState(uiconst.UI_NORMAL) 16 self.tooltipPanel.margin = tooltipConst.TOOLTIP_MARGIN 17 self.tooltipPanel.AddLabelMedium(text=GetByLabel('UI/Agency/Tooltips/Agents/StandingsSystem'), wrapWidth=250) 18 self.tooltipPanel.AddSpacer(height=5) 19 button = Button(name='openFwButton', align=uiconst.CENTERLEFT, texturePath='res:/UI/Texture/WindowIcons/charactersheet.png', label=GetByLabel('UI/Standings/openCharacterStandings'), func=lambda x: CharacterSheetWindow.OpenStandings()) 20 self.tooltipPanel.AddCell(button, cellPadding=(0, 10, 0, 10)) 21 return self.tooltipPanel