コード例 #1
0
 def ToggleNeocomPanel(self):
     isOpen = self._openNeocomPanel and not self._openNeocomPanel.destroyed
     sm.GetService('neocom').CloseAllPanels()
     if isOpen:
         self._openNeocomPanel = None
     else:
         self._openNeocomPanel = sm.GetService('neocom').ShowPanel(self, neocomPanels.PanelOverflow, neocomCommon.PANEL_SHOWONSIDE, parent=uicore.layer.abovemain, btnData=None)
     RefreshTooltipForOwner(self)
コード例 #2
0
 def ToggleNeocomPanel(self):
     isOpen = self._openNeocomPanel and not self._openNeocomPanel.destroyed
     sm.GetService('neocom').CloseAllPanels()
     if isOpen:
         self._openNeocomPanel = None
     else:
         self._openNeocomPanel = sm.GetService('neocom').ShowEveMenu()
     RefreshTooltipForOwner(self)
コード例 #3
0
 def ToggleNeocomPanel(self):
     isOpen = self._openNeocomPanel and not self._openNeocomPanel.destroyed
     sm.GetService('neocom').CloseAllPanels()
     if isOpen:
         self._openNeocomPanel = None
     else:
         self._openNeocomPanel = sm.GetService('neocom').ShowPanel(triggerCont=self, panelClass=self.GetPanelClass(), panelAlign=neocomCommon.PANEL_SHOWONSIDE, parent=uicore.layer.abovemain, btnData=self.btnData)
     RefreshTooltipForOwner(self)