diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-04-07 09:52:52 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-04-07 09:52:52 +0200 |
| commit | 163b9fa3be5fb0ecf2df29c9b1e0eb296aecc807 (patch) | |
| tree | 72b07a1c19971eb90269465f6de97e8fc89a6b33 | |
| parent | cee5cd1fe6fd94105f8cf979491739716c96f4aa (diff) | |
| download | muhqs-game-163b9fa3be5fb0ecf2df29c9b1e0eb296aecc807.tar.gz muhqs-game-163b9fa3be5fb0ecf2df29c9b1e0eb296aecc807.zip | |
add unit_explanation special cards
| -rw-r--r-- | latex/Makefile | 12 | ||||
| -rw-r--r-- | latex/cards/de/unit_explanation.tex | 64 | ||||
| -rw-r--r-- | latex/cards/en/unit_explanation.tex | 64 |
3 files changed, 136 insertions, 4 deletions
diff --git a/latex/Makefile b/latex/Makefile index a3739ff3..950dad6c 100644 --- a/latex/Makefile +++ b/latex/Makefile @@ -44,8 +44,8 @@ SETS_TEX := $(foreach set, $(SETS), $(addprefix $(SETS_TEX_DIR)/, $(set).tex)) SETS_PDF_DIR := $(BUILDDIR) SETS_PDF := $(foreach set, $(SETS), $(addprefix $(SETS_PDF_DIR)/, $(set).pdf)) -# Add yml dirs to VPATH, the place make will look for the source files -VPATH = $(SETS_SOURCEDIRS) $(SETS_TEXDIRS) $(SETS_TEX_DIR) +# Add all dirs to VPATH where we generate or store dependencies +VPATH = $(SETS_SOURCEDIRS) $(SETS_TEXDIRS) $(SETS_TEX_DIR) $(CARDS_TEX_DIR) # Create a list of yaml card definitions CARDS_YML := $(foreach dir,$(SETS_SOURCEDIRS),$(wildcard $(dir)/*.yml)) @@ -53,6 +53,10 @@ CARDS_TEX := $(subst $(CARDS_YML_DIR),$(CARDS_TEX_DIR),$(CARDS_YML:.yml=.tex)) CARDS_PDF := $(subst $(CARDS_YML_DIR),$(BUILDDIR),$(CARDS_YML:.yml=.pdf)) CARDS_PNG = $(CARDS_PDF:.pdf=.png) +SPECIAL_CARDS_TEX := unit_explanation.tex +SPECIAL_CARDS_PDF := $(foreach card, $(SPECIAL_CARDS_TEX), $(addprefix $(BUILDDIR)/, $(card:.tex=.pdf))) +SPECIAL_CARDS_PNG := $(SPECIAL_CARDS_PDF:.pdf=.png) + VERBOSE ?= @ MAKEFILE_LIST = Makefile @@ -120,8 +124,8 @@ cards-all: cards-tex cards-pdf cards-png @echo "building $(LANGUAGE) cards" cards-tex: $(CARDS_TEX) -cards-pdf: $(CARDS_PDF) -cards-png: $(CARDS_PNG) +cards-pdf: $(CARDS_PDF) $(SPECIAL_CARDS_PDF) $(BUILDDIR)/cards.pdf +cards-png: $(CARDS_PNG) $(SPECIAL_CARDS_PNG) $(BUILDDIR)/cards.pdf: $(CARDS_PDF) $(MAKEFILE_LIST) @echo "building › › $@" diff --git a/latex/cards/de/unit_explanation.tex b/latex/cards/de/unit_explanation.tex new file mode 100644 index 00000000..bae3612c --- /dev/null +++ b/latex/cards/de/unit_explanation.tex @@ -0,0 +1,64 @@ +\documentclass{standalone} +% \standaloneconfig{border=left bottom right top} +\standaloneconfig{border=0.5cm 1cm 0.6cm 0.75cm} +\input{common.tex} + +\usepackage{standalone} + +\begin{document} + +\includestandalone{cards/de/base/knight} + +\hspace{-0.19cm} +\begin{tikzpicture}[ +overlay, +box/.style={red, draw}, +] + + \coordinate (typeSymbol) at (-\cardwidth + \stripwidth - \strippadding, \cardheight - \strippadding*3.8); + \coordinate (typeLine) at (-\cardwidth + \stripwidth - \strippadding, \cardheight - \strippadding*7.5); + \coordinate (buycost) at (-\stripwidth + \strippadding / 2, \cardheight - \strippadding*4); + + \coordinate (title) at (-\cardwidth / 2, \cardheight - \strippadding*4); + + \coordinate (stats) at (-\cardwidth + \contentLeft*2, \contentBottom * 2.5); + + \coordinate (effect) at (-\cardwidth + \contentLeft*2, \contentBottom * 1.2); + + \coordinate (playcost) at (-\stripwidth + \strippadding / 2, \strippadding*2); + \coordinate (set) at (-\cardwidth + \stripwidth - \strippadding , \strippadding*2); + + \node[box, minimum size=0.5cm] (playcostBox) at (playcost) {}; + \node[align=center] (playcostLabel) at ($(playcost) - (0, 1cm)$) {Spielkosten/\\ Upkeep-Kosten}; + \draw[latex-] (playcostBox) to (playcostLabel); + + \node[box, minimum size=0.5cm] (buycostBox) at (buycost) {}; + \node (buycostLabel) at ($(buycost) + (0, 1.25cm)$) {Kaufkosten}; + \draw[latex-] (buycostBox) to (buycostLabel); + + \node[box, minimum size=0.6cm] (typeSymbolBox) at (typeSymbol) {}; + \node (typeSymbolLabel) at ($(typeSymbol) + (0, 1.25cm)$) {Typ Symbol}; + \draw[latex-] (typeSymbolBox) to (typeSymbolLabel); + + \node[box, rotate=90, anchor=east, minimum width=3cm, minimum height=0.5cm] (typeLineBox) at (typeLine) {}; + \node[align=center] (typeLineLabel) at ($(typeLineBox.south) + (2.5cm, 0)$) {Typ Zeile: \\ Kartenname - Kartentyp}; + \draw[latex-] (typeLineBox) to (typeLineLabel); + + \node[box, rotate=90, anchor=west, minimum height=0.5cm, minimum width=0.9cm] (setBox) at (set) {}; + \node (setBoxLabel) at ($(setBox) - (0, 1.4cm)$) {Setname}; + \draw[latex-] (setBox) to (setBoxLabel); + + \node[box, minimum height=0.5cm, minimum width=2cm] (titleBox) at (title) {}; + \node (titleLabel) at ($(title) + (0, 1.25cm)$) {Kartenname}; + \draw[latex-] (titleBox) to (titleLabel); + + \node[box, minimum height=1.5cm, minimum width=2.5cm] (statsBox) at (stats) {}; + \node (statsLabel) at ($(stats) + (0.6cm, 1.5cm)$) {Attribute eines Permanents}; + \draw[latex-] (statsBox) to (statsLabel); + + \node[box, minimum height=0.7cm, minimum width=2.5cm] (effectBox) at (effect) {}; + \node (effectLabel) at ($(effect) - (-0.4cm, 1cm)$) {Effekte eines Permanents}; + \draw[latex-] (effectBox) to (effectLabel); + +\end{tikzpicture} +\end{document} diff --git a/latex/cards/en/unit_explanation.tex b/latex/cards/en/unit_explanation.tex new file mode 100644 index 00000000..ca0fad97 --- /dev/null +++ b/latex/cards/en/unit_explanation.tex @@ -0,0 +1,64 @@ +\documentclass{standalone} +% \standaloneconfig{border=left bottom right top} +\standaloneconfig{border=0.5cm 1cm 0.5cm 0.75cm} +\input{common.tex} + +\usepackage{standalone} + +\begin{document} + +\includestandalone{cards/en/base/knight} + +\hspace{-0.19cm} +\begin{tikzpicture}[ +overlay, +box/.style={red, draw}, +] + + \coordinate (typeSymbol) at (-\cardwidth + \stripwidth - \strippadding, \cardheight - \strippadding*3.8); + \coordinate (typeLine) at (-\cardwidth + \stripwidth - \strippadding, \cardheight - \strippadding*7.5); + \coordinate (buycost) at (-\stripwidth + \strippadding / 2, \cardheight - \strippadding*4); + + \coordinate (title) at (-\cardwidth / 2, \cardheight - \strippadding*4); + + \coordinate (stats) at (-\cardwidth + \contentLeft*2, \contentBottom * 2.5); + + \coordinate (effect) at (-\cardwidth + \contentLeft*2, \contentBottom * 1.2); + + \coordinate (playcost) at (-\stripwidth + \strippadding / 2, \strippadding*2); + \coordinate (set) at (-\cardwidth + \stripwidth - \strippadding , \strippadding*2); + + \node[box, minimum size=0.5cm] (playcostBox) at (playcost) {}; + \node[align=center] (playcostLabel) at ($(playcost) - (0, 1cm)$) {play cost /\\ upkeep cost}; + \draw[latex-] (playcostBox) to (playcostLabel); + + \node[box, minimum size=0.5cm] (buycostBox) at (buycost) {}; + \node (buycostLabel) at ($(buycost) + (0, 1.25cm)$) {buy cost}; + \draw[latex-] (buycostBox) to (buycostLabel); + + \node[box, minimum size=0.6cm] (typeSymbolBox) at (typeSymbol) {}; + \node (typeSymbolLabel) at ($(typeSymbol) + (0, 1.25cm)$) {type symbol}; + \draw[latex-] (typeSymbolBox) to (typeSymbolLabel); + + \node[box, rotate=90, anchor=east, minimum width=3cm, minimum height=0.5cm] (typeLineBox) at (typeLine) {}; + \node[align=center] (typeLineLabel) at ($(typeLineBox.south) + (2.5cm, 0)$) {type line: \\ card name - type}; + \draw[latex-] (typeLineBox) to (typeLineLabel); + + \node[box, rotate=90, anchor=west, minimum height=0.5cm, minimum width=0.9cm] (setBox) at (set) {}; + \node (setBoxLabel) at ($(setBox) - (0, 1.4cm)$) {Set name}; + \draw[latex-] (setBox) to (setBoxLabel); + + \node[box, minimum height=0.5cm, minimum width=2cm] (titleBox) at (title) {}; + \node (titleLabel) at ($(title) + (0, 1.25cm)$) {card name}; + \draw[latex-] (titleBox) to (titleLabel); + + \node[box, minimum height=1.5cm, minimum width=2.5cm] (statsBox) at (stats) {}; + \node (statsLabel) at ($(stats) + (0.5cm, 1.5cm)$) {Attributes of a permanent}; + \draw[latex-] (statsBox) to (statsLabel); + + \node[box, minimum height=0.7cm, minimum width=2.5cm] (effectBox) at (effect) {}; + \node (effectLabel) at ($(effect) - (-0.3cm, 1cm)$) {Effects of a permanent}; + \draw[latex-] (effectBox) to (effectLabel); + +\end{tikzpicture} +\end{document} |
