diff --git a/dominion_tabs.py b/dominion_tabs.py index ca23ced..da41e8f 100644 --- a/dominion_tabs.py +++ b/dominion_tabs.py @@ -51,9 +51,9 @@ class DominionTabs: ('Treasure',) : 'treasure.png', ('Treasure','Victory') : 'treasure-victory.png', ('Treasure','Prize') : 'treasure.png', - ('Treasure','Reaction') : 'treasure.png', + ('Treasure','Reaction') : 'treasure-reaction.png', ('Victory',) : 'victory.png', - ('Victory','Reaction') : 'victory.png', + ('Victory','Reaction') : 'victory-reaction.png', ('Victory','Shelter') : 'victory.png', ('Curse',) : 'curse.png' } @@ -100,7 +100,8 @@ class DominionTabs: self.canvas.drawImage(os.path.join('images',DominionTabs.labelImages[card.types]),1,0, self.tabLabelWidth-2,self.tabLabelHeight-1, preserveAspectRatio=False,anchor='n') - if card.types[0] == 'Treasure' or card.types == ('Curse',): + if card.types[0] == 'Treasure' and (len(card.types) == 1 or card.types[1] != 'Reaction')\ + or card.types == ('Curse',): textHeight = self.tabLabelHeight/2-4 costHeight = textHeight potSize = 12 @@ -108,6 +109,9 @@ class DominionTabs: else: textHeight = self.tabLabelHeight/2-7 costHeight = textHeight-1 + if card.types == ('Victory','Reaction') or\ + card.types == ('Treasure','Reaction'): + costHeight = textHeight+1 potSize = 11 potHeight = 2 diff --git a/images/treasure-reaction.png b/images/treasure-reaction.png new file mode 100644 index 0000000..3da891a Binary files /dev/null and b/images/treasure-reaction.png differ diff --git a/images/victory-reaction.png b/images/victory-reaction.png new file mode 100644 index 0000000..c2e9b9a Binary files /dev/null and b/images/victory-reaction.png differ diff --git a/img_sources/treasure-reaction.xcf b/img_sources/treasure-reaction.xcf new file mode 100644 index 0000000..d14c79a Binary files /dev/null and b/img_sources/treasure-reaction.xcf differ diff --git a/img_sources/victory-reaction.xcf b/img_sources/victory-reaction.xcf new file mode 100644 index 0000000..293c2b9 Binary files /dev/null and b/img_sources/victory-reaction.xcf differ