Add icons to skill context menu
This commit is contained in:
@@ -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
BIN
icons/lvl0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 196 B |
BIN
icons/lvl1.png
Normal file
BIN
icons/lvl1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 212 B |
BIN
icons/lvl2.png
Normal file
BIN
icons/lvl2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 200 B |
BIN
icons/lvl3.png
Normal file
BIN
icons/lvl3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 B |
BIN
icons/lvl4.png
Normal file
BIN
icons/lvl4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 199 B |
BIN
icons/lvl5.png
Normal file
BIN
icons/lvl5.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 194 B |
Reference in New Issue
Block a user