Add icons to skill context menu

This commit is contained in:
blitzmann
2014-05-28 22:32:23 -04:00
parent 1c84e9dc4b
commit 0d1c7b93be
7 changed files with 4 additions and 3 deletions

View File

@@ -77,9 +77,10 @@ class ChangeAffectingSkills(ContextMenu):
skillItem = wx.MenuItem(m, wx.NewId(), skill.item.name)
sub = wx.Menu()
skillItem.SetSubMenu(sub)
bitmap = bitmapLoader.getBitmap("level%s" % skill.level, "icons")
if bitmap is not None:
skillItem.SetBitmap(bitmap)
if skill.learned:
bitmap = bitmapLoader.getBitmap("lvl%s" % skill.level, "icons")
if bitmap is not None:
skillItem.SetBitmap(bitmap)
for i in xrange(-1, 6):
levelItem = self.addSkill(menu, skill, i)

BIN
icons/lvl0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

BIN
icons/lvl1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

BIN
icons/lvl2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

BIN
icons/lvl3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

BIN
icons/lvl4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

BIN
icons/lvl5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B