Added "extras" mode
This commit is contained in:
@ -1,33 +1,40 @@
|
||||
\def\nstars#1#2{%
|
||||
\ifnum #2 > 0%
|
||||
\def\starcolor{\color{#1}}%
|
||||
\count255=1%
|
||||
\loop{%
|
||||
\starcolor $\bigstar$%
|
||||
}%
|
||||
\ifnum \count255 < #2%
|
||||
\advance\count255 by 1%
|
||||
\repeat%
|
||||
\fi%
|
||||
}
|
||||
\ifextras
|
||||
\def\nstars#1#2{}
|
||||
\def\startimes#1{}
|
||||
\def\onestars#1{}
|
||||
\def\threestars#1#2#3{}
|
||||
\else
|
||||
\def\nstars#1#2{%
|
||||
\ifnum #2 > 0%
|
||||
\def\starcolor{\color{#1}}%
|
||||
\count255=1%
|
||||
\loop{%
|
||||
\starcolor $\bigstar$%
|
||||
}%
|
||||
\ifnum \count255 < #2%
|
||||
\advance\count255 by 1%
|
||||
\repeat%
|
||||
\fi%
|
||||
}
|
||||
|
||||
|
||||
\def\startimes#1{
|
||||
{\color{ogrape} $\bigstar \times #1$}
|
||||
}
|
||||
\def\startimes#1{
|
||||
{\color{ogrape} $\bigstar \times #1$}
|
||||
}
|
||||
|
||||
\def\onestars#1{
|
||||
\nstars{ogrape}{#1}
|
||||
}
|
||||
\def\onestars#1{
|
||||
\nstars{ogrape}{#1}
|
||||
}
|
||||
|
||||
\def\threestars#1#2#3{
|
||||
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
||||
}
|
||||
\def\threestars#1#2#3{
|
||||
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
|
||||
}
|
||||
|
||||
|
||||
% Not used, commented out.
|
||||
\def\difficulty#1#2{
|
||||
\textbf{Difficulty:} \stars{#1}{#2} \par
|
||||
\vspace{1mm}
|
||||
}
|
||||
% Not used, commented out.
|
||||
\def\difficulty#1#2{
|
||||
\textbf{Difficulty:} \stars{#1}{#2} \par
|
||||
\vspace{1mm}
|
||||
}
|
||||
\fi
|
||||
|
||||
|
Reference in New Issue
Block a user