actionPanelDefaults.py (2355B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\inflight\actionPanelDefaults.py 2 from carbonui import uiconst 3 from carbonui.uicore import uicore 4 from carbonui.control.window import Window 5 default_width = 566 6 activeItem_default_height_large = 174 7 activeItem_default_height_medium = 174 8 activeItem_default_height_small = 138 9 overview_default_height_large = 690 10 overview_default_height_medium = 640 11 overview_default_height_small = 380 12 droneView_default_height_large = 216 13 droneView_default_height_medium = 156 14 droneView_default_height_small = 156 15 16 def _GetWidth(): 17 return default_width 18 19 20 def GetActiveItemLeft(): 21 return uicore.desktop.width - GetActiveItemWidth() - 16 22 23 24 def GetActiveItemTop(): 25 return 16 26 27 28 def GetActiveItemWidth(): 29 return _GetWidth() 30 31 32 def GetActiveItemHeight(): 33 height = uicore.desktop.height 34 if height >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_LARGE: 35 return activeItem_default_height_large 36 if height >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_MEDIUM: 37 return activeItem_default_height_medium 38 return activeItem_default_height_small 39 40 41 def GetOverviewLeft(): 42 return uicore.desktop.width - GetOverviewWidth() - 16 43 44 45 def GetOverviewTop(): 46 return GetActiveItemTop() + GetActiveItemHeight() 47 48 49 def GetOverviewWidth(): 50 return _GetWidth() 51 52 53 def GetOverviewHeight(): 54 deviceHeight = uicore.desktop.height 55 if deviceHeight >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_LARGE: 56 return overview_default_height_large 57 if deviceHeight >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_MEDIUM: 58 return overview_default_height_medium 59 return overview_default_height_small 60 61 62 def GetDroneViewLeft(): 63 return uicore.desktop.width - GetDroneViewWidth() - 16 64 65 66 def GetDroneViewTop(): 67 topRight_TopOffset = Window.GetTopRight_TopOffset() 68 if topRight_TopOffset is not None: 69 return topRight_TopOffset 70 return GetOverviewTop() + GetOverviewHeight() 71 72 73 def GetDroneViewWidth(): 74 return _GetWidth() 75 76 77 def GetDroneViewHeight(): 78 deviceHeight = uicore.desktop.height 79 if deviceHeight >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_LARGE: 80 return droneView_default_height_large 81 if deviceHeight >= uiconst.UI_DEFAULT_HEIGHT_THRESHOLD_MEDIUM: 82 return droneView_default_height_medium 83 return droneView_default_height_small