add background image for expansion divider
This commit is contained in:
parent
67221ec251
commit
2b04a7bd58
@ -81,7 +81,7 @@ class DominionTabs:
|
|||||||
CardType(('Victory','Reaction'), 'victory-reaction.png', 0, 1),
|
CardType(('Victory','Reaction'), 'victory-reaction.png', 0, 1),
|
||||||
CardType(('Victory','Shelter'), 'shelter.png', 0, 1),
|
CardType(('Victory','Shelter'), 'shelter.png', 0, 1),
|
||||||
CardType(('Curse',), 'curse.png',3),
|
CardType(('Curse',), 'curse.png',3),
|
||||||
CardType(('Expansion',), '')
|
CardType(('Expansion',), 'expansion.png',4)
|
||||||
]
|
]
|
||||||
|
|
||||||
cardTypes = dict(((c.getTypeNames(),c) for c in cardTypes))
|
cardTypes = dict(((c.getTypeNames(),c) for c in cardTypes))
|
||||||
@ -173,11 +173,12 @@ class DominionTabs:
|
|||||||
textWidth = 85
|
textWidth = 85
|
||||||
textHeight = self.tabLabelHeight/2-7+card.getType().getTabTextHeightOffset()
|
textHeight = self.tabLabelHeight/2-7+card.getType().getTabTextHeightOffset()
|
||||||
|
|
||||||
|
self.canvas.drawImage(os.path.join(self.filedir,'images',card.getType().getNoCoinTabImageFile()),1,0,
|
||||||
|
self.tabLabelWidth-2,self.tabLabelHeight-1,
|
||||||
|
preserveAspectRatio=False,anchor='n',mask='auto')
|
||||||
|
|
||||||
if card.getType().getTypeNames() != ('Expansion',):
|
if card.getType().getTypeNames() != ('Expansion',):
|
||||||
textInset = 22
|
textInset = 22
|
||||||
self.canvas.drawImage(os.path.join(self.filedir,'images',card.getType().getNoCoinTabImageFile()),1,0,
|
|
||||||
self.tabLabelWidth-2,self.tabLabelHeight-1,
|
|
||||||
preserveAspectRatio=False,anchor='n',mask='auto')
|
|
||||||
|
|
||||||
|
|
||||||
costHeight = textHeight + card.getType().getTabCostHeightOffset()
|
costHeight = textHeight + card.getType().getTabCostHeightOffset()
|
||||||
|
|||||||
BIN
images/expansion_nc.png
Normal file
BIN
images/expansion_nc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 967 KiB |
BIN
img_sources/expansion.pxm
Normal file
BIN
img_sources/expansion.pxm
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user