buttonEvent.py (845B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\neocom\neocom\buttonEvent.py 2 import localization 3 from carbonui import const as uiconst 4 from carbonui.uicore import uicore 5 from eve.client.script.ui.shared.neocom.neocom.buttons.baseNeocomButton import BaseNeocomButton 6 7 class ButtonEvent(BaseNeocomButton): 8 9 def LoadTooltipPanel(self, tooltipPanel, owner): 10 tooltipPanel.LoadGeneric3ColumnTemplate() 11 description = localization.GetByLabel(self.btnData.descriptionPath) 12 tooltipPanel.AddLabelShortcut(self.btnData.label, None) 13 tooltipPanel.AddLabelMedium(text=description, align=uiconst.TOPLEFT, wrapWidth=200, colSpan=tooltipPanel.columns, color=(0.6, 0.6, 0.6, 1)) 14 15 def OnClickCommand(self): 16 uicore.cmd.GetCommandAndExecute(self.btnData.cmdName)