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

Method getImageId

gui/builtinViewColumns/ammoIcon.py:39–50  ·  view source on GitHub ↗
(self, stuff)

Source from the content-addressed store, hash-verified

37 return ""
38
39 def getImageId(self, stuff):
40 if not isinstance(stuff, Module):
41 return -1
42
43 if stuff.charge is None:
44 return -1
45 else:
46 iconFile = stuff.charge.iconID if stuff.charge.iconID else ""
47 if iconFile:
48 return self.fittingView.imageList.GetImageIndex(iconFile, "icons")
49 else:
50 return -1
51
52 def getToolTip(self, mod):
53 if isinstance(mod, Module) and mod.charge is not None:

Callers

nothing calls this directly

Calls 1

GetImageIndexMethod · 0.80

Tested by

no test coverage detected