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

Method _buildSkillsTooltip

gui/characterSelection.py:292–314  ·  view source on GitHub ↗
(self, reqs, currItem="", tabulationLevel=0)

Source from the content-addressed store, hash-verified

290 toClipboard(list)
291
292 def _buildSkillsTooltip(self, reqs, currItem="", tabulationLevel=0):
293 tip = ""
294 sCharacter = Character.getInstance()
295
296 if tabulationLevel == 0:
297 for item, subReqs in reqs.items():
298 tip += "%s:\n" % item.name
299 tip += self._buildSkillsTooltip(subReqs, item.name, 1)
300 else:
301 for name, info in reqs.items():
302 level, ID, more = info
303 sCharacter.skillReqsDict['skills'].append({
304 'item': currItem,
305 'skillID': ID,
306 'skill': name,
307 'level': level,
308 'indent': tabulationLevel,
309 })
310
311 tip += "%s%s: %d\n" % (" " * tabulationLevel, name, level)
312 tip += self._buildSkillsTooltip(more, currItem, tabulationLevel + 1)
313
314 return tip
315
316 def _buildSkillsTooltipCondensed(self, reqs, currItem="", tabulationLevel=0, skillsMap=None):
317 if skillsMap is None:

Callers 1

fitChangedMethod · 0.95

Calls 3

itemsMethod · 0.80
getInstanceMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected