✨
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
\setlength{\parindent}{0pt}
|
||||
|
||||
\def\specialization{}
|
||||
|
||||
\makeatletter
|
||||
\NewDocumentCommand {\getnodedimen} {O{\nodewidth} O{\nodeheight} m} {
|
||||
\begin{pgfinterruptboundingbox}
|
||||
@@ -42,6 +44,22 @@
|
||||
\newcommand{\appendother}[1]{\g@addto@macro{\@var}{#1}}
|
||||
|
||||
\newcommand{\undeffed}{\@var}
|
||||
|
||||
|
||||
\newcommand{\drawforce}{%
|
||||
\@ifundefined{force@\specialization}{}{%
|
||||
\definecolor{talentcolor}{HTML}{000000}
|
||||
\node[forcepower] at (0.2,-2.48) {};
|
||||
\node[talentname] at (0,-2.1) {\footnotesize{}\texttn{FORCE TALENT}};
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\setforce}{%
|
||||
\protected@write\@auxout{}{%
|
||||
\global\string\@namedef{force@\specialization}{}%
|
||||
}%
|
||||
}
|
||||
|
||||
\makeatother
|
||||
|
||||
\newlength{\textlength}
|
||||
@@ -65,22 +83,14 @@
|
||||
thick,
|
||||
double,
|
||||
inner xsep=-2pt,
|
||||
inner ysep=1pt
|
||||
inner ysep=0pt
|
||||
},
|
||||
talentname/.style={
|
||||
chamfered rectangle,
|
||||
chamfered rectangle corners={north east, south east},
|
||||
inner ysep=0pt,
|
||||
text width = 2.85cm,
|
||||
align=left,
|
||||
text=white,
|
||||
fill=talentcolor
|
||||
},
|
||||
talentnamedouble/.style={
|
||||
chamfered rectangle,
|
||||
chamfered rectangle corners={north east, south east},
|
||||
inner ysep=0pt,
|
||||
text width = 2.85cm,
|
||||
inner ysep=0cm,
|
||||
inner xsep=0.11cm,
|
||||
text width = 2.81cm,
|
||||
align=left,
|
||||
text=white,
|
||||
fill=talentcolor
|
||||
@@ -99,7 +109,7 @@
|
||||
forcepower/.style={
|
||||
starburst,
|
||||
starburst points=7,
|
||||
random starburst=150,
|
||||
random starburst=6,
|
||||
starburst point height=10pt,
|
||||
fill=talentcolor,
|
||||
draw=white,
|
||||
@@ -107,6 +117,16 @@
|
||||
minimum width=30pt,
|
||||
minimum height=30pt,
|
||||
rotate=155
|
||||
},
|
||||
ranked/.style={
|
||||
talentname,
|
||||
fill=white,
|
||||
draw = talentcolor,
|
||||
thick,
|
||||
inner ysep=0.05cm,
|
||||
minimum width = 3.36cm,
|
||||
inner xsep = 0.05cm,
|
||||
chamfered rectangle xsep = 0.15cm
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,7 +149,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\swtalent}[4]{%
|
||||
\newcommand{\swtalent}[5]{%
|
||||
\addtocounter{talentx}{1}%
|
||||
\ifthenelse{\equal{\arabic{talentx}}{5}}{%
|
||||
\addtocounter{talenty}{1}%
|
||||
@@ -151,7 +171,7 @@
|
||||
{
|
||||
\settowidth{\textlength}{\footnotesize \texttn{{\uppercase{#1}}}}%
|
||||
\tabular{p{3cm}}
|
||||
\rule{0pt}{10pt}\\
|
||||
\rule{0pt}{12pt}\\
|
||||
\ifdim\nodeheight > 15pt
|
||||
\rule{0pt}{8pt} \\
|
||||
\fi
|
||||
@@ -161,11 +181,26 @@
|
||||
\scriptsize #2 \\
|
||||
\endtabular
|
||||
};
|
||||
\ifthenelse{\equal{#4}{true}}{%
|
||||
\node[forcepower] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.3,-0.6)$) {};
|
||||
|
||||
\ifthenelse{\equal{#5}{true}}{%
|
||||
\node[ranked] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.08,-0.08)$) {%
|
||||
\small \hspace*{-6pt} \checkbox %
|
||||
\settowidth{\textlength}{\footnotesize \texttn{{\uppercase{#1}}}}%
|
||||
\ifdim\nodeheight > 15pt
|
||||
\\ \phantom{t}
|
||||
\fi
|
||||
\ifdim\nodeheight > 30pt
|
||||
\\ \phantom{t}
|
||||
\fi
|
||||
};
|
||||
}{}
|
||||
|
||||
\node[talentname] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.1,-0.1)$) {%
|
||||
\ifthenelse{\equal{#4}{true}}{%
|
||||
\setforce{}
|
||||
\node[forcepower] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.3,-0.5)$) {};
|
||||
}{}
|
||||
|
||||
\node[talentname] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.13,-0.14)$) {%
|
||||
\small \hspace*{-6pt} \checkbox %
|
||||
\settowidth{\textlength}{\footnotesize \texttn{{\uppercase{#1}}}}%
|
||||
\ifdim\nodeheight > 15pt
|
||||
@@ -176,26 +211,26 @@
|
||||
\fi
|
||||
};
|
||||
\node[cost] {\tiny\texttn{COST \fpeval{5*\arabic{talenty}}}};
|
||||
\node[text=white,text width = 2.6cm] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.5,-0.15)$) (t\alph{talentx}\alph{talenty}) {\footnotesize \texttn{\uppercase{#1}}};
|
||||
\node[text=white,text width = 2.6cm] at ($(\arabic{talentx}*4.5,-\arabic{talenty}*4.9) + (0.5,-0.19)$) (t\alph{talentx}\alph{talenty}) {\footnotesize \texttn{\uppercase{#1}}};
|
||||
}
|
||||
|
||||
\newenvironment{talenttree}[5]{%
|
||||
\setcounter{talentx}{0}
|
||||
\setcounter{talenty}{1}
|
||||
\def\specialization{#1}
|
||||
\center
|
||||
\def\bookandpage{#3}
|
||||
\tabular{p{0.75\textwidth} p{0.15\textwidth}}
|
||||
\texttn{\Huge{}\career{}:} \textltn{\Huge{}#1} & \multirow{4}*{
|
||||
\texttn{\Huge{}\career{}:} \textltn{\Huge{}\specialization} & \multirow{4}{*}[0.7cm]{%
|
||||
\begin{tikzpicture}
|
||||
% \ifthenelse{\equal{#4}{}}{}{%
|
||||
\drawforce
|
||||
\definecolor{talentcolor}{HTML}{000000}
|
||||
\node[forcepower] at (0.2,-2.1) {};
|
||||
\node[talentname] at (0,-1.6) {\footnotesize{}\texttn{FORCE TALENT}};
|
||||
% }
|
||||
\node[ranked,minimum width = 3.33cm] at (-0.05, -1.34) {\footnotesize{}\texttn{RANKED TALENT}};
|
||||
\node[talentname] at (0,-1.4) {\footnotesize{}\texttn{RANKED TALENT}};
|
||||
\definecolor{talentcolor}{HTML}{5f1111}
|
||||
\node[talentname] at (0,-0.7) {\footnotesize{}\texttn{ACTIVE}};
|
||||
\definecolor{talentcolor}{HTML}{1e115f}
|
||||
\node[talentname] at (0,0) {\footnotesize{}\texttn{PASSIVE}};
|
||||
\definecolor{talentcolor}{HTML}{5f1111}
|
||||
\node[talentname] at (0,-0.8) {\footnotesize{}\texttn{ACTIVE}};
|
||||
\end{tikzpicture}
|
||||
}\\
|
||||
\ifthenelse{\equal{\careerskills}{}}{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
talent-trees.pdf
BIN
talent-trees.pdf
Binary file not shown.
Reference in New Issue
Block a user