MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / getData

Method getData

gui/builtinContextMenus/envEffectAdd.py:103–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.mainFrame.command.Submit(cmd.GuiAddProjectedModuleCommand(fitID, swObj))
102
103 def getData(self):
104 data = Group()
105 data.groups[_t('Metaliminal Storm')] = self.getEffectBeacons(
106 _t('ContextMenu|ProjectedEffectManipulation|Electrical'),
107 _t('ContextMenu|ProjectedEffectManipulation|Exotic'),
108 _t('ContextMenu|ProjectedEffectManipulation|Gamma'),
109 _t('ContextMenu|ProjectedEffectManipulation|Plasma'),
110 extra_garbage=(
111 _t('ContextMenu|ProjectedEffectManipulation|Metaliminal'),
112 _t('ContextMenu|ProjectedEffectManipulation|Storm'),
113 _t('ContextMenu|ProjectedEffectManipulation|Matter'),
114 _t('ContextMenu|ProjectedEffectManipulation|Ray'),
115 _t('ContextMenu|ProjectedEffectManipulation|Firestorm')))
116 data.groups[_t('Wormhole')] = self.getEffectBeacons(
117 _t('ContextMenu|ProjectedEffectManipulation|Black Hole'),
118 _t('ContextMenu|ProjectedEffectManipulation|Cataclysmic Variable'),
119 _t('ContextMenu|ProjectedEffectManipulation|Magnetar'),
120 _t('ContextMenu|ProjectedEffectManipulation|Pulsar'),
121 _t('ContextMenu|ProjectedEffectManipulation|Red Giant'),
122 _t('ContextMenu|ProjectedEffectManipulation|Wolf Rayet'))
123 data.groups[_t('Abyssal Weather')] = self.getAbyssalWeather()
124 data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(
125 _t('ContextMenu|ProjectedEffectManipulation|Sansha Incursion'))
126 data.groups[_t('Drifter Incursion')] = self.getDrifterIncursion()
127 data.groups[_t('Triglavian Invasion')] = self.getInvasionBeacons()
128 data.groups[_t('Pirate Insurgency')] = self.getEffectBeacons(
129 _t('ContextMenu|ProjectedEffectManipulation|Insurgency'),
130 extra_garbage=(_t('ContextMenu|ProjectedEffectManipulation|Beacon'),))
131 data.groups[_t('IHub Upgrades')] = self.getIHubEffects()
132 return data
133
134 def getEffectBeacons(self, *groups, extra_garbage=()):
135 """

Callers 1

getSubMenuMethod · 0.95

Calls 7

getEffectBeaconsMethod · 0.95
getAbyssalWeatherMethod · 0.95
getDrifterIncursionMethod · 0.95
getInvasionBeaconsMethod · 0.95
getIHubEffectsMethod · 0.95
GroupClass · 0.70
_tFunction · 0.50

Tested by

no test coverage detected