From f0a2da3ad28d6df782baf2cec3b6f193ffb91448 Mon Sep 17 00:00:00 2001 From: Sumpfork Date: Wed, 1 Jan 2014 13:23:20 -0800 Subject: [PATCH] add option to centre expansion divider tabs, and turn it off by default (cropmarks for this option still need work) --- dominion_tabs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dominion_tabs.py b/dominion_tabs.py index ade8097..2a13031 100644 --- a/dominion_tabs.py +++ b/dominion_tabs.py @@ -146,7 +146,7 @@ class DominionTabs: self.canvas.scale(-1,1) if not self.options.cropmarks and not isBack: #don't draw outline on back, in case lines don't line up with front - if isExpansionDivider: + if isExpansionDivider and self.options.centre_expansion_dividers: outline = self.expansionTabOutline else: outline = self.tabOutline @@ -238,7 +238,7 @@ class DominionTabs: def drawTab(self, card, rightSide): #draw tab flap self.canvas.saveState() - if card.isExpansion(): + if card.isExpansion() and self.options.centre_expansion_dividers: self.canvas.translate(self.tabWidth/2-self.tabLabelWidth/2, self.tabHeight-self.tabLabelHeight) elif not rightSide: @@ -656,6 +656,8 @@ class DominionTabs: help='print the base cards as part of the expansion; ie, a divider for "Silver"' 'will be printed as both a "Dominion" card and as an "Intrigue" card; if this' 'option is not given, all base cards are placed in their own "Base" expansion') + parser.add_option("--centre_expansion_dividers", action="store_true", dest="centre_expansion_dividers", + help='centre the tabs on expansion dividers') options, args = parser.parse_args(argstring) if not options.cost: