Adding --no-card-rules option for ommitting card rules from tab body.

This commit is contained in:
Aaron Jensen 2015-06-04 19:58:26 -07:00
parent bc06c33a17
commit 7e7818c986

5
dominion_tabs.py Normal file → Executable file
View File

@ -443,6 +443,9 @@ class DominionTabs:
if drewTopIcon: if drewTopIcon:
usedHeight += 15 usedHeight += 15
if self.options.no_card_rules:
return
# draw text # draw text
if useExtra and card.extra: if useExtra and card.extra:
descriptions = (card.extra,) descriptions = (card.extra,)
@ -794,6 +797,8 @@ class DominionTabs:
help="Path to file that enumerates each card to be printed on its own line.") help="Path to file that enumerates each card to be printed on its own line.")
parser.add_option("--no-tab-artwork", action="store_true", dest="no_tab_artwork", parser.add_option("--no-tab-artwork", action="store_true", dest="no_tab_artwork",
help="don't show background artwork on tabs") help="don't show background artwork on tabs")
parser.add_option("--no-card-rules", action="store_true", dest="no_card_rules",
help="don't print the card's rules on the tab body")
options, args = parser.parse_args(argstring) options, args = parser.parse_args(argstring)
if not options.cost: if not options.cost: