diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-08 10:59:28 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-10-18 14:32:13 +0200 |
| commit | 53521f5ff633b0a0c5c608ccd4164ecf74eff7a2 (patch) | |
| tree | b8d073a21f730064e39c36db23fcb6ba3ab01869 /latex/tikzcards.tex | |
| parent | 4e37236a92d0dfd1f0df5309b13a9f7fce4131de (diff) | |
| download | muhqs-game-53521f5ff633b0a0c5c608ccd4164ecf74eff7a2.tar.gz muhqs-game-53521f5ff633b0a0c5c608ccd4164ecf74eff7a2.zip | |
add tokens to tikzcards and add recruiting action to recruiter
Tokens have a unique background color and are marked as TOKEN on the card.
The latex commands to generate cards now takes the card title as argument.
Card names or TOKEN is printed on the left type strip to make cards
easier recognizable when hold in hands.
Diffstat (limited to 'latex/tikzcards.tex')
| -rw-r--r-- | latex/tikzcards.tex | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/latex/tikzcards.tex b/latex/tikzcards.tex index ca08316c..a7cf2158 100644 --- a/latex/tikzcards.tex +++ b/latex/tikzcards.tex @@ -76,7 +76,12 @@ } % Kategorie der Karte -\newcommand{\cardtype}[3]{ +% arg1: Background +% arg2: Type +% arg3: TypeIcon +% arg4: Text for left stripe +% arg5: Title +\newcommand{\cardtype}[5]{ % First we fill the intersecting area % The \clip command does not allow options, therefore % we have to use a scope to set the even odd rule. @@ -87,17 +92,25 @@ % Fill shapeLeftStripLong and shapeLeftStripShort. % Since the even odd rule is set, only the card will be filled. \fill[strip,#1] \shapeLeftStripLong node[rotate=90,above left=0.9mm,font=\normalsize] { - \color{white}\uppercase{#2} + \color{white}\uppercase{#4 - #2} }; \fill[strip,#1] \shapeLeftStripShort; \end{scope} \node at (\strippadding+0.5*\stripwidth,\cardheight-\strippadding-\strippadding-0.37) {\color{white}#3}; + + \cardtitle{#5} } -\newcommand{\cardtypeUnit}{\cardtype{unitbg}{Unit}{\LARGE\sympawn}} -\newcommand{\cardtypeSpell}{\cardtype{spellbg}{Spell}{\Large\faBolt}} -\newcommand{\cardtypeArtifact}{\cardtype{artifactbg}{Artifact}{\LARGE\decoone}} -\newcommand{\cardtypeEquipment}{\cardtype{equipmentbg}{Equipment}{\huge\dag}} +\newcommand{\cardtypeUnitToken}[1]{\cardtype{tokenbg}{Unit}{\LARGE\sympawn}{TOKEN}{{\Large TOKEN} \\ #1}} +\newcommand{\cardtypeUnit}[1]{\cardtype{unitbg}{Unit}{\LARGE\sympawn}{#1}{#1}} + +\newcommand{\cardtypeSpell}[1]{\cardtype{spellbg}{Spell}{\Large\faBolt}{#1}{#1}} + +\newcommand{\cardtypeArtifactToken}[1]{\cardtype{tokenbg}{Artifact}{\LARGE\decoone}{TOKEN}{{\Large TOKEN} \\ #1}} +\newcommand{\cardtypeArtifact}[1]{\cardtype{artifactbg}{Artifact}{\LARGE\decoone}{#1}{#1}} + +\newcommand{\cardtypeEquipmentToken}[1]{\cardtype{tokenbg}{Equipment}{\huge\dag}{TOKEN}{{\Large TOKEN} \\ #1}} +\newcommand{\cardtypeEquipment}[1]{\cardtype{equipmentbg}{Equipment}{\huge\dag}{#1}{#1}} % Titel der Karte \newcommand{\cardtitle}[1]{ |
