eveWindowDropDownMenu.py (1010B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\control\eveWindowDropDownMenu.py 2 import carbonui.const as uiconst 3 from carbonui.primitives.fill import Fill 4 from carbonui.primitives.line import Line 5 from eve.client.script.ui.control.eveLabel import EveLabelSmall 6 from carbonui.control.windowDropDownMenu import WindowDropDownMenuCore, WindowDropDownMenuCoreOverride 7 8 class WindowDropDownMenu(WindowDropDownMenuCore): 9 __guid__ = 'uicls.WindowDropDownMenu' 10 11 def PrepareLayout(self): 12 Line(parent=self, align=uiconst.TORIGHT) 13 self.textLabel = EveLabelSmall(text=self.name, parent=self, align=uiconst.CENTER, state=uiconst.UI_DISABLED) 14 self.hilite = Fill(parent=self, state=uiconst.UI_HIDDEN, padding=1) 15 self.width = self.textLabel.width + 10 16 self.cursor = uiconst.UICURSOR_SELECT 17 18 def GetTextHeight(self): 19 return self.textLabel.textheight 20 21 22 WindowDropDownMenuCoreOverride.__bases__ = (WindowDropDownMenu,)