add background image for expansion divider
This commit is contained in:
parent
689b87424d
commit
59902146c2
@ -81,7 +81,7 @@ class DominionTabs:
|
||||
CardType(('Victory','Reaction'), 'victory-reaction.png', 0, 1),
|
||||
CardType(('Victory','Shelter'), 'shelter.png', 0, 1),
|
||||
CardType(('Curse',), 'curse.png',3),
|
||||
CardType(('Expansion',), '')
|
||||
CardType(('Expansion',), 'expansion.png',4)
|
||||
]
|
||||
|
||||
cardTypes = dict(((c.getTypeNames(),c) for c in cardTypes))
|
||||
@ -173,12 +173,13 @@ class DominionTabs:
|
||||
textWidth = 85
|
||||
textHeight = self.tabLabelHeight/2-7+card.getType().getTabTextHeightOffset()
|
||||
|
||||
if card.getType().getTypeNames() != ('Expansion',):
|
||||
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')
|
||||
|
||||
if card.getType().getTypeNames() != ('Expansion',):
|
||||
textInset = 22
|
||||
|
||||
|
||||
costHeight = textHeight + card.getType().getTabCostHeightOffset()
|
||||
potHeight = 3 + card.getType().getTabTextHeightOffset()
|
||||
|
||||
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