texlive[73609] Master/texmf-dist: rpgicons (27jan25)
commits+karl at tug.org
commits+karl at tug.org
Mon Jan 27 21:50:07 CET 2025
Revision: 73609
https://tug.org/svn/texlive?view=revision&revision=73609
Author: karl
Date: 2025-01-27 21:50:07 +0100 (Mon, 27 Jan 2025)
Log Message:
-----------
rpgicons (27jan25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/rpgicons/README.md
trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.pdf
trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.tex
trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-l3.sty
trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-pgf.sty
trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons.sty
Modified: trunk/Master/texmf-dist/doc/latex/rpgicons/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/rpgicons/README.md 2025-01-27 20:49:57 UTC (rev 73608)
+++ trunk/Master/texmf-dist/doc/latex/rpgicons/README.md 2025-01-27 20:50:07 UTC (rev 73609)
@@ -1,30 +1,29 @@
-
+
-<img width="200" alt="rpgicons-example" src="https://github.com/jasperhabicht/rpgicons/assets/6378801/81a1d0aa-7a4f-4f83-bbdc-3bc3332023b2" />
+<img width="200" alt="rpgicons-example" src="https://github.com/jasperhabicht/rpgicons/assets/6378801/81a1d0aa-7a4f-4f83-bbdc-3bc3332023b2" />
# The `rpgicons` package
-This package provides a set of high-quality icons for use in notes for tabletop role-playing games.
-The icons are meant to be used in the body text, but they can also be used in other contexts such
+This package provides a set of high-quality icons for use in notes for tabletop role-playing games.
+The icons are meant to be used in the body text, but they can also be used in other contexts such
as graphics or diagrams. The package comes in two variants, one based on the `l3draw` package and one
-based on PGF/Ti*k*Z.
+based on PGF/Ti*k*Z. The `l3draw` variant is loaded by default. The `l3draw` variant does not provide
+the same variety of styles as Ti*k*Z does.
-As of version 1.4.0, an `l3draw` variant of the `rpgicons` package exists which is loaded by default.
-The `l3draw` package does not provide the same variety of styles as Ti*k*Z does.
+The PGF veriant of the `rpgicons` package provides the icons as Ti*k*Z shapes. Since the commands to
+typeset the icons use `tikzpicture` environments, these commands should not be used inside another
+`tikzpicture`. However, because the package defines the icons as Ti*k*Z shapes, it is possible to
+use the icons in `tikzpicture` environments directly. Apart from that, as of version 1.1.0, the
+package provides a way to define custom commands to typeset the icons as boxed material which is
+safe to use in a tikzpicture context. As of version 1.3.1, the package provides an additional way
+to use the icons as Ti*k*Z pics. As of version 1.7.0, a command for easy typesetting of dice rolls
+such as `\roll{2d6 + 3d4 - 1}` is provided by the package.
-The PGF veriant of the `rpgicons` package provides the icons as Ti*k*Z shapes. Since the commands to
-typeset the icons use `tikzpicture` environments, these commands should not be used inside another
-`tikzpicture`. However, because the package defines the icons as Ti*k*Z shapes, it is possible to
-use the icons in `tikzpicture` environments directly. Apart from that, as of version 1.1.0, the
-package provides a way to define custom commands to typeset the icons as boxed material which is
-safe to use in a tikzpicture context. As of version 1.3.1, the package provides an additional way
-to use the icons as Ti*k*Z pics.
-
The `rpgicons` package is installed by copying the relevant `.sty` file into the working or `texmf`
-directory. The package is loaded by calling `\usepackage{rpgicons}` in the preamble of the document.
-To load the PGF variant, the package can be loaded with the option `pgf`. The `l3draw` variant is
-loaded per default. The PGF or `l3draw` variants can be loaded directly via
+directory. The package is loaded by calling `\usepackage{rpgicons}` in the preamble of the document.
+To load the PGF variant, the package can be loaded with the option `pgf`. The `l3draw` variant is
+loaded per default. The PGF or `l3draw` variants can be loaded directly via
`\usepackage{rpgicons-pgf}` or`\usepackage{rpgicons-l3}`.
This package including all files is subject to the LPPL 1.3c license.
-Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
+Copyright 2024–2025 Jasper Habicht (mail(at)jasperhabicht.de).
Modified: trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.tex 2025-01-27 20:49:57 UTC (rev 73608)
+++ trunk/Master/texmf-dist/doc/latex/rpgicons/rpgicons-doc.tex 2025-01-27 20:50:07 UTC (rev 73609)
@@ -1,5 +1,5 @@
% File: rpgicons-doc.tex
-% Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
+% Copyright 2024-2025 Jasper Habicht (mail(at)jasperhabicht.de).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
@@ -11,8 +11,8 @@
% This work has the LPPL maintenance status `maintained'.
%
\documentclass[a4paper]{article}
-\def\rpgiconsfileversion{1.8.4}
-\def\rpgiconsfiledate{8 August 2024}
+\def\rpgiconsfileversion{1.8.6}
+\def\rpgiconsfiledate{22 January 2025}
\usepackage[T1]{fontenc}
\usepackage{Alegreya}
@@ -40,7 +40,7 @@
\tcbuselibrary{listings}
\lstdefinestyle{rpgiconsdocmacro}{
basicstyle=\small\ttfamily,
- literate=*{<}{{{\color{black!50}\guilsinglleft}}}1
+ literate=*{<}{{{\color{black!50}\guilsinglleft}}}1
{>}{{{\color{black!50}\guilsinglright}}}1,
keywords={},
moredelim=[is][\bfseries]{|}{|},
@@ -57,13 +57,13 @@
\int_new:N \l_rpgicons_doc_change_int
\NewDocumentCommand{\changes}{ m m m }{
\int_incr:N \l_rpgicons_doc_change_int
- \prop_new:c { l_rpgicons_doc_change_
+ \prop_new:c { l_rpgicons_doc_change_
\int_to_roman:n { \l_rpgicons_doc_change_int } _prop }
- \prop_put:cnn { l_rpgicons_doc_change_
+ \prop_put:cnn { l_rpgicons_doc_change_
\int_to_roman:n { \l_rpgicons_doc_change_int } _prop } { version } {#1}
- \prop_put:cnn { l_rpgicons_doc_change_
+ \prop_put:cnn { l_rpgicons_doc_change_
\int_to_roman:n { \l_rpgicons_doc_change_int } _prop } { date } {#2}
- \prop_put:cnn { l_rpgicons_doc_change_
+ \prop_put:cnn { l_rpgicons_doc_change_
\int_to_roman:n { \l_rpgicons_doc_change_int } _prop } { changes } {#3}
}
\NewDocumentCommand{\printchanges}{ }{
@@ -70,12 +70,12 @@
\section{Changes}
\begin{description}
\int_step_inline:nn { \l_rpgicons_doc_change_int } {
- \item[
- \prop_item:cn { l_rpgicons_doc_change_
- \int_to_roman:n { ##1 } _prop } { version } ]
- ( \prop_item:cn { l_rpgicons_doc_change_
+ \item[
+ \prop_item:cn { l_rpgicons_doc_change_
+ \int_to_roman:n { ##1 } _prop } { version } ]
+ ( \prop_item:cn { l_rpgicons_doc_change_
\int_to_roman:n { ##1 } _prop } { date } ) \\
- \prop_item:cn { l_rpgicons_doc_change_
+ \prop_item:cn { l_rpgicons_doc_change_
\int_to_roman:n { ##1 } _prop } { changes }
}
\end{description}
@@ -123,7 +123,7 @@
title style hook/.style={}
}
-\NewTCBListing{macrodef}{ }{
+\NewTCBListing{macrodef}{ }{
listing only,
listing style={rpgiconsdocmacro},
grow to left by=2cm,
@@ -143,9 +143,9 @@
size=tight,
arc=1pt,
outer arc=1pt,
- top=0.5pt,
+ top=0.5pt,
bottom=0.5pt,
- left=2pt,
+ left=2pt,
right=2pt,
boxrule=0pt,
colframe=black!10,
@@ -159,9 +159,9 @@
size=tight,
arc=1pt,
outer arc=1pt,
- top=0.5pt,
+ top=0.5pt,
bottom=0.5pt,
- left=2pt,
+ left=2pt,
right=2pt,
boxrule=0pt,
colframe=black!10,
@@ -179,8 +179,8 @@
\clist_new:N \l_rpgicons_doc_logo_colors_clist
\cs_generate_variant:Nn { \color_set:nnn } { nne }
-\clist_set:Nn \l_rpgicons_doc_logo_colors_clist {
- 264653 , 287271 , 2a9d8f , e9c46a , f4a261 , e76f51
+\clist_set:Nn \l_rpgicons_doc_logo_colors_clist {
+ 264653 , 287271 , 2a9d8f , e9c46a , f4a261 , e76f51
}
\int_step_inline:nn { \clist_count:N \l_rpgicons_doc_logo_colors_clist } {
\color_set:nne { rpgiconslogo \int_to_roman:n { #1 } } { HTML } {
@@ -187,8 +187,8 @@
\clist_item:Nn \l_rpgicons_doc_logo_colors_clist { #1 }
}
}
-\clist_set:Nn \l_rpgicons_doc_logo_icons_clist {
- twentyside , charisma , armor , buff , ranged , proficiency
+\clist_set:Nn \l_rpgicons_doc_logo_icons_clist {
+ twentyside , charisma , armor , buff , ranged , proficiency
}
\NewDocumentCommand{\rpgiconslogo}{ O{1} }{
@@ -195,23 +195,23 @@
\draw_begin:
\draw_transform_scale:n { #1 }
\int_step_inline:nn { \clist_count:N \l_rpgicons_doc_logo_icons_clist } {
- \hcoffin_set:Nn \l_tmpa_coffin {
- \draw_suspend_begin:
- \RPGIconsAbility[negative]{
- \clist_item:Nn \l_rpgicons_doc_logo_icons_clist { ##1 }
- }[color=rpgiconslogo \int_to_roman:n { ##1 } ]
- \draw_suspend_end:
+ \hcoffin_set:Nn \l_tmpa_coffin {
+ \draw_suspend_begin:
+ \RPGIconsAbility[negative]{
+ \clist_item:Nn \l_rpgicons_doc_logo_icons_clist { ##1 }
+ }[color=rpgiconslogo \int_to_roman:n { ##1 } ]
+ \draw_suspend_end:
}
\draw_scope_begin:
- \draw_transform_shift:n {
+ \draw_transform_shift:n {
% fix bug in older l3draw version
- \cs_if_exist:NTF \__draw_transform_shift:nnnn {
+ \cs_if_exist:NTF \__draw_transform_shift:nnnn {
\draw_point_polar:nn { 0.33cm } { 60 * ##1 + 10 }
} {
\draw_point_transform:n { \draw_point_polar:nn { 0.33cm } { 60 * ##1 + 10 } }
}
}
- \draw_coffin_use:Nnn \l_tmpa_coffin { hc } { vc }
+ \draw_coffin_use:Nnn \l_tmpa_coffin { hc } { vc }
\draw_scope_end:
}
\draw_end:
@@ -221,7 +221,7 @@
\NewDocumentEnvironment{rpgiconsiconlist}{ }{
\begin{longtable}{ @{} p{20em} p{5em} p{\dimexpr\linewidth-25em-4\tabcolsep} @{} }
\toprule
- \textbf{Command} & \textbf{Icon} & \textbf{Shape} \\
+ \textbf{Command} & \textbf{Icon} & \textbf{Shape} \\
\midrule\endhead
}{
\bottomrule
@@ -262,7 +262,8 @@
\changes{v1.8.0}{2024/03/24}{Unified wrapper to load either package variant.}
\changes{v1.8.2}{2024/04/28}{Roll dice syntax for PGF variant.}
\changes{v1.8.3}{2024/05/15}{Minor compatibility fix. Example of how to use pics added to ducumentation.}
-\changes{v1.8.3}{2024/05/15}{Bug fix in evocation spellschool shape. Unification of frames in PGF and L3 variants.}
+\changes{v1.8.4}{2024/08/08}{Bug fix in evocation spellschool shape. Unification of frames in PGF and L3 variants.}
+\changes{v1.8.6}{2024/11/13}{Fixes in the documentation.}
\begin{document}
@@ -283,8 +284,10 @@
\section{Loading the package}
-To install the package, copy the relevant package files \macro{rpgicons.sty}, \macro{rpgicons-l3.sty} and \macro{rpgicons-pgf.sty} into the working directory or into the \macro{texmf} directory. After the package has been installed, the \macro{rpgicons} package is loaded by calling \macro{\usepackage{rpgicons}} in the preamble of the document.
+To install the package, copy the relevant package files \macro{rpgicons.sty}, \macro{rpgicons-l3.sty} and \macro{rpgicons-pgf.sty} into the working directory or into the \macro{texmf} directory. You may want to use a TeX package manager for this. After the package has been installed, the \macro{rpgicons} package is loaded by calling \macro{\usepackage{rpgicons}} in the preamble of the document.
+The package can be loaded with one of the following options.
+
\begin{macrodef}l3\end{macrodef}
The L3 variant of the package is loaded by default. To load it explicitly, the package can be loaded using the option \macro{l3}. Alternatively, \macro{\usepackage{rpgicons-l3}} can be called instead.
@@ -295,13 +298,13 @@
The L3 variant of the package loads the \macro{l3draw} package. If the package is loaded with the \macro{opacity} option to enable transparency, the \macro{l3opacity} package is also loaded.
-The PGF variant of the package loads the \macro{tikz} package which in turn loads the \macro{xcolor} package. To make use of specific options these packages provide, you need to load the packages with the relevant options beforehand or use, such as \macro{\PassOptionsToPackage{svgnames}{xcolor}}.
+The PGF variant of the package loads the \macro{tikz} package which in turn loads the \macro{xcolor} package. To make use of specific options these packages provide, you need to load the packages with the relevant options beforehand or explicitly pass the relevant options to the package using a command such as \macro{\PassOptionsToPackage{svgnames}{xcolor}}.
\section{Main user commands}
Regardless of the variant of the package, a set of user commands is always available. These are described in the following. Depending on the use of the L3 or the PGF variant, certain specific commands or options are available that are explained in the following sections in further detail.
-Because of the way the package defines the icons, every of the below described user commands can actually be used together with every shape. However, the combinations of shapes and commands as described in the following subsections are preferable.
+Because of the way the package defines the icons, each of the user commands below described can actually be used together with every shape. However, the combinations of shapes and commands as described in the following subsections are preferable.
\subsection[Command \textbackslash die]{Command \titlemacro*{die}}
@@ -308,18 +311,18 @@
\begin{macrodef}
|\die|[<style>]{<shape>}[<options>]{<integer>}
\end{macrodef}
-The command \macro{\die} prints an icon to depict a die with a certain number of sides. Two special icons exist for a two-sided die (which would be equivalent to a coin) and for a hundred-sided die (which typically comes in the shape of a sphere). There is also a special icon for a fudge die.
+The command \macro{\die} typesets an icon to depict a die with a certain number of sides. Additionally, icons exist for a two-sided die (which would be equivalent to a coin) and for a hundred-sided die (which typically comes in the shape of a sphere). There is also a special icon for a fudge die.
-For the six-sided die, nine additional shapes exists representing the values one to nine as pips. Also, additional shapes exist representing the plus or minus side of a fudge die.
+For the six-sided die, nine additional shapes exist representing the values one to nine as pips. Also, additional shapes exist representing the plus or minus side of a fudge die.
-The command takes two mandatory commands, the first of which describes the shape (see the lists below) and the second can take an integer that is placed in front of the shape. For example, \macro{\die{eightside}{2}} results in \die{eightside}{2} (meaning two eight-sided dice are rolled).
+The command takes two mandatory arguments, the first of which describes the shape (see the lists below) and the second taking an integer that is placed in front of the shape. For example, \macro{\die{eightside}{2}} results in \die{eightside}{2} (meaning two eight-sided dice are rolled).
-The command also takes two optional arguments, the second of which can take additional options to style the icon. The options affect the shape, not the integer when it is printed before the icon. These options differ depending on the package variant. See the relevant sections below.
+The command also takes two optional arguments, the second of which can take additional options to style the icon. The options affect the shape, but not the integer when it is typeset before the icon. The usable options differ depending on the package variant. See the relevant sections below.
-The first optional argument can take the value \macro{normal} or \macro{large}, \macro{normal} being the default value. With \macro{large} given as argument, the icon is drawn larger and the additional integer is printed inside of the shape instead of before it. As an example, \macro{\die[large]{eightside}{2}} results in \die[large]{eightside}{2}. Note that the integer will always be printed on top of the shape, even if the shape does not have an open center as in the case of the \macro{fudge} shapes or the shapes featuring pips.
+The first optional argument can take the value \macro{normal} or \macro{large}, \macro{normal} being the default value. With \macro{large} given as argument, the icon is drawn larger and the integer is typeset inside the shape. As an example, \macro{\die[large]{eightside}{2}} results in \die[large]{eightside}{2}. Note that the integer will always be placed on top of the shape, even if the shape does not have an open center which is the case with the \macro{fudge} shapes or the shapes featuring pips.
\begin{rpgiconsiconlist}
-\macro{\die}
+\macro{\die}
& \die{twoside}{} & \macro{twoside} \\
& \die{fourside}{} & \macro{fourside} \\
& \die{sixside}{} & \macro{sixside} \\
@@ -347,7 +350,7 @@
\begin{macrodef}
|\ability|[<style>]{<shape>}[<options>]
\end{macrodef}
-The command \macro{\ability} prints icons depicting an ability of a character. The abilities are represented by animal-like shapes. The relevant shape should be given as mandatory argument to the command. The second optional argument can take additional options to style the icon.
+The command \macro{\ability} typesets an icon depicting an ability of a character. The abilities are represented by animal-like shapes. The relevant shape should be given as mandatory argument to the command. The second optional argument can take additional options to style the icon.
The first optional argument can take the value \macro{positive} or \macro{negative}, \macro{positive} being the default value. With \macro{negative} given as argument, the icon is drawn negative inside a circle. As an example, \macro{\ability[negative]{charisma}} results in \ability[negative]{charisma}.
@@ -354,12 +357,12 @@
\begin{macrodef}
|\saving|[<style>]{<shape>}[<options>]
\end{macrodef}
-The command \macro{\saving} prints the icons that can be typeset using the \macro{\ability} command inside a small shield. It can take the same values for the mandatory argument as the \macro{\ability} command. The optional argument can take additional options to style the icon.
+The command \macro{\saving} typesets an icon with the relevant \macro{\ability} icon inside a small shield. It can take the same values for the mandatory argument as the \macro{\ability} command. The optional argument can take additional options to style the icon.
-The first optional argument can take the value \macro{normal} or \macro{empty}, \macro{normal} being the default value. With \macro{empty} given as argument, the icon inside the shield is not printed. In this case, the mandatory argument can be left empty. As an example, \macro{\saving[empty]{}} results in \saving[empty]{}.
+The first optional argument can take the value \macro{normal} or \macro{empty}, \macro{normal} being the default value. With \macro{empty} given as argument, the icon inside the shield is not typeset. In this case, the mandatory argument can be left empty. As an example, \macro{\saving[empty]{}} results in \saving[empty]{}.
\begin{rpgiconsiconlist}
-\macro{\ability}
+\macro{\ability}
& \ability{strength} & \macro{strength} \\
& \ability{dexterity} & \macro{dexterity} \\
& \ability{dexterity alt} & \macro{dexterity alt} \\
@@ -374,7 +377,7 @@
& \ability{armor} & \macro{armor} \\
& \ability{proficiency} & \macro{proficiency} \\
\midrule
-\macro{\saving}
+\macro{\saving}
& \saving{strength} & \macro{strength} \\
& \saving{dexterity} & \macro{dexterity} \\
& \saving{dexterity alt} & \macro{dexterity alt} \\
@@ -395,10 +398,10 @@
\begin{macrodef}
|\spell|{<shape>}[<options>]
\end{macrodef}
-The command \macro{\spell} prints icons depicting the effect of a spell or how it is to be effected. The optional argument can take additional options to style the icon.
+The command \macro{\spell} typesets an icon depicting the effect of a spell or how it is to be effected. The optional argument can take additional options to style the icon.
\begin{rpgiconsiconlist}
-\macro{\spell}
+\macro{\spell}
& \spell{linear} & \macro{linear} \\
& \spell{conic} & \macro{conic} \\
& \spell{quadratic} & \macro{quadratic} \\
@@ -416,12 +419,12 @@
\begin{macrodef}
|\spellschool|[<style>]{<shape>}[<options>]
\end{macrodef}
-The command \macro{\spellschool} prints icons that represent the school a spell belongs to. The second optional argument can take additional options to style the icon.
+The command \macro{\spellschool} typesets an icon that represents the school a spell belongs to. The second optional argument can take additional options to style the icon.
The first optional argument can take the value \macro{negative} or \macro{positive}, \macro{negative} being the default value. Per default the icon is drawn in white inside a filled escutcheon. With \macro{positive} given as argument, the icon as well as the escutcheon are drawn in the currently selected color. As an example, \macro{\spellschool[positive]{evocation}} results in \spellschool[positive]{evocation}.
\begin{rpgiconsiconlist}
-\macro{\spellschool}
+\macro{\spellschool}
& \spellschool{abjuration} & \macro{abjuration} \\
& \spellschool{conjuration} & \macro{conjuration} \\
& \spellschool{divination} & \macro{divination} \\
@@ -437,20 +440,20 @@
\begin{macrodef}
|\damage|{<shape>}[<options>]
\end{macrodef}
-The command \macro{\damage} prints icons depicting the damage of an attack. The icon is printed inside a circle. The optional argument can take additional options to style the icon.
+The command \macro{\damage} typesets an icon depicting the damage of an attack. The icon is printed inside a circle. The optional argument can take additional options to style the icon.
\begin{macrodef}
|\attack|{<shape>}[<options>]
\end{macrodef}
-The command \macro{\attack} prints icons depicting the kind of an attack. The optional argument can take additional options to style the icon.
+The command \macro{\attack} typesets an icon depicting the kind of an attack. The optional argument can take additional options to style the icon.
\begin{macrodef}
|\condition|{<shape>}[<options>]
\end{macrodef}
-The command \macro{\condition} prints icons depicting a condition of a character. The optional argument can take additional options to style the icon.
+The command \macro{\condition} typesets an icon depicting a condition of a character. The optional argument can take additional options to style the icon.
\begin{rpgiconsiconlist}
-\macro{\damage}
+\macro{\damage}
& \damage{acid} & \macro{acid} \\
& \damage{bludgeoning} & \macro{bludgeoning} \\
& \damage{cold} & \macro{cold} \\
@@ -466,7 +469,7 @@
& \damage{thunder} & \macro{thunder} \\
& \damage{healing} & \macro{healing} \\
\midrule
-\macro{\attack}
+\macro{\attack}
& \attack{melee} & \macro{melee} \\
& \attack{ranged} & \macro{ranged} \\
& \attack{magic} & \macro{magic} \\
@@ -473,7 +476,7 @@
& \attack{singlehanded} & \macro{singlehanded} \\
& \attack{doublehanded} & \macro{doublehanded} \\
\midrule
-\macro{\condition}
+\macro{\condition}
& \condition{buff} & \macro{buff} \\
& \condition{blinded} & \macro{blinded} \\
& \condition{charmed} & \macro{charmed} \\
@@ -498,9 +501,9 @@
\section{Specifics of the L3 package variant}
-The L3 variant of the package that uses the \macro{l3draw} package is loaded by default or explicitly by either calling \macro{\usepackage[l3]{rpgicons}} or \macro{\usepackage{rpgicons-l3}} in the preamble of the document after having installed the files \macro{rpgicons.sty} and \macro{rpgicons-l3.sty}. The \macro{l3draw} package is an experimental package that provides only basic drawing functionality. The L3 variant thus only supports a certain set of option for styling the icons.
+The L3 variant of the package which uses the \macro{l3draw} package is loaded by default or explicitly by either calling \macro{\usepackage[l3]{rpgicons}} or \macro{\usepackage{rpgicons-l3}} in the preamble of the document after having installed the files \macro{rpgicons.sty} and \macro{rpgicons-l3.sty}. The \macro{l3draw} package is an experimental package that provides only basic drawing functionality. The L3 variant thus only supports a certain set of option for styling the icons.
-The L3 variant of the package does not load the \macro{xcolor} package, but makes use of the \macro{l3color} module which uses a similar syntax like the \macro{xcolor} package, but color definitions made using the \macro{l3color} module are not directly usable via commands provided by the \macro{xcolor} package. Therefore, setting a color using the \macro{\color} macro provided by the \macro{xcolor} package won't affect the color of the icons.
+The L3 variant of the package does not load the \macro{xcolor} package but makes use of the \macro{l3color} module which uses a similar syntax like the \macro{xcolor} package. Color definitions made using the \macro{l3color} module are not directly usable via commands provided by the \macro{xcolor} package. Therefore, setting a color using the \macro{\color} macro provided by the \macro{xcolor} package won't affect the color of the icons.
\begin{macrodef}compat\end{macrodef}
The \macro{l3draw} package is experimental and subject to ongoing updates. Loading the L3 variant of the package with the option \macro{compat} will use macro definitions that have been available since the last major TeX Live release as replacement for certain functions that only became available in the most recent versions of the \macro{l3draw} and related packages.
@@ -515,11 +518,11 @@
|\RPGIconsUseIcon|[<options>][<integer>]{<shape>}
|\RPGIconsUseIcon*|[<options>][<integer>]{<shape>}
\end{macrodef}
-\macro{\RPGIconsUseIcon} is the primary command to typeset icons using the L3 variant of the package. The commands \macro{\die}, \macro{\ability}, \macro{\saving}, \macro{\spell}, \macro{\spellschool}, \macro{\damage}, \macro{\attack} and \macro{\condition} are based on this command.
+\macro{\RPGIconsUseIcon} is the primary command to typeset icons using the L3 variant of the package. The commands \macro{\die}, \macro{\ability}, \macro{\saving}, \macro{\spell}, \macro{\spellschool}, \macro{\damage}, \macro{\attack} and \macro{\condition} are based on this command.
The \macro{\RPGIconsUseIcon} command has a starred version and two optional arguments as well as one mandatory argument. The mandatory argument holds the shape of the icon. The second optional argument can be used to add an integer when used with shapes for dice.
-The starred version of the command is used to fill a frame with color instead of drawing its outline. Frames can be put around the shape via the relevant \macro{frame} option.
+The starred version of the command is used to fill a frame with color instead of drawing its outline. Frames can be put around the shape via the relevant \macro{frame} option.
\begin{macrodef}
|\RPGIconsDie|[<style>]{<shape>}[<options>]{<integer>}
@@ -542,10 +545,10 @@
text
color
background
-stroke opacity
+stroke opacity
fill opacity
text opacity
-opacity
+opacity
background opacity
line width
scale
@@ -552,7 +555,7 @@
scale inner
rotate
\end{macrodef}
-The \macro{\RPGIconsUseIcon} command and the commands \macro{\die}, \macro{\ability}, \macro{\saving}, \macro{\spell}, \macro{\spellschool}, \macro{\damage}, \macro{\attack} and \macro{\condition} can be used with certain options that each consist of a key-value pair and can be combined. When used with the \macro{\RPGIconsUseIcon} command or the other commands based on this command, these options should be used directly without wrapping them inside the \macro{style} option.
+The \macro{\RPGIconsUseIcon} command and the commands \macro{\die}, \macro{\ability}, \macro{\saving}, \macro{\spell}, \macro{\spellschool}, \macro{\damage}, \macro{\attack} and \macro{\condition} can be used with certain options that each consist of a key-value pair and can be combined. When used with the \macro{\RPGIconsUseIcon} command or the other commands based on this command, these options should be used directly without wrapping them inside the \macro{style} option.
For example, \macro{\die{eightside}[color=blue, line width=0.8pt]{2}} would result in \die{eightside}[color=blue, line width=0.8pt]{2}.
@@ -560,7 +563,7 @@
Some icons can be used with a negative color scheme where the icon is drawn negatively inside a filled shape. Per default, the icons are drawn in white in such cases, but it might be desirable that the icons are in the same color as the background. To this end, the \macro{background} option sets the color of the shape when it is printed over a filled frame which can be achieved by setting the \macro{negative} option for the \macro{\ability} or the \macro{\spellschool} command or using the starred version of the \macro{\RPGIconsUseIcon} command.
-The \macro{color} option sets the color of strokes, fills and text in general while the \macro{stroke} option, the \macro{fill} option and the \macro{text} option set the color only for strokes, fills or text respectively. Similarly, the \macro{opacity} macro sets the opacity generally, while the options \macro{stroke opacity}, \macro{fill opacity} and \macro{text opacity} allow for setting the opacity of strokes, fill and text separately. The opacity styles are only available when loading the package with the \macro{opacity} option (see the \hyperref{macro:opacity}{description above}). The \macro{line width} sets the line width for strokes. Using the \macro{scale} and \macro{rotate} options, the shape can be scaled and rotated.
+The \macro{color} option sets the color of strokes, fills and text in general while the \macro{stroke} option, the \macro{fill} option and the \macro{text} option set the color only for strokes, fills or text respectively. Similarly, the \macro{opacity} macro sets the opacity generally, while the options \macro{stroke opacity}, \macro{fill opacity} and \macro{text opacity} allow for setting the opacity of strokes, fill and text separately. The opacity styles are only available when loading the package with the \macro{opacity} option (see the description \hyperref[macro:opacity]{above}). The option \macro{line width} sets the line width for strokes. Using the \macro{scale} and \macro{rotate} options, the shape can be scaled and rotated.
The \macro{scale inner} option can be used to change the scaling of the icon when placed inside a frame when using the \macro{\ability}, \macro{\saving}, \macro{\spellschool} and \macro{\damage} macros. The default value is 0.675.
@@ -570,7 +573,7 @@
accessible = full
accessible = false
\end{macrodef}
-Using the \macro{accessible} option with no value or the value \macro{basic}, a replacement text to the relevant icon can be added which can be copied to the clipboard. The value \macro{full} additionally places an \macro{\Alt} mark in the PDF which means that the shape of the relevant icon is read by screen readers. For this to work, is necessary to call \macro{\DocumentMetadata{}} before loading a \macro{\documentclass}, preferably with tagging enabled to make use of the \macro{accessible} option. The value \macro{full} can be used to disable the function explicitly. Note that depending on the compiler and PDF viewer, there might be line breaks or no spaces before and after the replacement text.
+Using the \macro{accessible} option with no value or the value \macro{basic}, a replacement text to the relevant icon can be added which can be copied to the clipboard. The value \macro{full} additionally places an \macro{\Alt} mark in the PDF which means that the shape of the relevant icon is read by screen readers. For this to work, is necessary to call \macro{\DocumentMetadata{}} before loading a \macro{\documentclass}, preferably with tagging enabled to make use of the \macro{accessible} option. The value \macro{false} can be used to disable the function explicitly. Note that depending on the compiler and PDF viewer, line breaks or no spaces might appear before and after the replacement text.
\begin{macrodef}
every die
@@ -583,14 +586,18 @@
every condition
every <shape>
\end{macrodef}
-Styles following the pattern \macro{rpg icons/every} followed by a space and the name of the command or the shape can be used to apply styles to every instance of this command or shape. For example, \macro{\rpgiconsset{every die={color={red}}}} can be used to draw in red all icons created using the \macro{\die} command. Calling \macro{\rpgiconsset{every charisma={color={red}}}} will draw every instance of the \macro{charisma} shape in red.
+Styles following the pattern \macro{every} followed by a space and the name of the command or the shape can be used to apply styles to every instance of this command or shape.
+For example, \macro{\rpgiconsset{every die={color={red}}}} can be used to draw in red all icons created using the \macro{\die} command.
+
+Calling \macro{\rpgiconsset{every charisma={color={red}}}} will draw every instance of the \macro{charisma} shape in red.
+
\subsection{Setting options globally}
\begin{macrodef}
|\rpgiconsset|
\end{macrodef}
-Apart from setting the options to the commands directly, it is also possible to set them globally using the \macro{\rpgiconsset} command. Globally set options are overridden by options that are selected directly.
+Apart from setting the options to the commands directly, it is also possible to set them globally using the \macro{\rpgiconsset} command. Globally set options are overridden by options that are set directly.
\begin{codeexample}
\rpgiconsset{
@@ -607,7 +614,7 @@
after sep
baseline
\end{macrodef}
-The spacing before and after the icons can be set using the options \macro{before sep} and \macro{after sep}. The option \macro{baseline} can be used to adjust the baseline of the icons. These options can also be applied to the icon commands directly.
+The spacing before and after the icons can be set using the options \macro{before sep} and \macro{after sep}. The option \macro{baseline} can be used to adjust the baseline of the icons. These options can also be applied to the icon commands directly. The default value of \macro{before sep} and \macro{after sep} is 0.05\,em. The default value of \macro{baseline} is \textminus 3.5\,pt.
\begin{codeexample}
Roll\die{eightside}{}a die!
@@ -630,14 +637,14 @@
The die notations \macro{d2}, \macro{d4}, \macro{d6}, \macro{d8}, \macro{d10}, \macro{d12}, \macro{d20} and \macro{d100} are defined. To denote a fudge die, \macro{dF} can be used. To denote that the lowest or highest die should be removed from the result, the letters \macro{L} and \macro{H} can be used. The syntax \macro{2d6 x 2} or \macro{2d6 * 2} can be used to denote several rolls with the same set of dice.
-If the \macro{rpgicons} package is to be loaded together with some other package that defines the command \macro{\roll}, the command \macro{\RPGIconsRoll} can be used. This alternative command is an exact copy of the \macro{\roll} command.
+If the \macro{rpgicons} package is to be loaded together with some other package that defines the command \macro{\roll}, the command \macro{\RPGIconsRoll} can be used. This alternative command is an exact copy of the \macro{\roll} command.
\begin{macrodef}
roll syntax
\end{macrodef}
-The option \macro{roll syntax} can be used to change the character that denotes a die in the dice rolling syntax. Multiple characters can be given using a comma separated list. The default setting is \macro{d,D} which allows notations such as \macro{2d6} or \macro{2D6}.
+The option \macro{roll syntax} can be used to change the character that denotes a die in the dice rolling syntax. Multiple characters can be given using a comma separated list. The default setting is \macro{d,D} which allows notations such as \macro{2d6} or \macro{2D6}.
-With \macro{\rpgiconsset{roll syntax={w,W}}}, for example, notations such as \macro{2w6} or \macro{2W6} could be used.
+With \macro{\rpgiconsset{roll syntax={w,W}}}, for example, notations such as \macro{2w6} or \macro{2W6} could be used.
% PGF variant
@@ -646,13 +653,13 @@
\section{Specifics of the PGF package variant}
-The PGF variant of the package is loaded by either calling \macro{\usepackage[pgf]{rpgicons}} or \macro{\usepackage{rpgicons-pgf}} in the preamble of the document after having installed the files \macro{rpgicons.sty} and \macro{rpgicons-pgf.sty}.
+The PGF variant of the package is loaded by either calling \macro{\usepackage[pgf]{rpgicons}} or \macro{\usepackage{rpgicons-pgf}} in the preamble of the document after having installed the files \macro{rpgicons.sty} and \macro{rpgicons-pgf.sty}.
-Since the commands to typeset the icons with the PGF variant of the package use \macro{tikzpicture} environments, these commands should not be used inside another \macro{tikzpicture}. However, because the package defines the icons as Ti\emph{k}Z shapes, it is possible to use the icons in \macro{tikzpicture} environments directly.
+Since the commands to typeset the icons with the PGF variant of the package use \macro{tikzpicture} environments, these commands should not be used inside another \macro{tikzpicture}. However, because the package defines the icons as Ti\emph{k}Z shapes, it is possible to use the icons in \macro{tikzpicture} environments directly.
-Apart from that, the PGF variant of the package provides a way to define custom commands to typeset the icons as boxed material which is safe to use in a \macro{tikzpicture} context. Furthermore, the icons can be used as Ti\emph{k}Z pics.
+Apart from that, the PGF variant of the package provides a way to define custom commands to typeset the icons as boxed material which is safe to use in a \macro{tikzpicture} context. Furthermore, the icons can be used as Ti\emph{k}Z pics.
-Once loaded, the PGF variant of the package defines a set of node shapes that can be used inside a \macro{tikzpicture} environment.
+Once loaded, the PGF variant of the package defines a set of node shapes that can be used inside a \macro{tikzpicture} environment.
\begin{macrodef}pics\end{macrodef}
The PGF variant of the package provides the option \macro{pics}. If the package is loaded with this option, every icon is also available as Ti\emph{k}Z pic. On the use of pics, see section \ref{sec:pics} below.
@@ -686,12 +693,12 @@
!rpg icons/!every condition
!rpg icons/!every <shape>
\end{macrodef}
-Using Ti\emph{k}Z styles, all instances of a certain command or a certain shape can be styled at once. These styles all follow the pattern \macro{rpg icons/every} followed by a space and the name of the command or the shape. For example, \macro{\tikzset{rpg icons/every die/.append style={red}}} can be used to draw in red all icons created using the \macro{\die} command. To draw every instace of the \macro{charisma} shape in red, \macro{\tikzset{rpg icons/every charisma/.append style={red}}} can be used.
+Using Ti\emph{k}Z styles, all instances of a certain command or a certain shape can be styled at once. These styles all follow the pattern \macro{rpg icons/every} followed by a space and the name of the command or the shape. For example, \macro{\tikzset{rpg icons/every die/.append style={red}}} can be used to draw in red all icons created using the \macro{\die} command. To draw every instance of the \macro{charisma} shape in red, \macro{\tikzset{rpg icons/every charisma/.append style={red}}} can be used.
\subsection{Setting styles lobally}
\begin{macrodef}rpg icons\end{macrodef}
-All icons share the Ti\emph{k}Z style \macro{rpg icons} that has no options per default but can be used to style all icons at once. For example, if \macro{\tikzset{rpg icons/.append style={draw=red}}} is placed at the beginning of the document, all icons will be drawn in red. Per default, the icons are drawn in the color of the surrounding text.
+All icons share the Ti\emph{k}Z style \macro{rpg icons} that is empty per default but can be used to style all icons at once. For example, if \macro{\tikzset{rpg icons/.append style={draw=red}}} is placed at the beginning of the document, all icons will be drawn in red. Per default, the icons are drawn in the color of the surrounding text.
Note that it may be necessary to add the Ti\emph{k}Z option \macro{transform shape} when applying transformations to the icons, because the icons are realised as Ti\emph{k}Z nodes which are not affected by some transformations per default.
@@ -734,11 +741,11 @@
\subsection{Direct use of shapes}
-Because the icons are defined as Ti\emph{k}Z shapes, they can directly be applied to Ti\emph{k}Z nodes. However, the shapes don't have a shape border and no anchors except for the \macro{center} anchor that sits exactly in the center of the shape. Therefore, if nodes with these shapes are connected using edges, the \macro{center} anchor will be used to connect the nodes. If nodes with these shapes are being positioned, only the \macro{center} anchor is available. Text content of these nodes is simply printed on top of the center of the node. Compare the following example.
+Because the icons are defined as Ti\emph{k}Z shapes, they can directly be applied to Ti\emph{k}Z nodes. However, the shapes don't have a shape border and no anchors defined, except for the \macro{center} anchor that sits exactly in the center of the shape. Therefore, if nodes with these shapes are connected using edges, the \macro{center} anchor will be used to connect the nodes. If nodes with these shapes are being positioned, only the \macro{center} anchor is available. Text content of these nodes is simply printed on top of the center of the node. Compare the following example.
\begin{codeexample}
\begin{tikzpicture}
- \node[eightside, blue, thick]
+ \node[eightside, blue, thick]
at (0,0) (A) {A};
\node[charisma] at (2,0) (B) {B};
\draw[red] (A) -- (B);
@@ -747,10 +754,10 @@
\subsection{Boxing of icons}
-Because the icons cannot simply be used inside \macro{tikzpicture} environments, the PGF variant of the package provides a workaround to place icons inside of boxes for later use. Icons that are boxed this way can safely used inside \macro{tikzpicture} environments. This might be necessary, if an icon should be used in inline text that sits inside a node.
+Because the icons cannot simply be used inside \macro{tikzpicture} environments, the PGF variant of the package provides a workaround to place icons inside boxes for later use. Icons that are boxed this way can safely used inside \macro{tikzpicture} environments. This might be necessary, if an icon should be used in inline text that sits inside a node.
\begin{macrodef}|\provideprotectedrpgicon|{<command>}[<style>]{<shape>}[<options>]{<box name>}\end{macrodef}
-The command \macro{\provideprotectedrpgicon} creates a box containing the icon that would be created using one of the regular commands this package provides.
+The command \macro{\provideprotectedrpgicon} creates a box containing the icon that would be created using one of the regular commands this package provides.
\macro{\provideprotectedrpgicon{die}[large]{eightside}[blue, thick]{mybox}}, for example, stores the icon of an eight-sided die with the relevant style and Ti\emph{k}Z options in a new box named \macro{mybox}. Note that no integer can be added to the \macro{die} command in this context.
@@ -764,26 +771,25 @@
\begin{codeexample}
\begin{tikzpicture}
\node[circle, draw, align=center] {
- \useprotectedrpgicon{mybox} \\
+ \useprotectedrpgicon{mybox} \\
Roll a die!
};
\end{tikzpicture}
\end{codeexample}
-
\subsection{Icons as pics}\label{sec:pics}
-If the PGF variant of the package is loaded with the option \macro{pics}, every icon is also available as Ti\emph{k}Z pic. The names of the pic always start with \macro{rpg icons} followed by a space and the name of the relevant icon (see the lists above). For abilities, savings, spellschools and damages, additional pics exists where the name has the suffixes \macro{ability}, \macro{saving}, \macro{spellschool}, and \macro{damage} respectively.
+If the PGF variant of the package is loaded with the option \macro{pics}, every icon is also available as Ti\emph{k}Z pic. The names of the pics always start with \macro{rpg icons} followed by a space and the name of the relevant icon (see the lists above). For abilities, savings, spellschools and damages, additional pics exist where the name has the suffixes \macro{ability}, \macro{saving}, \macro{spellschool}, and \macro{damage} respectively.
-The icon is embedded as a node in the pic which has the name \macro{-node}. Thus, it is possible to name the pic and refer to the node inside. Due to the fact that the icon is a node, the option `transform shape` has to be used if transformations on the pic are to affect the node as well. It is easily possible to apply styles to the node using the Ti\emph{k}Z option \macro{every node} as shown in the following example.
+The icon is embedded as a node in the pic which has the name \macro{-node}. Thus, it is possible to name the pic and refer to the node inside. Due to the fact that the icon is a node, the option \macro{transform shape} has to be used if transformations on the pic should affect the node as well. It is possible to apply styles to the node using the Ti\emph{k}Z option \macro{every node} as shown in the following example.
\begin{codeexample}
\begin{tikzpicture}
\pic[
transform shape,
- scale=2,
- fill=blue,
- draw=red,
+ scale=2,
+ fill=blue,
+ draw=red,
every node/.append style={
white,
thick
@@ -796,12 +802,12 @@
\begin{macrodef}
!rpg icons/!create pic from shape
!rpg icons/!create pic from ability shape
-!rpg icons/!create pic from saving shape
+!rpg icons/!create pic from saving shape
!rpg icons/!create pic from spellschool shape
!rpg icons/!create pic from damage shape
!rpg icons/!create every style
\end{macrodef}
-The PGF variant of the package defines five Ti\emph{k}Z keys that are used to create pics using the relevant node shapes. Another key is defined to create keys that can be used to style all instances of a command or shape. In normal circumstances, it is not necessary to use these keys. They are mentioned here only for reference.
+The PGF variant of the package defines five Ti\emph{k}Z keys that are used to create pics using the relevant node shapes. Another key is defined to create keys that can be used to style all instances of a command or shape. In normal circumstances, it is not necessary to use these keys. They are mentioned here only for reference.
The following example shows how to create the drawing on the first page of this documentation using Ti\emph{k}Z pics. We need to call \macro{rpg icons/create pic from ability shape} for the shapes \macro{twentyside}, \macro{buff} and \macro{ranged}, because per default no pics are defined for these shapes in combination with ability. Note the use of \macro{\space} to ensure correct use of spaces in the pic name as spaces are gobbled after commands in TeX.
@@ -810,8 +816,8 @@
rpg icons/%
create pic from ability shape/%
.list={
- twentyside,
- buff,
+ twentyside,
+ buff,
ranged
},
rpg icons/every ability/.style={
@@ -824,16 +830,16 @@
\begin{tikzpicture}[scale=4]
\foreach \x/\c [count=\i] in {
- twentyside/264653,
- charisma/287271,
- armor/2a9d8f,
- buff/e9c46a,
- ranged/f4a261,
+ twentyside/264653,
+ charisma/287271,
+ armor/2a9d8f,
+ buff/e9c46a,
+ ranged/f4a261,
proficiency/e76f51
} {
\definecolor{color}{HTML}{\c}
- \pic[fill=color, transform shape]
- at ({60*\i+10}:{0.33cm})
+ \pic[fill=color, transform shape]
+ at ({60*\i+10}:{0.33cm})
{rpg icons \x\space ability};
}
\end{tikzpicture}
@@ -845,21 +851,17 @@
|\roll|{<roll syntax>}
|\rpgiconsroll|{<roll syntax>}
\end{macrodef}
-The \macro{\roll} macro can be used to quickly typeset dice rolls with the relevant icons using the established dice rolling syntax. This syntax consists of a sequence of dice and numbers concatenated by mathematical operators (plus, minus or times). Typically, the letter \macro{d} is used to denote a die with a certain number of sides. For example \macro{d6} denotes a six-sided die. A number can be added to specify the number of such dice that are rolled together. The letter to denote the die can be changed using the Ti\emph{k}Z style \macro{rpg icons/roll syntax}.
+Please refer to section \ref{sec:roll-dice-syntax} about how to use the \macro{\roll} macro in general. Differences to the L3 variant of the package are described in the following.
-For example, \macro{2d6 + 3d4 - 1} means ``roll two six-sided dice and three four-sided dice and subtract one from the result''. The command \macro{\roll{2d6 + 3d4 - 1}} results in \roll{2d6 + 3d4 - 1}.
+The letter to denote the die can be changed using the Ti\emph{k}Z style \macro{rpg icons/roll syntax}.
-The die notations \macro{d2}, \macro{d4}, \macro{d6}, \macro{d8}, \macro{d10}, \macro{d12}, \macro{d20} and \macro{d100} are defined. To denote a fudge die, \macro{dF} can be used. To denote that the lowest or highest die should be removed from the result, the letters \macro{L} and \macro{H} can be used. The syntax \macro{2d6 x 2} or \macro{2d6 * 2} can be used to denote several rolls with the same set of dice.
+If the \macro{rpgicons} package is to be loaded together with some other package that defines the command \macro{\roll}, the command \macro{\rpgiconsroll} can be used. This alternative command is an exact copy of the \macro{\roll} command.
-If the \macro{rpgicons} package is to be loaded together with some other package that defines the command \macro{\roll}, the command \macro{\rpgiconsroll} can be used. This alternative command is an exact copy of the \macro{\roll} command.
-
\begin{macrodef}
!rpg icons/!roll syntax
\end{macrodef}
-The Ti\emph{k}Z style \macro{rpg icons/roll syntax} can be used to change the character that denotes a die in the dice rolling syntax. Multiple characters can be given using a comma separated list. The default setting is \macro{d,D} which allows notations such as \macro{2d6} or \macro{2D6}.
+The Ti\emph{k}Z style \macro{rpg icons/roll syntax} can be used to change the character that denotes a die in the dice rolling syntax. Multiple characters can be given using a comma separated list. The default setting is \macro{d,D}.
-With \macro{\tikzset{rpg icons/roll syntax={w,W}}}, for example, notations such as \macro{2w6} or \macro{2W6} could be used.
-
% =====
\printchanges
Modified: trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-l3.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-l3.sty 2025-01-27 20:49:57 UTC (rev 73608)
+++ trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-l3.sty 2025-01-27 20:50:07 UTC (rev 73609)
@@ -1,16 +1,16 @@
-% File: rpgicons-l3.sty
-% Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
-%
+% File: rpgicons-l3.sty
+% Copyright 2024-2025 Jasper Habicht (mail(at)jasperhabicht.de).
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
-%
+%
% This file is part of the `rpgicons' package (The Work in LPPL)
% and all files in that bundle must be distributed together.
-%
+%
% This work has the LPPL maintenance status `maintained'.
-%
-\ProvidesExplPackage {rpgicons-l3} {2024-08-08} {1.8.4}
+%
+\ProvidesExplPackage {rpgicons-l3} {2025-01-22} {1.8.6}
{RPG Icons Package (l3 Variant)}
\bool_new:N \l__rpgicons_unicode_mode_bool
@@ -23,7 +23,7 @@
\bool_new:N \l__rpgicons_compat_mode_bool
\bool_new:N \l__rpgicons_use_opacity_bool
-\keys_define:nn { rpgicons / package ~ options } {
+\keys_define:nn { rpgicons / package ~ options } {
compat .bool_set:N = \l__rpgicons_compat_mode_bool ,
compat .default:n = { true } ,
opacity .bool_set:N = \l__rpgicons_use_opacity_bool ,
@@ -67,11 +67,11 @@
% DICE
-\cs_new:Npn \rpgicons_draw_shape_twoside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_twoside: {
\draw_path_ellipse:nnn { 0cm , 0cm } { 0cm , .25cm } { .425cm , 0cm }
}
-\cs_new:Npn \rpgicons_draw_shape_fourside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_fourside: {
\draw_path_moveto:n { 0cm , .35cm }
\draw_path_lineto:n { .433cm , -.4cm }
\draw_path_lineto:n { -.433cm , -.4cm }
@@ -78,7 +78,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_shape_sixside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_sixside: {
\bool_if:NTF \l__rpgicons_compat_mode_bool {
% l3draw rectangle fix
\draw_path_moveto:n { -.4cm , -.4cm }
@@ -91,7 +91,7 @@
}
}
-\cs_new:Npn \rpgicons_draw_shape_eightside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_eightside: {
\draw_path_moveto:n { 0cm , .5cm }
\draw_path_lineto:n { .433cm , .25cm }
\draw_path_lineto:n { .433cm , -.25cm }
@@ -104,7 +104,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_shape_tenside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_tenside: {
\draw_path_moveto:n { 0cm , .5cm }
\draw_path_lineto:n { .475cm , .1cm }
\draw_path_lineto:n { .475cm , -.1cm }
@@ -124,7 +124,7 @@
\draw_path_lineto:n { 0cm , -.3cm }
}
-\cs_new:Npn \rpgicons_draw_shape_twelveside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_twelveside: {
\draw_path_moveto:n { 0cm , .5cm }
\draw_path_lineto:n { 0.294cm , .405cm }
\draw_path_lineto:n { .475cm , .173cm }
@@ -153,7 +153,7 @@
\draw_path_lineto:n { -.332cm , .108cm }
}
-\cs_new:Npn \rpgicons_draw_shape_twentyside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_twentyside: {
\draw_path_moveto:n { 0cm , .5cm }
\draw_path_lineto:n { .454cm , .262cm }
\draw_path_lineto:n { .454cm , -.262cm }
@@ -178,18 +178,18 @@
\draw_path_lineto:n { -.253cm , -.146cm }
}
-\cs_new:Npn \rpgicons_draw_shape_hundredside: {
+\cs_new_protected:Npn \rpgicons_draw_shape_hundredside: {
\draw_path_circle:nn { 0cm, 0cm } { .425cm }
\draw_path_moveto:n { .425cm , 0cm }
\draw_path_arc:nnnn { 180 } { 50 } { -.425cm } { -.2cm }
\draw_path_moveto:n { 0cm , -.425cm }
- \draw_path_arc:nnnn { 270 } { 140 } { -.2cm } { .425cm }
+ \draw_path_arc:nnnn { 270 } { 140 } { -.2cm } { .425cm }
}
\clist_new:N \l_rpgnicons_pips_clist
\fp_new:N \l_rpgnicons_pips_coordx_fp
\fp_new:N \l_rpgnicons_pips_coordy_fp
-\cs_new:Npn \rpgicons_draw_shape_sixside_pips:n #1 {
+\cs_new_protected:Npn \rpgicons_draw_shape_sixside_pips:n #1 {
\str_case:nn {#1} {
{ one } { \clist_set:Nn \l_rpgnicons_pips_clist {
{ 0cm , 0cm }
@@ -239,7 +239,7 @@
\rpgicons_draw_shape_sixside:
}
-\cs_new:Npn \rpgicons_draw_shape_fudge: {
+\cs_new_protected:Npn \rpgicons_draw_shape_fudge: {
\rpgicons_draw_shape_sixside:
\draw_path_moveto:n { -.15cm , .1cm }
\draw_path_lineto:n { .15cm , .1cm }
@@ -249,7 +249,7 @@
\draw_path_lineto:n { .15cm , -.2cm }
}
-\cs_new:Npn \rpgicons_draw_shape_fudge_plus: {
+\cs_new_protected:Npn \rpgicons_draw_shape_fudge_plus: {
\rpgicons_draw_shape_sixside:
\draw_path_moveto:n { 0cm , .15cm }
\draw_path_lineto:n { 0cm , -.15cm }
@@ -257,7 +257,7 @@
\draw_path_lineto:n { .15cm , 0cm }
}
-\cs_new:Npn \rpgicons_draw_shape_fudge_minus: {
+\cs_new_protected:Npn \rpgicons_draw_shape_fudge_minus: {
\rpgicons_draw_shape_sixside:
\draw_path_moveto:n { -.15cm , 0cm }
\draw_path_lineto:n { .15cm , 0cm }
@@ -265,7 +265,7 @@
% ABILITIES
-\cs_new:Npn \rpgicons_draw_shape_strength: {
+\cs_new_protected:Npn \rpgicons_draw_shape_strength: {
\draw_path_moveto:n { ( 0cm , -.075cm ) + ( \draw_point_polar:nn { .425cm } { 90 } ) }
\draw_path_arc:nnn { 90 } { 60 } { .425cm }
\draw_path_arc:nnn { 200 } { -40 } { .1cm }
@@ -290,7 +290,7 @@
\draw_path_arc:nnn { 90 } { 110 } { .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_constitution: {
+\cs_new_protected:Npn \rpgicons_draw_shape_constitution: {
\draw_path_moveto:n { 0cm , .25cm }
\draw_path_lineto:n { .125cm , .25cm }
\draw_path_arc:nnn { -90 } { -30 } { .325cm }
@@ -323,7 +323,7 @@
\draw_path_lineto:n { .075cm , -.1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_wisdom: {
+\cs_new_protected:Npn \rpgicons_draw_shape_wisdom: {
\draw_path_moveto:n { 0cm , .175cm }
\draw_path_arc:nnn { 60 } { 90 } { .425cm }
\draw_path_arc:nnn { 270 } { 240 } { .425cm }
@@ -341,7 +341,7 @@
\draw_path_arc:nnn { 30 } { -90 } { .25cm }
}
-\cs_new:Npn \rpgicons_draw_shape_charisma: {
+\cs_new_protected:Npn \rpgicons_draw_shape_charisma: {
\draw_path_moveto:n { 0cm , .15cm }
\draw_path_arc:nnnn { 270 } { 190 } { .15cm } { .1cm }
\draw_path_arc:nnnn { 10 } { 90 } { .175cm } { .225cm }
@@ -382,7 +382,7 @@
\draw_path_lineto:n { .25cm , -.275cm }
}
-\cs_new:Npn \rpgicons_draw_shape_dexterity: {
+\cs_new_protected:Npn \rpgicons_draw_shape_dexterity: {
\draw_path_moveto:n { ( 0cm , -.075cm ) + ( \draw_point_polar:nn { .425cm } { 90 } ) }
\draw_path_arc:nnn { 90 } { 65 } { .425cm }
\draw_path_arc:nnnn { 200 } { 90 } { .1cm } { .075cm }
@@ -396,7 +396,7 @@
\draw_path_arc:nnnn { 90 } { 220 } { .1cm } { .075cm }
\draw_path_moveto:n { ( 0cm , -.075cm ) + ( \draw_point_polar:nn { .425cm } { 135 } ) }
\draw_path_arc:nnnn { 135 } { 200 } { .425cm } { .35cm }
- \draw_path_arc:nnn { 70 } { 20 } { .175cm }
+ \draw_path_arc:nnn { 70 } { 20 } { .175cm }
\draw_path_moveto:n { -.075cm , -.175cm }
\draw_path_arc:nnnn { 180 } { 360 } { .075cm } { .05cm }
\draw_path_moveto:n { 0cm , -.225cm }
@@ -417,7 +417,7 @@
\draw_path_lineto:n { .1cm , -.325cm }
}
-\cs_new:Npn \rpgicons_draw_shape_dexterity_alt: {
+\cs_new_protected:Npn \rpgicons_draw_shape_dexterity_alt: {
\draw_path_moveto:n { ( 0cm , -.15cm ) + ( \draw_point_polar:nn { .425cm } { 90 } ) }
\draw_path_arc:nnn { 90 } { 75 } { .425cm }
\draw_path_moveto:n { ( 0cm , -.15cm ) + ( \draw_point_polar:nn { .425cm } { 90 } ) }
@@ -433,9 +433,9 @@
\draw_path_lineto:n { ( 0cm , -.1cm ) + ( \draw_point_polar:nn { .425cm } { 150 } ) }
\draw_path_arc:nnnn { 150 } { 225 } { .425cm } { .35cm }
\draw_path_moveto:n { .075cm , -.075cm }
- \draw_path_arc:nnnn { 170 } { 90 } { .15cm } { .05cm }
+ \draw_path_arc:nnnn { 170 } { 90 } { .15cm } { .05cm }
\draw_path_moveto:n { -.075cm , -.075cm }
- \draw_path_arc:nnnn { 10 } { 90 } { .15cm } { .05cm }
+ \draw_path_arc:nnnn { 10 } { 90 } { .15cm } { .05cm }
\draw_path_moveto:n { 0cm , -.275cm }
\draw_path_arc:nnnn { 0 } { 90 } { .075cm } { .05cm }
\draw_path_moveto:n { 0cm , -.275cm }
@@ -450,7 +450,7 @@
\draw_path_lineto:n { .1cm , -.35cm }
}
-\cs_new:Npn \rpgicons_draw_shape_intelligence: {
+\cs_new_protected:Npn \rpgicons_draw_shape_intelligence: {
\draw_path_moveto:n { ( 0cm , -.2cm ) + ( \draw_point_polar:nn { .425cm } { 90 } ) }
\draw_path_arc:nnn { 90 } { 60 } { .25cm }
\draw_path_lineto:n { ( 0cm , -.1cm ) + ( \draw_point_polar:nn { .6cm } { 60 } ) }
@@ -473,7 +473,7 @@
\draw_path_lineto:n { .2cm , -.075cm }
}
-\cs_new:Npn \rpgicons_draw_shape_resilience: {
+\cs_new_protected:Npn \rpgicons_draw_shape_resilience: {
\draw_path_moveto:n { ( -.425cm , -.475cm ) + ( \draw_point_polar:nn { .5cm } { 65 } ) }
\draw_path_arc:nnn { 65 } { 90 } { .5cm }
\draw_path_lineto:n { ( 0cm , -.075cm ) + ( \draw_point_polar:nn { .55cm } { 135 } ) }
@@ -500,8 +500,8 @@
\draw_path_lineto:n { .065cm , -.075cm }
}
-\cs_new:Npn \rpgicons_draw_shape_sanity: {
- \draw_path_moveto:n { ( -.125cm + .175cm * sind(30) , .425cm - .175cm * cosd(30) ) +
+\cs_new_protected:Npn \rpgicons_draw_shape_sanity: {
+ \draw_path_moveto:n { ( -.125cm + .175cm * sind(30) , .425cm - .175cm * cosd(30) ) +
( \draw_point_polar:nn { .175cm } { 210 } ) }
\draw_path_arc:nnn { 210 } { 120 } { .175cm }
\draw_path_lineto:n { \draw_point_polar:nn { .25cm } { 110 } }
@@ -520,14 +520,14 @@
\draw_path_lineto:n { .1cm , .025cm }
\draw_path_moveto:n { ( -.55cm , -.35cm ) + ( \draw_point_polar:nnn { .125cm } { .075cm} { 135 } ) +
( \draw_point_polar:nn { .55cm } { 20 } ) }
- \draw_path_arc:nnn { 380 } { 360 } { .55cm }
+ \draw_path_arc:nnn { 380 } { 360 } { .55cm }
\draw_path_arc:nnnn { 135 } { 405 } { .125cm } { .075cm }
\draw_path_arc:nnn { 180 } { 160 } { .55cm }
}
-\cs_new:Npn \rpgicons_draw_shape_perception: {
+\cs_new_protected:Npn \rpgicons_draw_shape_perception: {
\draw_path_moveto:n { ( 0cm , .35cm ) + ( \draw_point_polar:nn { .125cm } { 150 } ) }
- \draw_path_arc:nnn { 150 } { 390 } { .125cm }
+ \draw_path_arc:nnn { 150 } { 390 } { .125cm }
\draw_path_moveto:n { -.3cm , .425cm }
\draw_path_arc:nnnn { 180 } { 360 } { .3cm } { .2cm }
\draw_path_moveto:n { ( 0cm , .425cm ) + ( \draw_point_polar:nnn { .3cm } { .2cm } { 330 } ) }
@@ -546,17 +546,17 @@
\draw_path_moveto:n { .15cm , 0cm }
\draw_path_lineto:n { .075cm , -.025cm }
\draw_path_lineto:n { .075cm , -.05cm }
- \draw_path_moveto:n { ( -.075cm , ( -.35cm + .075cm * ( 2 + sqrt(3) ) ) ) +
- ( \draw_point_polar:nnn { .1cm } { .075cm } { 195 } ) }
+ \draw_path_moveto:n { ( -.075cm , ( -.35cm + .075cm * ( 2 + sqrt(3) ) ) ) +
+ ( \draw_point_polar:nnn { .1cm } { .075cm } { 195 } ) }
\draw_path_lineto:n { ( 0cm , -.35cm ) + ( \draw_point_polar:nnn { .1cm } { .075cm } { 195 } ) }
\draw_path_arc:nnnn { 195 } { 345 } { .1cm } { .075cm }
- \draw_path_lineto:n { ( .075cm , ( -.35cm + .075cm * ( 2 + sqrt(3) ) ) ) +
- ( \draw_point_polar:nnn { .1cm } { .075cm } { 345 } ) }
+ \draw_path_lineto:n { ( .075cm , ( -.35cm + .075cm * ( 2 + sqrt(3) ) ) ) +
+ ( \draw_point_polar:nnn { .1cm } { .075cm } { 345 } ) }
\draw_path_moveto:n { .025cm , -.325cm }
- \draw_path_arc:nnn { 0 } { 180 } { .025cm }
+ \draw_path_arc:nnn { 0 } { 180 } { .025cm }
}
-\cs_new:Npn \rpgicons_draw_shape_luck: {
+\cs_new_protected:Npn \rpgicons_draw_shape_luck: {
\draw_path_moveto:n { .1cm , .15cm }
\draw_path_lineto:n { .1cm , -.05cm }
\draw_path_arc:nnn { -75 } { -15 } { .425cm }
@@ -565,9 +565,9 @@
\draw_path_lineto:n { -.1cm , -.05cm }
\draw_path_arc:nnn { -105 } { -165 } { .425cm }
\draw_path_arc:nnn { 140 } { 95 } { .425cm }
- \draw_path_moveto:n { ( 0cm , -.05cm ) + ( \draw_point_polar:nn { .425cm } { 15 } ) }
+ \draw_path_moveto:n { ( 0cm , -.05cm ) + ( \draw_point_polar:nn { .425cm } { 15 } ) }
\draw_path_arc:nnnn { 15 } { -55 } { .425cm } { .3cm }
- \draw_path_moveto:n { ( 0cm , -.05cm ) + ( \draw_point_polar:nn { .425cm } { 165 } ) }
+ \draw_path_moveto:n { ( 0cm , -.05cm ) + ( \draw_point_polar:nn { .425cm } { 165 } ) }
\draw_path_arc:nnnn { 165 } { 235 } { .425cm } { .3cm }
\draw_path_moveto:n { 0cm , -.175cm }
\draw_path_arc:nnnn { 90 } { 250 } { .175cm } { .125cm }
@@ -577,7 +577,7 @@
\draw_path_lineto:n { .05cm , -.325cm }
}
-\cs_new:Npn \rpgicons_draw_shape_armor: {
+\cs_new_protected:Npn \rpgicons_draw_shape_armor: {
\draw_path_moveto:n { -.25cm , -.425cm }
\draw_path_lineto:n { .25cm , -.425cm }
\draw_path_lineto:n { .2cm , -.225cm }
@@ -604,7 +604,7 @@
\draw_path_lineto:n { .2cm , -.225cm }
}
-\cs_new:Npn \rpgicons_draw_shape_proficiency: {
+\cs_new_protected:Npn \rpgicons_draw_shape_proficiency: {
\draw_path_moveto:n { \draw_point_polar:nn { .35cm} { 90 } }
\draw_path_lineto:n { \draw_point_polar:nn { .15cm} { 126 } }
\draw_path_lineto:n { \draw_point_polar:nn { .35cm} { 162 } }
@@ -628,7 +628,7 @@
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 198 } }
}
-\cs_new:Npn \rpgicons_draw_shape_linear: {
+\cs_new_protected:Npn \rpgicons_draw_shape_linear: {
\draw_path_circle:nn { -.4cm , 0cm } { 2pt }
\draw_path_use_clear:n { fill }
\draw_path_moveto:n { -.4cm , 0cm }
@@ -635,18 +635,18 @@
\draw_path_lineto:n { .4cm , 0cm }
}
-\cs_new:Npn \rpgicons_draw_shape_conic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_conic: {
\draw_path_circle:nn { -.425cm , 0cm } { 2pt }
\draw_path_use_clear:n { fill }
\draw_path_ellipse:nnn { .2125cm , 0cm } { .2cm , 0cm } { 0cm , .425cm }
- \draw_path_moveto:n { .2125cm - .2cm * sin( asin( .2cm / .6375cm ) ) ,
+ \draw_path_moveto:n { .2125cm - .2cm * sin( asin( .2cm / .6375cm ) ) ,
-.425cm * cos( asin( .2cm / ( .6375cm ) ) ) }
\draw_path_lineto:n { -.425cm , 0cm }
- \draw_path_lineto:n { .2125cm - .2cm * sin( asin( .2cm / .6375cm ) ) ,
+ \draw_path_lineto:n { .2125cm - .2cm * sin( asin( .2cm / .6375cm ) ) ,
.425cm * cos( asin( .2cm / ( .6375cm ) ) ) }
}
-\cs_new:Npn \rpgicons_draw_shape_quadratic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_quadratic: {
\draw_path_circle:nn { 0cm , 0cm } { 2pt }
\draw_path_use_clear:n { fill }
\bool_if:NTF \l__rpgicons_compat_mode_bool {
@@ -661,7 +661,7 @@
}
}
-\cs_new:Npn \rpgicons_draw_shape_cubic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_cubic: {
\draw_path_circle:nn { .1125cm , -.1125cm } { 2pt }
\draw_path_use_clear:n { fill }
\draw_path_moveto:n { -.425cm , .425cm }
@@ -677,7 +677,7 @@
\draw_path_lineto:n { .425cm , .2cm }
}
-\cs_new:Npn \rpgicons_draw_shape_spheric: {
+\cs_new_protected:Npn \rpgicons_draw_shape_spheric: {
\draw_path_circle:nn { 0cm , 0cm } { 2pt }
\draw_path_use_clear:n { fill }
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
@@ -687,7 +687,7 @@
\draw_path_arc:nnnn { 270 } { 140 } { -.2cm } { .425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_cylindric: {
+\cs_new_protected:Npn \rpgicons_draw_shape_cylindric: {
\draw_path_circle:nn { 0cm , -.2125cm } { 2pt }
\draw_path_use_clear:n { fill }
\draw_path_ellipse:nnn { 0cm , .2125cm } { 0cm , .2cm } { .425cm , 0cm }
@@ -697,7 +697,7 @@
\draw_path_lineto:n { .425cm , .2125cm }
}
-\cs_new:Npn \rpgicons_draw_shape_verbal: {
+\cs_new_protected:Npn \rpgicons_draw_shape_verbal: {
\draw_path_moveto:n { -.35cm , 0cm }
\draw_path_arc:nnn { 180 } { -115 } { .35cm }
\draw_path_lineto:n { -.4cm , -.4cm }
@@ -704,7 +704,7 @@
\draw_path_lineto:n { \draw_point_polar:nn { .35cm } { 215 } }
}
-\cs_new:Npn \rpgicons_draw_shape_somatic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_somatic: {
\draw_path_moveto:n { -.425cm , 0cm }
\draw_path_arc:nnnn { 0 } { 270 } { -.425cm } { -.2cm }
\draw_path_moveto:n { 0cm , -.425cm }
@@ -711,7 +711,7 @@
\draw_path_arc:nnnn { 90 } { 360 } { -.2cm } { -.425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_material: {
+\cs_new_protected:Npn \rpgicons_draw_shape_material: {
\draw_path_moveto:n { -.4cm , .2cm }
\draw_path_lineto:n { -.4cm , -.2cm }
\draw_path_lineto:n { 0cm , -.4cm }
@@ -725,7 +725,7 @@
\draw_path_lineto:n { 0cm , -.4cm }
}
-\cs_new:Npn \rpgicons_draw_shape_focus: {
+\cs_new_protected:Npn \rpgicons_draw_shape_focus: {
\draw_path_circle:nn { 0cm , 0cm } { .35cm }
\draw_path_moveto:n { -.15cm , 0 }
\draw_path_lineto:n { -.425cm , 0 }
@@ -739,7 +739,7 @@
% SPELLSCHOOLS
-\cs_new:Npn \rpgicons_draw_shape_abjuration: {
+\cs_new_protected:Npn \rpgicons_draw_shape_abjuration: {
\draw_path_moveto:n { 0cm , .025cm }
\draw_path_arc:nnnn { 270 } { 390 } { .275cm } { .175cm }
\draw_path_arc:nnn { 210 } { 120 } { .095cm }
@@ -754,7 +754,7 @@
\draw_path_lineto:n { .25cm , -.3cm }
}
-\cs_new:Npn \rpgicons_draw_shape_conjuration: {
+\cs_new_protected:Npn \rpgicons_draw_shape_conjuration: {
\draw_path_moveto:n { -.425cm , .425cm }
\draw_path_lineto:n { 0cm , -.425cm }
\draw_path_lineto:n { .425cm , .425cm }
@@ -766,7 +766,7 @@
\draw_path_arc:nnn { 110 } { 70 } { -.5cm }
}
-\cs_new:Npn \rpgicons_draw_shape_divination: {
+\cs_new_protected:Npn \rpgicons_draw_shape_divination: {
\draw_path_moveto:n { -.35cm , -.175cm }
\draw_path_arc:nnnn { 180 } { 0 } { .15cm } { -.25cm }
\draw_path_arc:nnn { 180 } { 90 } { .4cm }
@@ -775,7 +775,7 @@
\draw_path_arc:nnn { 180 } { 90 } { .4cm }
}
-\cs_new:Npn \rpgicons_draw_shape_enchantment: {
+\cs_new_protected:Npn \rpgicons_draw_shape_enchantment: {
\draw_path_moveto:n { -.2cm , -.425cm }
\draw_path_lineto:n { -.2cm , .425cm }
\draw_path_moveto:n { -.425cm , .175cm }
@@ -786,7 +786,7 @@
\draw_path_arc:nnnn { 180 } { 0 } { .1cm } { -.2cm }
}
-\cs_new:Npn \rpgicons_draw_shape_evocation: {
+\cs_new_protected:Npn \rpgicons_draw_shape_evocation: {
\draw_path_ellipse:nnn { 0cm , 0cm } { .325cm , 0cm } { 0cm , .225cm }
\draw_path_moveto:n { 0cm , .425cm }
\draw_path_lineto:n { 0cm , -.425cm }
@@ -810,12 +810,12 @@
\draw_path_lineto:n { \draw_point_polar:nn { .4cm } { 330 } }
}
-\cs_new:Npn \rpgicons_draw_shape_illusion: {
+\cs_new_protected:Npn \rpgicons_draw_shape_illusion: {
\draw_path_moveto:n { 0cm , .225cm }
\draw_path_arc:nnn { 90 } { 30 } { .45cm }
\draw_path_arc:nnn { 330 } { 210 } { .45cm }
\draw_path_arc:nnn { 150 } { 90 } { .45cm }
- \draw_path_moveto:n { ( 0cm , .225cm ) + ( \draw_point_polar:nn { .45cm } { 270 } ) }
+ \draw_path_moveto:n { ( 0cm , .225cm ) + ( \draw_point_polar:nn { .45cm } { 270 } ) }
\draw_path_lineto:n { \draw_point_polar:nn { .35cm} { 270 } }
\draw_path_moveto:n { ( 0cm , .225cm ) + ( \draw_point_polar:nn { .45cm } { 240 } ) }
\draw_path_lineto:n { \draw_point_polar:nn { .4cm} { 225 } }
@@ -825,7 +825,7 @@
\draw_path_circle:nn { 0cm , .075cm } { .15cm }
}
-\cs_new:Npn \rpgicons_draw_shape_necromancy: {
+\cs_new_protected:Npn \rpgicons_draw_shape_necromancy: {
\draw_path_moveto:n { \draw_point_polar:nn { .25cm} { 210 } }
\draw_path_arc:nnn { 210 } { -30 } { .25cm }
\draw_path_arc:nnn { 150 } { 390 } { .1cm }
@@ -833,7 +833,7 @@
\draw_path_arc:nnn { 390 } { 150 } { .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_transmutation: {
+\cs_new_protected:Npn \rpgicons_draw_shape_transmutation: {
\draw_path_moveto:n { -.25cm , .35cm }
\draw_path_lineto:n { -.25cm , -.35cm }
\draw_path_moveto:n { 0cm , .35cm }
@@ -846,28 +846,28 @@
% DAMAGES
-\cs_new:Npn \rpgicons_draw_shape_acid: {
+\cs_new_protected:Npn \rpgicons_draw_shape_acid: {
\draw_path_moveto:n { ( -.175cm , .05cm ) + ( \draw_point_polar:nn { .175 } { -20 } ) }
\draw_path_arc:nnn { -20 } { 200 } { -.175cm }
\draw_path_lineto:n { 0cm , .425cm }
\draw_path_close:
- \draw_path_moveto:n {
- \draw_point_intersect_lines:nnnn
- { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 20 } ) }
- { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 160 } ) }
- { -.425cm , -.425cm } { -.425cm , .425cm }
+ \draw_path_moveto:n {
+ \draw_point_intersect_lines:nnnn
+ { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 20 } ) }
+ { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 160 } ) }
+ { -.425cm , -.425cm } { -.425cm , .425cm }
}
\draw_path_lineto:n { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 20 } ) }
\draw_path_arc:nnn { 20 } { 160 } { -.25cm }
- \draw_path_lineto:n {
- \draw_point_intersect_lines:nnnn
- { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 20 } ) }
- { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 160 } ) }
- { .425cm , -.425cm } { .425cm , .425cm }
+ \draw_path_lineto:n {
+ \draw_point_intersect_lines:nnnn
+ { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 20 } ) }
+ { ( 0cm , -.175cm ) + ( \draw_point_polar:nn { -.25cm } { 160 } ) }
+ { .425cm , -.425cm } { .425cm , .425cm }
}
}
-\cs_new:Npn \rpgicons_draw_shape_bludgeoning: {
+\cs_new_protected:Npn \rpgicons_draw_shape_bludgeoning: {
\draw_path_moveto:n { -.2cm , .225cm }
\draw_path_lineto:n { 0cm , .425cm }
\draw_path_lineto:n { .425cm , 0cm }
@@ -881,7 +881,7 @@
\draw_path_arc:nnn { 135 } { 315 } { -.05cm }
}
-\cs_new:Npn \rpgicons_draw_shape_cold: {
+\cs_new_protected:Npn \rpgicons_draw_shape_cold: {
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 90 } }
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 270 } }
\draw_path_moveto:n { \draw_point_polar:nn { .35cm} { 110 } }
@@ -908,12 +908,12 @@
\draw_path_lineto:n { \draw_point_polar:nn { .35cm} { 350 } }
}
-\cs_new:Npn \rpgicons_draw_shape_fire: {
+\cs_new_protected:Npn \rpgicons_draw_shape_fire: {
\draw_path_moveto:n { .15cm , -.425cm }
\draw_path_arc:nnnn { -60 } { 0 } { .45cm } { .375cm }
\draw_path_curveto:nnn { .375cm , .15cm } { .15cm , .375cm } { -.05cm , .425cm }
\draw_path_moveto:n { -.15cm , -.425cm }
- \draw_path_arc:nnnn { 240 } { 135 } { .45cm } { .35cm }
+ \draw_path_arc:nnnn { 240 } { 135 } { .45cm } { .35cm }
\draw_path_curveto:nnn { -.15cm , .2cm } { 0cm , .25cm } { -.05cm , .425cm }
\draw_path_moveto:n { .075cm , -.3cm }
\draw_path_curveto:nnn { .2cm , -.2cm } { .2cm , -.05cm } { .05cm , .1cm }
@@ -922,12 +922,12 @@
\draw_path_curveto:nnn { 0cm , -.2cm } { .05cm , -.1cm } { .05cm , .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_force: {
+\cs_new_protected:Npn \rpgicons_draw_shape_force: {
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 90 } }
\draw_path_lineto:n { \draw_point_polar:nn { .15cm} { 120 } }
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 150 } }
\draw_path_lineto:n { \draw_point_polar:nn { .15cm} { 180 } }
- \draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 210 } }
+ \draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 210 } }
\draw_path_lineto:n { \draw_point_polar:nn { .15cm} { 240 } }
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 270 } }
\draw_path_lineto:n { \draw_point_polar:nn { .15cm} { 300 } }
@@ -938,7 +938,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_shape_lightning: {
+\cs_new_protected:Npn \rpgicons_draw_shape_lightning: {
\draw_path_moveto:n { 0cm , .425cm }
\draw_path_lineto:n { -.25cm , -.15cm }
\draw_path_lineto:n { .25cm , .15cm }
@@ -945,7 +945,7 @@
\draw_path_lineto:n { 0cm , -.425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_necrotic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_necrotic: {
\draw_path_moveto:n { -.35cm , -.425cm }
\draw_path_lineto:n { -.35cm , .075cm }
\draw_path_arc:nnn { 180 } { 0 } { .35cm }
@@ -957,7 +957,7 @@
\draw_path_lineto:n { .15cm , .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_piercing: {
+\cs_new_protected:Npn \rpgicons_draw_shape_piercing: {
\draw_path_moveto:n { -.425cm , .075cm }
\draw_path_lineto:n { .3cm , .075cm }
\draw_path_lineto:n { .425cm , 0cm }
@@ -973,7 +973,7 @@
\draw_path_lineto:n { .25cm , -.425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_poison: {
+\cs_new_protected:Npn \rpgicons_draw_shape_poison: {
\draw_path_moveto:n { ( 0cm , .175cm ) + ( \draw_point_polar:nn { .25cm } { -40 } ) }
\draw_path_arc:nnn { -40 } { 220 } { .25cm }
\draw_path_lineto:n { -.15cm , -.1cm }
@@ -987,7 +987,7 @@
\draw_path_lineto:n { .425cm , -.425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_psychic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_psychic: {
\draw_path_moveto:n { .075cm , .4cm }
\draw_path_arc:nnn { 90 } { 180 } { .425cm }
\draw_path_arc:nnn { 180 } { 270 } { .375cm }
@@ -998,7 +998,7 @@
\draw_path_arc:nnn { 270 } { 360 } { .125cm }
}
-\cs_new:Npn \rpgicons_draw_shape_radiant: {
+\cs_new_protected:Npn \rpgicons_draw_shape_radiant: {
\draw_path_circle:nn { 0cm , 0cm } { .225cm }
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 15 } }
\draw_path_arc:nnn { 15 } { 45 } { .425cm }
@@ -1014,7 +1014,7 @@
\draw_path_arc:nnn { 315 } { 345 } { .425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_slashing: {
+\cs_new_protected:Npn \rpgicons_draw_shape_slashing: {
\draw_path_moveto:n { -.15cm , .225cm }
\draw_path_lineto:n { -.275cm , .35cm }
\draw_path_arc:nnn { 0 } { 240 } { .075cm }
@@ -1038,7 +1038,7 @@
\draw_path_lineto:n { .275cm , .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_thunder: {
+\cs_new_protected:Npn \rpgicons_draw_shape_thunder: {
\draw_path_moveto:n { .225cm , -.075cm }
\draw_path_arc:nnn { -90 } { 120 } { .2cm }
\draw_path_arc:nnn { 30 } { 180 } { .225cm }
@@ -1053,7 +1053,7 @@
\draw_path_arc:nnn { 240 } { 300 } { .5cm }
}
-\cs_new:Npn \rpgicons_draw_shape_healing: {
+\cs_new_protected:Npn \rpgicons_draw_shape_healing: {
\draw_path_moveto:n { 0cm , .125cm }
\draw_path_arc:nnn { 0 } { 225 } { .2cm }
\draw_path_lineto:n { 0cm , -.375cm }
@@ -1064,7 +1064,7 @@
% ATTACKS
-\cs_new:Npn \rpgicons_draw_shape_melee: {
+\cs_new_protected:Npn \rpgicons_draw_shape_melee: {
\draw_path_moveto:n { -.15cm , -.225cm }
\draw_path_lineto:n { -.275cm , -.35cm }
\draw_path_arc:nnn { 360 } { 90 } { .075cm }
@@ -1084,7 +1084,7 @@
\draw_path_lineto:n { 0cm , 0cm }
}
-\cs_new:Npn \rpgicons_draw_shape_ranged: {
+\cs_new_protected:Npn \rpgicons_draw_shape_ranged: {
\draw_path_moveto:n { 0cm , 0cm }
\draw_path_lineto:n { 0cm , -.225cm }
\draw_path_arc:nnn { 0 } { -30 } { .4cm }
@@ -1103,7 +1103,7 @@
\draw_path_lineto:n { ( -.4cm , .225cm ) + ( \draw_point_polar:nn { .4cm } { 20 } ) }
}
-\cs_new:Npn \rpgicons_draw_shape_magic: {
+\cs_new_protected:Npn \rpgicons_draw_shape_magic: {
\draw_path_moveto:n { -.225cm , -.425cm }
\draw_path_lineto:n { -.425cm , -.225cm }
\draw_path_lineto:n { -.3cm , -.1cm }
@@ -1127,7 +1127,7 @@
\draw_path_circle:nn { .3cm , -.075cm } { .075cm }
}
-\cs_new:Npn \rpgicons_draw_shape_singlehanded: {
+\cs_new_protected:Npn \rpgicons_draw_shape_singlehanded: {
\draw_path_moveto:n { -.25cm , -.425cm }
\draw_path_lineto:n { .025cm , -.425cm }
\draw_path_lineto:n { .325cm , -.125cm }
@@ -1142,7 +1142,7 @@
\draw_path_lineto:n { -.425cm , -.25cm }
}
-\cs_new:Npn \rpgicons_draw_shape_doublehanded: {
+\cs_new_protected:Npn \rpgicons_draw_shape_doublehanded: {
\draw_path_moveto:n { -.25cm , -.425cm }
\draw_path_lineto:n { .025cm , -.425cm }
\draw_path_lineto:n { .325cm , -.125cm }
@@ -1171,7 +1171,7 @@
% CONDITIONS
-\cs_new:Npn \rpgicons_draw_shape_buff: {
+\cs_new_protected:Npn \rpgicons_draw_shape_buff: {
\draw_path_moveto:n { -.425cm , -.225cm }
\draw_path_lineto:n { -.225cm , -.425cm }
\draw_path_lineto:n { -.1cm , -.3cm }
@@ -1193,10 +1193,9 @@
\draw_path_lineto:n { .25cm , .275cm }
\draw_path_arc:nnn { 360 } { 180 } { .125cm }
\draw_path_close:
-
}
-\cs_new:Npn \rpgicons_draw_shape_blinded: {
+\cs_new_protected:Npn \rpgicons_draw_shape_blinded: {
\draw_path_moveto:n { 0cm , .225cm }
\draw_path_arc:nnn { 90 } { 30 } { .45cm }
\draw_path_arc:nnn { 330 } { 210 } { .45cm }
@@ -1209,7 +1208,7 @@
\draw_path_lineto:n { .425cm , .425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_charmed: {
+\cs_new_protected:Npn \rpgicons_draw_shape_charmed: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_moveto:n { -.175cm , -.1cm }
\draw_path_arc:nnn { 180 } { 360 } { .175cm }
@@ -1228,7 +1227,7 @@
\draw_path_lineto:n { .175cm , 0cm }
}
-\cs_new:Npn \rpgicons_draw_shape_deafened: {
+\cs_new_protected:Npn \rpgicons_draw_shape_deafened: {
\draw_path_moveto:n { -.175cm , -.275cm }
\draw_path_arc:nnn { 180 } { 360 } { .15cm }
\draw_path_lineto:n { .125cm , -.225cm }
@@ -1245,7 +1244,7 @@
\draw_path_lineto:n { .425cm , .425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_exhausted: {
+\cs_new_protected:Npn \rpgicons_draw_shape_exhausted: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_moveto:n { -.175cm , -.225cm }
\draw_path_arc:nnn { 180 } { 0 } { .175cm }
@@ -1256,7 +1255,7 @@
\draw_path_arc:nnn { 180 } { 0 } { -.1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_frightened: {
+\cs_new_protected:Npn \rpgicons_draw_shape_frightened: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_moveto:n { -.175cm , -.225cm }
\draw_path_arc:nnn { 180 } { 0 } { .175cm }
@@ -1265,7 +1264,7 @@
\draw_path_circle:nn { .175cm , .125cm } { .075cm }
}
-\cs_new:Npn \rpgicons_draw_shape_grappled: {
+\cs_new_protected:Npn \rpgicons_draw_shape_grappled: {
\draw_path_moveto:n { -.25cm , .3cm }
\draw_path_arc:nnn { 90 } { -90 } { .075cm }
\draw_path_lineto:n { -.35cm , .15cm }
@@ -1302,7 +1301,7 @@
\draw_path_lineto:n { -.3cm , -.425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_incapacitated: {
+\cs_new_protected:Npn \rpgicons_draw_shape_incapacitated: {
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 30 } }
\draw_path_arc:nnn { 270 } { 210 } { .425cm }
\draw_path_lineto:n { \draw_point_polar:nn { -.425cm} { 90 } }
@@ -1324,7 +1323,7 @@
\draw_path_arc:nnn { 210 } { 150 } { .25cm }
}
-\cs_new:Npn \rpgicons_draw_shape_invisible: {
+\cs_new_protected:Npn \rpgicons_draw_shape_invisible: {
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { -15 } }
\draw_path_arc:nnn { -15 } { 15 } { .425cm }
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 30 } }
@@ -1343,7 +1342,7 @@
\draw_path_arc:nnn { 300 } { 330 } { .425cm }
}
-\cs_new:Npn \rpgicons_draw_shape_paralyzed: {
+\cs_new_protected:Npn \rpgicons_draw_shape_paralyzed: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_moveto:n { -.175cm , -.225cm }
\draw_path_arc:nnn { 180 } { 0 } { .175cm }
@@ -1358,7 +1357,7 @@
\draw_path_lineto:n { -.1cm , .2cm }
}
-\cs_new:Npn \rpgicons_draw_shape_petrified: {
+\cs_new_protected:Npn \rpgicons_draw_shape_petrified: {
\draw_path_moveto:n { \draw_point_polar:nn { .425cm} { 45 } }
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 100 } }
\draw_path_lineto:n { \draw_point_polar:nn { .425cm} { 135 } }
@@ -1388,7 +1387,7 @@
\draw_path_lineto:n { .1cm , .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_poisoned: {
+\cs_new_protected:Npn \rpgicons_draw_shape_poisoned: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_moveto:n { -.15cm , -.2cm }
\draw_path_lineto:n { -.075cm , -.125cm }
@@ -1402,8 +1401,8 @@
\draw_path_lineto:n { -.1cm , .1cm }
\draw_path_lineto:n { -.25cm , .025cm }
}
-
-\cs_new:Npn \rpgicons_draw_shape_prone: {
+
+\cs_new_protected:Npn \rpgicons_draw_shape_prone: {
\draw_path_circle:nn { .2cm , -.125cm } { .125cm }
\draw_path_moveto:n { -.425cm , 0cm }
\draw_path_lineto:n { -.15cm , 0cm }
@@ -1421,7 +1420,7 @@
\draw_path_arc:nnn { 0 } { 90 } { .1cm }
}
-\cs_new:Npn \rpgicons_draw_shape_restrained: {
+\cs_new_protected:Npn \rpgicons_draw_shape_restrained: {
\draw_path_moveto:n { -.075cm , -.225cm }
\draw_path_lineto:n { -.075cm , .225cm }
\draw_path_arc:nnn { 90 } { 180 } { .125cm }
@@ -1451,10 +1450,10 @@
\draw_path_arc:nnn { 90 } { -90 } { .05cm }
\draw_path_lineto:n { -.35cm , -.425cm }
\draw_path_arc:nnn { 270 } { 90 } { .05cm }
- \draw_path_close:
+ \draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_shape_stunned: {
+\cs_new_protected:Npn \rpgicons_draw_shape_stunned: {
\draw_path_circle:nn { 0cm , 0cm } { .425cm }
\draw_path_ellipse:nnn { 0cm , -.175cm } { 0cm , .1cm } { .175cm , 0cm }
\draw_path_moveto:n { ( -.175cm , .125cm ) + ( \draw_point_polar:nn { .125cm } { 90 } ) }
@@ -1481,7 +1480,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_shape_unconscious: {
+\cs_new_protected:Npn \rpgicons_draw_shape_unconscious: {
\draw_path_moveto:n { 0cm , .15cm }
\draw_path_arc:nnnn { 90 } { -30 } { .425cm } { .15cm }
\draw_path_moveto:n { 0cm , -.15cm }
@@ -1498,7 +1497,7 @@
\draw_path_arc:nnn { 0 } { 90 } { .125cm }
}
-\cs_new:Npn \rpgicons_draw_shape_hearing: {
+\cs_new_protected:Npn \rpgicons_draw_shape_hearing: {
\draw_path_moveto:n { -.175cm , -.275cm }
\draw_path_arc:nnn { 180 } { 360 } { .15cm }
\draw_path_lineto:n { .125cm , -.225cm }
@@ -1511,7 +1510,7 @@
\draw_path_arc:nnn { 180 } { 45 } { .15cm }
}
-\cs_new:Npn \rpgicons_draw_shape_seeing: {
+\cs_new_protected:Npn \rpgicons_draw_shape_seeing: {
\draw_path_moveto:n { 0cm , .225cm }
\draw_path_arc:nnn { 90 } { 30 } { .45cm }
\draw_path_arc:nnn { 330 } { 210 } { .45cm }
@@ -1522,11 +1521,11 @@
% FRAMES
-\cs_new:Npn \rpgicons_draw_frame_ability: {
+\cs_new_protected:Npn \rpgicons_draw_frame_ability: {
\draw_path_circle:nn { 0cm , 0cm } { .45cm }
}
-\cs_new:Npn \rpgicons_draw_frame_saving: {
+\cs_new_protected:Npn \rpgicons_draw_frame_saving: {
\draw_path_moveto:n { -.45cm, . 45cm }
\draw_path_lineto:n { .45cm , .45cm }
\draw_path_lineto:n { .45cm , -.05cm }
@@ -1534,7 +1533,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_frame_spellschool: {
+\cs_new_protected:Npn \rpgicons_draw_frame_spellschool: {
\draw_path_moveto:n { -.475cm, . 35cm }
\draw_path_lineto:n { -.35cm , .475cm }
\draw_path_lineto:n { .35cm , .475cm }
@@ -1545,7 +1544,7 @@
\draw_path_close:
}
-\cs_new:Npn \rpgicons_draw_frame_damage: {
+\cs_new_protected:Npn \rpgicons_draw_frame_damage: {
\draw_path_circle:nn { 0cm , 0cm } { .5cm }
}
@@ -1587,17 +1586,17 @@
\cs_generate_variant:Nn \color_fill:n { V }
\bool_new:N \l__rpgicons_opacity_warning_bool
-\cs_new:Npn \__rpgicons_opacity_check: {
- \bool_lazy_and:nnT {
+\cs_new_protected:Npn \__rpgicons_opacity_check: {
+ \bool_lazy_and:nnT {
\bool_not_p:n { \l__rpgicons_opacity_warning_bool }
} {
- \bool_not_p:n { \l__rpgicons_use_opacity_bool }
+ \bool_not_p:n { \l__rpgicons_use_opacity_bool }
} {
\msg_warning:nn { rpgicons } { opacity-option-missing }
\bool_set_true:N \l__rpgicons_opacity_warning_bool
}
}
-\cs_new:Npn \__rpgicons_accessible_check: {
+\cs_new_protected:Npn \__rpgicons_accessible_check: {
\IfDocumentMetadataTF { } {
\msg_error:nn { rpgicons } { documentmetadata-missing }
}
@@ -1605,10 +1604,10 @@
\cs_generate_variant:Nn \bool_set:Nn { Ne }
\keys_define:nn { rpgicons / local ~ options } {
- before ~ sep .groups:n = { extra } ,
+ before ~ sep .groups:n = { extra } ,
before ~ sep .dim_set:N = \l_rpgicons_icon_before_sep_dim ,
before ~ sep .initial:n = { 0.05em } ,
- after ~ sep .groups:n = { extra } ,
+ after ~ sep .groups:n = { extra } ,
after ~ sep .dim_set:N = \l_rpgicons_icon_after_sep_dim ,
after ~ sep .initial:n = { 0.05em } ,
accessible .choice: ,
@@ -1642,30 +1641,30 @@
} ,
background .tl_set:N = \l_rpgicons_icon_color_background_tl ,
background .initial:n = { white } ,
- stroke ~ opacity .code:n = {
- \__rpgicons_opacity_check:
+ stroke ~ opacity .code:n = {
+ \__rpgicons_opacity_check:
\fp_set:Nn \l_rpgicons_icon_opacity_stroke_fp {#1}
} ,
- fill ~ opacity .code:n = {
- \__rpgicons_opacity_check:
+ fill ~ opacity .code:n = {
+ \__rpgicons_opacity_check:
\fp_set:Nn \l_rpgicons_icon_opacity_fill_fp {#1}
} ,
- text ~ opacity .code:n = {
- \__rpgicons_opacity_check:
+ text ~ opacity .code:n = {
+ \__rpgicons_opacity_check:
\fp_set:Nn \l_rpgicons_icon_opacity_text_fp {#1}
} ,
- opacity .code:n = {
- \__rpgicons_opacity_check:
+ opacity .code:n = {
+ \__rpgicons_opacity_check:
\fp_set:Nn \l_rpgicons_icon_opacity_stroke_fp {#1}
\fp_set:Nn \l_rpgicons_icon_opacity_fill_fp {#1}
\fp_set:Nn \l_rpgicons_icon_opacity_text_fp {#1}
} ,
- background ~ opacity .code:n = {
- \__rpgicons_opacity_check:
+ background ~ opacity .code:n = {
+ \__rpgicons_opacity_check:
\fp_set:Nn \l_rpgicons_icon_opacity_background_fp {#1}
} ,
- line ~ width .dim_set:N = \l_rpgicons_icon_linewidth_dim ,
- line ~ width .initial:n = { \l_draw_default_linewidth_dim } ,
+ line ~ width .dim_set:N = \l_rpgicons_icon_linewidth_dim ,
+ line ~ width .initial:n = { \l_draw_default_linewidth_dim } ,
scale .fp_set:N = \l_rpgicons_icon_transform_scale_fp ,
scale .initial:n = { 1.0 } ,
scale ~ inner .fp_set:N = \l_rpgicons_icon_transform_scale_inner_fp ,
@@ -1684,24 +1683,24 @@
\str_replace_all:Nnn \l__rpgicons_icon_shape_name_str { ~ } { _ }
\clist_new:c { l_rpgicons_types_every_ \l__rpgicons_icon_shape_name_str _style_clist }
\keys_define:nn { rpgicons / local ~ options } {
- every ~ #1 .code:n = {
- \clist_set:cn {
+ every ~ #1 .code:n = {
+ \clist_set:cn {
l_rpgicons_types_every_ \l__rpgicons_icon_shape_name_str _style_clist
- } {##1}
- }
+ } {##1}
+ }
}
}
\clist_const:Nn \c__rpgicons_shapes_clist {
twoside , fourside , sixside , eightside , tenside , twelveside , twentyside , hundredside ,
- fudge , sixside ~ one , sixside ~ two , sixside ~ three, sixside ~ four, sixside ~ five ,
+ fudge , sixside ~ one , sixside ~ two , sixside ~ three, sixside ~ four, sixside ~ five ,
sixside ~ six , sixside ~ seven, sixside ~ eight, sixside ~ nine, fudge ~ plus, fudge ~ minus ,
- strength , dexterity , dexterity ~ alt , constitution , intelligence , wisdom , charisma ,
+ strength , dexterity , dexterity ~ alt , constitution , intelligence , wisdom , charisma ,
resilience , sanity , perception , luck , armor , proficiency ,
linear , conic , quadratic , cubic , spheric , cylindric , verbal , somatic , material , focus ,
abjuration , conjuration , divination , enchantment , evocation , illusion , necromancy , transmutation ,
acid , bludgeoning , cold , fire , force , lightning , necrotic , piercing , poison , psychic ,
- radiant , slashing , thunder , healing ,
+ radiant , slashing , thunder , healing ,
melee , ranged , magic , singlehanded , doublehanded ,
buff , blinded , charmed , deafened , exhausted , frightened , grappled , incapacitated , invisible ,
paralyzed , petrified , poisoned , prone , restrained , stunned , unconscious , hearing , seeing
@@ -1712,11 +1711,11 @@
\str_replace_all:Nnn \l__rpgicons_icon_shape_name_str { ~ } { _ }
\clist_new:c { l_rpgicons_shapes_every_ \l__rpgicons_icon_shape_name_str _style_clist }
\keys_define:nn { rpgicons / local ~ options } {
- every ~ #1 .code:n = {
- \clist_set:cn {
+ every ~ #1 .code:n = {
+ \clist_set:cn {
l_rpgicons_shapes_every_ \l__rpgicons_icon_shape_name_str _style_clist
- } {##1}
- }
+ } {##1}
+ }
}
}
@@ -1734,7 +1733,7 @@
\cs_generate_variant:Nn \keys_set_groups:nnn { nne }
\cs_generate_variant:Nn \keys_set_exclude_groups:nnn { nne }
\NewDocumentCommand \RPGIconsUseIcon { s O{} o m } {
- \bool_if:NT \l_rpgicons_icon_accessible_full_bool {
+ \bool_if:NT \l_rpgicons_icon_accessible_full_bool {
\__rpgicons_accessible_check:
\pdf_bdc:nn { Span } { /Alt ~ ( #4 ) }
}
@@ -1746,13 +1745,13 @@
\keys_set:ne { rpgicons / local ~ options } {#2}
} {
\keys_set_exclude_groups:nne { rpgicons / local ~ options } { extra } {#2}
- }
+ }
\str_set:Ne \l__rpgicons_icon_shape_name_str {#4}
\str_replace_all:Nnn \l__rpgicons_icon_shape_name_str { ~ } { _ }
\str_if_empty:NF \l__rpgicons_icon_shape_name_str {
\clist_if_exist:cT { l_rpgicons_shapes_every_ \l__rpgicons_icon_shape_name_str _style_clist } {
- \keys_set:ne { rpgicons / local ~ options } {
- \clist_use:cn { l_rpgicons_shapes_every_ \l__rpgicons_icon_shape_name_str _style_clist } { , }
+ \keys_set:ne { rpgicons / local ~ options } {
+ \clist_use:cn { l_rpgicons_shapes_every_ \l__rpgicons_icon_shape_name_str _style_clist } { , }
}
}
}
@@ -1766,7 +1765,7 @@
\draw_transform_scale:n { \l_rpgicons_icon_transform_scale_fp }
\draw_transform_rotate:n { \l_rpgicons_icon_transform_rotate_fp }
\draw_baseline:n { \l_rpgicons_icon_baseline_dim }
- \bool_if:NT \l_rpgicons_icon_accessible_basic_bool {
+ \bool_if:NT \l_rpgicons_icon_accessible_basic_bool {
\draw_scope_begin:
\bool_if:NTF \l__rpgicons_compat_mode_bool {
% l3draw rectangle fix
@@ -1778,12 +1777,12 @@
\draw_path_close:
\draw_path_use_clear:n { clip }
} {
- \draw_path_rectangle_corners:nn
+ \draw_path_rectangle_corners:nn
{ -.5cm , .5cm }
{ .5cm , .5cm }
\draw_path_use_clear:n { clip }
}
- \bool_if:NTF \l_rpgicons_icon_accessible_full_bool {
+ \bool_if:NTF \l_rpgicons_icon_accessible_full_bool {
\hcoffin_set:Nn \l__rpgicons_icon_accessible_coffin { \pdffakespace #4 \pdffakespace }
} {
\hcoffin_set:Nn \l__rpgicons_icon_accessible_coffin {#4}
@@ -1802,13 +1801,13 @@
\draw_path_close:
\draw_path_use_clear:n { clip }
} {
- \draw_path_rectangle_corners:nn
+ \draw_path_rectangle_corners:nn
{ -.5cm , -.5cm - \l_rpgicons_icon_linewidth_dim / 2 }
{ .5cm , .5cm + \l_rpgicons_icon_linewidth_dim / 2 }
\draw_path_replace_bb:
- \bool_set_false:N \l_draw_bb_update_bool
+ \bool_set_false:N \l_draw_bb_update_bool
}
- \draw_scope_begin:
+ \draw_scope_begin:
\clist_if_in:neT { ability , saving , spellschool , damage } { \l_rpgicons_icon_frame_tl } {
\use:c { rpgicons_draw_frame_ \l_rpgicons_icon_frame_tl : }
\IfBooleanTF {#1} {
@@ -1816,18 +1815,18 @@
\color_select:V { \l_rpgicons_icon_color_background_tl }
\bool_if:NT \l__rpgicons_use_opacity_bool {
\opacity_select:n { \l_rpgicons_icon_opacity_background_fp }
- }
+ }
} {
\draw_path_use_clear:n { stroke }
}
- \draw_transform_scale:n { \l_rpgicons_icon_transform_scale_inner_fp }
- }
- \clist_if_in:neTF { sixside ~ one , sixside ~ two , sixside ~ three , sixside ~ four ,
+ \draw_transform_scale:n { \l_rpgicons_icon_transform_scale_inner_fp }
+ }
+ \clist_if_in:neTF { sixside ~ one , sixside ~ two , sixside ~ three , sixside ~ four ,
sixside ~ five , sixside ~ six , sixside ~ seven , sixside ~ eight , sixside ~ nine } {#4} {
- \seq_set_split:Nee \l__rpgicons_icon_shape_name_parts_seq
+ \seq_set_split:Nee \l__rpgicons_icon_shape_name_parts_seq
{ \c_underscore_str } { \l__rpgicons_icon_shape_name_str }
- \exp_args:Ne \rpgicons_draw_shape_sixside_pips:n {
- \seq_item:Nn \l__rpgicons_icon_shape_name_parts_seq { 2 }
+ \exp_args:Ne \rpgicons_draw_shape_sixside_pips:n {
+ \seq_item:Nn \l__rpgicons_icon_shape_name_parts_seq { 2 }
}
} {
\use:c { rpgicons_draw_shape_ \l__rpgicons_icon_shape_name_str : }
@@ -1840,12 +1839,12 @@
\opacity_select:n { \l_rpgicons_icon_opacity_text_fp }
}
\hcoffin_set:Ne \l__rpgicons_icon_label_coffin {#3}
- \draw_coffin_use:Nnn \l__rpgicons_icon_label_coffin { hc } { vc }
+ \draw_coffin_use:Nnn \l__rpgicons_icon_label_coffin { hc } { vc }
\draw_scope_end:
}
\draw_scope_end:
\draw_end:
- \bool_if:NT \l_rpgicons_icon_accessible_full_bool {
+ \bool_if:NT \l_rpgicons_icon_accessible_full_bool {
\pdf_emc:
}
}
@@ -1853,7 +1852,7 @@
\str_new:N \l__rpgicons_icon_integer_str
\cs_generate_variant:Nn \str_if_eq:nnTF { ne }
\NewDocumentCommand { \RPGIconsDie } { O{normal} m O{} m } {
- \group_begin:
+ \group_begin:
\keys_set_groups:nne { rpgicons / local ~ options } { extra } {#3}
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_die_style_clist { , } }
\str_set:Ne \l__rpgicons_icon_integer_str {#4}
@@ -1875,7 +1874,7 @@
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_ability_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
\str_if_eq:neTF { negative } {#1} {
- \RPGIconsUseIcon*[frame=ability, scale=.333, #3]{#2}
+ \RPGIconsUseIcon*[frame=ability, scale=.333, #3]{#2}
} {
\RPGIconsUseIcon[scale=.333, #3]{#2}
}
@@ -1890,7 +1889,7 @@
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_saving_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
\str_if_eq:neTF { empty } {#1} {
- \RPGIconsUseIcon[frame=saving, scale=.333, #3]{}
+ \RPGIconsUseIcon[frame=saving, scale=.333, #3]{}
} {
\RPGIconsUseIcon[frame=saving, scale=.333, #3]{#2}
}
@@ -1904,7 +1903,7 @@
\keys_set_groups:nne { rpgicons / local ~ options } { extra } {#2}
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_spell_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
- \RPGIconsUseIcon[scale=.333, #2]{#1}
+ \RPGIconsUseIcon[scale=.333, #2]{#1}
\hspace { \l_rpgicons_icon_after_sep_dim }
\group_end:
}
@@ -1916,7 +1915,7 @@
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_spellschool_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
\str_if_eq:neTF { negative } {#1} {
- \RPGIconsUseIcon*[frame=spellschool, scale=.333, #3]{#2}
+ \RPGIconsUseIcon*[frame=spellschool, scale=.333, #3]{#2}
} {
\RPGIconsUseIcon[frame=spellschool, scale=.333, #3]{#2}
}
@@ -1930,7 +1929,7 @@
\keys_set_groups:nne { rpgicons / local ~ options } { extra } {#2}
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_damage_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
- \RPGIconsUseIcon[frame=damage, scale=.333, #2]{#1}
+ \RPGIconsUseIcon[frame=damage, scale=.333, #2]{#1}
\hspace { \l_rpgicons_icon_after_sep_dim }
\group_end:
}
@@ -1941,7 +1940,7 @@
\keys_set_groups:nne { rpgicons / local ~ options } { extra } {#2}
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_attack_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
- \RPGIconsUseIcon[scale=.333, #2]{#1}
+ \RPGIconsUseIcon[scale=.333, #2]{#1}
\hspace { \l_rpgicons_icon_after_sep_dim }
\group_end:
}
@@ -1952,7 +1951,7 @@
\keys_set_groups:nne { rpgicons / local ~ options } { extra } {#2}
\keys_set:ne { rpgicons / local ~ options } { \clist_use:Nn \l_rpgicons_types_every_condition_style_clist { , } }
\hspace { \l_rpgicons_icon_before_sep_dim }
- \RPGIconsUseIcon[scale=.333, #2]{#1}
+ \RPGIconsUseIcon[scale=.333, #2]{#1}
\hspace { \l_rpgicons_icon_after_sep_dim }
\group_end:
}
@@ -1962,7 +1961,7 @@
\regex_new:N \l__rpgicons_roll_syntax_die_regex
\cs_generate_variant:Nn \regex_set:Nn { Ne }
-\cs_new:Npn \rpgicons_roll_syntax_die_set:n #1 {
+\cs_new_protected:Npn \rpgicons_roll_syntax_die_set:n #1 {
\regex_set:Ne \l__rpgicons_roll_syntax_die_regex { [ \clist_use:nn {#1} { } ] }
}
@@ -1982,15 +1981,15 @@
{ 20 } { twentyside }
{ 100 } { hundredside }
{ F } { fudge }
- }
+ }
{#1}
}
\seq_new:N \l__rpgicons_roll_syntax_seq
\tl_new:N \l__rpgicons_roll_syntax_part_tl
-\regex_new:N \l__rpgicons_roll_syntax_split_regex
-\regex_new:N \l__rpgicons_roll_syntax_plusminus_regex
-\regex_new:N \l__rpgicons_roll_syntax_times_regex
+\regex_new:N \l__rpgicons_roll_syntax_split_regex
+\regex_new:N \l__rpgicons_roll_syntax_plusminus_regex
+\regex_new:N \l__rpgicons_roll_syntax_times_regex
\bool_if:NTF \l__rpgicons_unicode_mode_bool {
\regex_set:Nn \l__rpgicons_roll_syntax_split_regex { \s*([\+\-\x{2212}x\*\x{00D7}])\s* }
\regex_set:Nn \l__rpgicons_roll_syntax_plusminus_regex { \A([\+\-\x{2212}])\Z }
@@ -2000,25 +1999,25 @@
\regex_set:Nn \l__rpgicons_roll_syntax_plusminus_regex { \A([\+\-])\Z }
\regex_set:Nn \l__rpgicons_roll_syntax_times_regex { \A([x\*\x{00D7}])\Z }
}
-\regex_new:N \l__rpgicons_roll_syntax_dice_regex
-\cs_new:Npn \rpgicons_roll_syntax_parse:n #1 {
+\regex_new:N \l__rpgicons_roll_syntax_dice_regex
+\cs_new_protected:Npn \rpgicons_roll_syntax_parse:n #1 {
\regex_set:Nn \l__rpgicons_roll_syntax_dice_regex { \A(\d*)\ur{l__rpgicons_roll_syntax_die_regex}([F\d]+)\Z }
\regex_split:NnN \l__rpgicons_roll_syntax_split_regex {#1} \l__rpgicons_roll_syntax_seq
- \seq_map_inline:Nn \l__rpgicons_roll_syntax_seq {
+ \seq_map_inline:Nn \l__rpgicons_roll_syntax_seq {
\tl_set:Ne \l__rpgicons_roll_syntax_part_tl {##1}
\regex_replace_case_once:nNTF {
{ \l__rpgicons_roll_syntax_plusminus_regex } { \c{,} $\1$ \c{,} }
{ \l__rpgicons_roll_syntax_times_regex } { \c{,} $\c{times}$ \c{,} }
- { \l__rpgicons_roll_syntax_dice_regex }
+ { \l__rpgicons_roll_syntax_dice_regex }
{ \c{ RPGIconsDie } { \c{ rpgicons_roll_syntax_convert:n } { \2 } } { \1 } }
- } \l__rpgicons_roll_syntax_part_tl
- { \tl_use:N \l__rpgicons_roll_syntax_part_tl }
+ } \l__rpgicons_roll_syntax_part_tl
{ \tl_use:N \l__rpgicons_roll_syntax_part_tl }
+ { \tl_use:N \l__rpgicons_roll_syntax_part_tl }
}
}
\NewDocumentCommand{\RPGIconsRoll}{ m }{
- \rpgicons_roll_syntax_parse:n {#1}
+ \rpgicons_roll_syntax_parse:n {#1}
}
\cs_if_exist:NF \roll { \cs_new_eq:NN \roll \RPGIconsRoll }
Modified: trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-pgf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-pgf.sty 2025-01-27 20:49:57 UTC (rev 73608)
+++ trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons-pgf.sty 2025-01-27 20:50:07 UTC (rev 73609)
@@ -1,17 +1,17 @@
-% File: rpgicons-pgf.sty
-% Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
-%
+% File: rpgicons-pgf.sty
+% Copyright 2024-2025 Jasper Habicht (mail(at)jasperhabicht.de).
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
-%
+%
% This file is part of the `rpgicons' package (The Work in LPPL)
% and all files in that bundle must be distributed together.
-%
+%
% This work has the LPPL maintenance status `maintained'.
-%
+%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{rpgicons-pgf}[2024-08-08 RPG Icons Package (PGF Variant) (1.8.4)]
+\ProvidesPackage{rpgicons-pgf}[2025-01-22 RPG Icons Package (PGF Variant) (1.8.6)]
% provide pics option
\newif\ifrpgicons at pics\rpgicons at picsfalse
@@ -25,14 +25,14 @@
\def\rpgicons at allshapes{%
twoside, fourside, sixside, eightside, tenside, twelveside, twentyside, hundredside,
- fudge, sixside one, sixside two, sixside three, sixside four, sixside five,
+ fudge, sixside one, sixside two, sixside three, sixside four, sixside five,
sixside six, sixside seven, sixside eight, sixside nine, fudge plus, fudge minus,
- strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
+ strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
resilience, sanity, perception, luck, armor, proficiency,
linear, conic, quadratic, cubic, spheric, cylindric, verbal, somatic, material, focus,
abjuration, conjuration, divination, enchantment, evocation, illusion, necromancy, transmutation,
acid, bludgeoning, cold, fire, force, lightning, necrotic, piercing, poison, psychic,
- radiant, slashing, thunder, healing,
+ radiant, slashing, thunder, healing,
melee, ranged, magic, singlehanded, doublehanded,
buff, blinded, charmed, deafened, exhausted, frightened, grappled, incapacitated, invisible,
paralyzed, petrified, poisoned, prone, restrained, stunned, unconscious, hearing, seeing%
@@ -62,7 +62,7 @@
line join=round
}
},
- %
+ %
rpg icons/every die/.style={},
rpg icons/every ability/.style={},
rpg icons/every saving/.style={},
@@ -166,7 +166,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.5cm}}
\pgfpathlineto{\pgfpoint{.475cm}{.1cm}}
\pgfpathlineto{\pgfpoint{.475cm}{-.1cm}}
@@ -231,7 +231,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.5cm}}
\pgfpathlineto{\pgfpoint{.454cm}{.262cm}}
\pgfpathlineto{\pgfpoint{.454cm}{-.262cm}}
@@ -264,7 +264,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathcircle{\pgfpointorigin}{.425cm}
\pgfpathmoveto{\pgfpoint{.425cm}{0cm}}
\pgfpatharc{180}{50}{-.425cm and -.2cm}
@@ -286,7 +286,7 @@
\foreach \x/\y in {
0cm/0cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -302,9 +302,9 @@
\pgfpathrectanglecorners{\pgfpoint{.4cm}{.4cm}}{\pgfpoint{-.4cm}{-.4cm}}
\pgfusepath{draw} % draw rectangle
\foreach \x/\y in {
- .2cm/-.2cm, -.2cm/.2cm
+ .2cm/-.2cm, -.2cm/.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -320,9 +320,9 @@
\pgfpathrectanglecorners{\pgfpoint{.4cm}{.4cm}}{\pgfpoint{-.4cm}{-.4cm}}
\pgfusepath{draw} % draw rectangle
\foreach \x/\y in {
- .2cm/-.2cm, 0cm/0cm, -.2cm/.2cm
+ .2cm/-.2cm, 0cm/0cm, -.2cm/.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -341,7 +341,7 @@
-.2cm/.2cm, .2cm/.2cm,
-.2cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -361,7 +361,7 @@
0cm/0cm,
-.2cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -381,7 +381,7 @@
-.2cm/0cm, .2cm/0cm,
-.2cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -401,7 +401,7 @@
-.2cm/0cm, 0cm/0cm, .2cm/0cm,
-.2cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -421,7 +421,7 @@
-.2cm/0cm, .2cm/0cm,
-.2cm/-.2cm, 0cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -441,7 +441,7 @@
-.2cm/0cm, 0cm/0cm, .2cm/0cm,
-.2cm/-.2cm, 0cm/-.2cm, .2cm/-.2cm
} {
- \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
+ \pgfpathcircle{\pgfpoint{\x}{\y}}{2pt}
}
\pgfusepath{fill}
}
@@ -462,7 +462,7 @@
\pgfpathlineto{\pgfpoint{0cm}{-.05cm}}
\pgfpathmoveto{\pgfpoint{-.15cm}{-.2cm}}
\pgfpathlineto{\pgfpoint{.15cm}{-.2cm}}
- \pgfusepath{draw}
+ \pgfusepath{draw}
}
}
@@ -479,7 +479,7 @@
\pgfpathlineto{\pgfpoint{0cm}{-.15cm}}
\pgfpathmoveto{\pgfpoint{-.15cm}{0cm}}
\pgfpathlineto{\pgfpoint{.15cm}{0cm}}
- \pgfusepath{draw}
+ \pgfusepath{draw}
}
}
@@ -494,7 +494,7 @@
\pgfusepath{draw} % draw rectangle
\pgfpathmoveto{\pgfpoint{-.15cm}{0cm}}
\pgfpathlineto{\pgfpoint{.15cm}{0cm}}
- \pgfusepath{draw}
+ \pgfusepath{draw}
}
}
@@ -514,7 +514,7 @@
\hspace{\rpgicons at beforesep}%
\tikz[rpg icons, rpg icons/every die, rpg icons/every #2,
baseline=\rpgicons at baseline, fgnrm/.style={scale=.333}, fglrg/.style={scale=.675}, #3] {
- \node[#2, \rpgicons at diceiconfg, font={\footnotesize}] (0cm,0cm)
+ \node[#2, \rpgicons at diceiconfg, font={\footnotesize}] (0cm,0cm)
{\ifx\rpgicons at diceiconnrmlrg\rpgicons at diceiconlrg\textbf{#4}\fi};
\path[draw=none, \rpgicons at diceiconfg] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
@@ -530,7 +530,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.075cm}}{\pgfpointpolar{90}{.425cm}}}
\pgfpatharc{90}{60}{.425cm}
\pgfpatharc{200}{-40}{.1cm}
@@ -563,7 +563,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.075cm}}{\pgfpointpolar{90}{.425cm}}}
\pgfpatharc{90}{65}{.425cm}
\pgfpatharc{200}{90}{.1cm and .075cm}
@@ -577,7 +577,7 @@
\pgfpatharc{90}{220}{.1cm and .075cm}
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.075cm}}{\pgfpointpolar{135}{.425cm}}}
\pgfpatharc{135}{200}{.425cm and .35cm}
- \pgfpatharc{70}{20}{.175cm}
+ \pgfpatharc{70}{20}{.175cm}
\pgfpathmoveto{\pgfpoint{-.075cm}{-.175cm}}
\pgfpatharc{180}{360}{.075cm and .05cm}
\pgfpathmoveto{\pgfpoint{0cm}{-.225cm}}
@@ -606,7 +606,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.15cm}}{\pgfpointpolar{90}{.425cm}}}
\pgfpatharc{90}{75}{.425cm}
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.15cm}}{\pgfpointpolar{90}{.425cm}}}
@@ -622,9 +622,9 @@
\pgfpathlineto{\pgfpointadd{\pgfpoint{0cm}{-.1cm}}{\pgfpointpolar{150}{.425cm}}}
\pgfpatharc{150}{225}{.425cm and .35cm}
\pgfpathmoveto{\pgfpoint{.075cm}{-.075cm}}
- \pgfpatharc{170}{90}{.15cm and .05cm}
+ \pgfpatharc{170}{90}{.15cm and .05cm}
\pgfpathmoveto{\pgfpoint{-.075cm}{-.075cm}}
- \pgfpatharc{10}{90}{.15cm and .05cm}
+ \pgfpatharc{10}{90}{.15cm and .05cm}
\pgfpathmoveto{\pgfpoint{0cm}{-.275cm}}
\pgfpatharc{0}{90}{.075cm and .05cm}
\pgfpathmoveto{\pgfpoint{0cm}{-.275cm}}
@@ -647,7 +647,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.25cm}}
\pgfpathlineto{\pgfpoint{.125cm}{.25cm}}
\pgfpatharc{-90}{-30}{.325cm}
@@ -688,7 +688,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{-.2cm}}{\pgfpointpolar{90}{.425cm}}}
\pgfpatharc{90}{60}{.25cm}
\pgfpathlineto{\pgfpointadd{\pgfpoint{0cm}{-.1cm}}{\pgfpointpolar{60}{.6cm}}}
@@ -719,7 +719,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.175cm}}
\pgfpatharc{60}{90}{.425cm}
\pgfpatharc{270}{240}{.425cm}
@@ -745,7 +745,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.15cm}}
\pgfpatharc{270}{190}{.15cm and .1cm}
\pgfpatharc{10}{90}{.175cm and .225cm}
@@ -862,7 +862,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointadd{\pgfpoint{0cm}{.35cm}}{\pgfpointpolar{150}{.125cm}}}
\pgfpatharc{150}{390}{.125cm}
\pgfpathmoveto{\pgfpoint{-.3cm}{.425cm}}
@@ -901,7 +901,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{.1cm}{.15cm}}
\pgfpathlineto{\pgfpoint{.1cm}{-.05cm}}
\pgfpatharc{-75}{-15}{.425cm}
@@ -930,7 +930,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.25cm}{-.425cm}}
\pgfpathlineto{\pgfpoint{.25cm}{-.425cm}}
\pgfpathlineto{\pgfpoint{.2cm}{-.225cm}}
@@ -965,7 +965,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpointpolar{90}{.35cm}}
\pgfpathlineto{\pgfpointpolar{126}{.15cm}}
\pgfpathlineto{\pgfpointpolar{162}{.35cm}}
@@ -1021,7 +1021,7 @@
\hspace{\rpgicons at beforesep}%
\tikz[rpg icons, rpg icons/every saving, \rpgicons at savingstyle,
baseline=\rpgicons at baseline, #3] {
- \path[draw, scale=.333] (-.45cm,.45cm) -- (.45cm,.45cm) -- (.45cm,-.05cm)
+ \path[draw, scale=.333] (-.45cm,.45cm) -- (.45cm,.45cm) -- (.45cm,-.05cm)
arc[start angle=360, end angle=180, radius=.45cm] -- cycle;
\ifx\rpgicons at abilityiconnrmemp\rpgicons at abilityiconemp\else%
\node[#2, draw,scale=.225] (0cm,0cm) {};
@@ -1040,7 +1040,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.4cm}{0cm}}
\pgfpathlineto{\pgfpoint{.4cm}{0cm}}
\pgfusepath{draw} % draw shape
@@ -1067,7 +1067,7 @@
\pgfmathparse{\rx*cos(\angle)}
\let\coordyb\pgfmathresult
\pgfmathparse{\z-\ry*sin(\angle)}
- \let\coordx\pgfmathresult
+ \let\coordx\pgfmathresult
\pgfpathmoveto{\pgfpoint{\coordx-.425cm}{\coordya}}
\pgfpathlineto{\pgfpoint{-.425cm}{0cm}}
\pgfpathlineto{\pgfpoint{\coordx-.425cm}{\coordyb}}
@@ -1121,7 +1121,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathcircle{\pgfpointorigin}{.425cm}
\pgfpathmoveto{\pgfpoint{.425cm}{0cm}}
\pgfpatharc{180}{50}{-.425cm and -.2cm}
@@ -1157,7 +1157,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.35cm}{0cm}}
\pgfpatharc{180}{-115}{.35cm}
\pgfpathlineto{\pgfpoint{-.4cm}{-.4cm}}
@@ -1172,7 +1172,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.425cm}{0cm}}
\pgfpatharc{0}{270}{-.425cm and -.2cm}
\pgfpathmoveto{\pgfpoint{0cm}{-.425cm}}
@@ -1187,7 +1187,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.4cm}{.2cm}}
\pgfpathlineto{\pgfpoint{-.4cm}{-.2cm}}
\pgfpathlineto{\pgfpoint{0cm}{-.4cm}}
@@ -1227,7 +1227,7 @@
\hspace{\rpgicons at beforesep}%
\tikz[rpg icons, rpg icons/every spell, rpg icons/every #1,
baseline=\rpgicons at baseline, #2] {
- \node[#1, draw,scale=.333] (0cm,0cm) {};
+ \node[#1, draw,scale=.333] (0cm,0cm) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
\hspace{\rpgicons at aftersep}%
@@ -1418,9 +1418,9 @@
\tikz[rpg icons, rpg icons/every spellschool, rpg icons/every #2,
baseline=\rpgicons at baseline, fgpos/.style={draw=rpgicons at bg, line width=.6pt}, fgneg/.style={draw},
bgpos/.style={fill}, bgneg/.style={draw}, #3] {
- \path[scale=.333, \rpgicons at spellschooliconbg] (-.475cm,.35cm)
+ \path[scale=.333, \rpgicons at spellschooliconbg] (-.475cm,.35cm)
-- (-.35cm,.475cm) -- (.35cm,.475cm) -- (.475cm,.35cm) -- (.425cm,-.375cm) -- (0cm,-.475cm) -- (-.425cm,-.375cm) -- cycle;
- \node[#2, scale=.225, \rpgicons at spellschooliconfg] (0cm,0cm) {};
+ \node[#2, scale=.225, \rpgicons at spellschooliconfg] (0cm,0cm) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425,.425) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
\hspace{\rpgicons at aftersep}%
@@ -1450,7 +1450,7 @@
}
}
-% bludgeoning
+% bludgeoning
\pgfdeclareshape{bludgeoning}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1518,7 +1518,7 @@
\pgfpatharc{-60}{0}{.45cm and .375cm}
\pgfpathcurveto{\pgfpoint{.375cm}{.15cm}}{\pgfpoint{.15cm}{.375cm}}{\pgfpoint{-.05cm}{.425cm}}
\pgfpathmoveto{\pgfpoint{-.15cm}{-.425cm}}
- \pgfpatharc{240}{135}{.45cm and .35cm}
+ \pgfpatharc{240}{135}{.45cm and .35cm}
\pgfpathcurveto{\pgfpoint{-.15cm}{.2cm}}{\pgfpoint{0cm}{.25cm}}{\pgfpoint{-.05cm}{.425cm}}
\pgfpathmoveto{\pgfpoint{.075cm}{-.3cm}}
\pgfpathcurveto{\pgfpoint{.2cm}{-.2cm}}{\pgfpoint{.2cm}{-.05cm}}{\pgfpoint{.05cm}{.1cm}}
@@ -1540,7 +1540,7 @@
\pgfpathlineto{\pgfpointpolar{120}{.15cm}}
\pgfpathlineto{\pgfpointpolar{150}{.425cm}}
\pgfpathlineto{\pgfpointpolar{180}{.15cm}}
- \pgfpathlineto{\pgfpointpolar{210}{.425cm}}
+ \pgfpathlineto{\pgfpointpolar{210}{.425cm}}
\pgfpathlineto{\pgfpointpolar{240}{.15cm}}
\pgfpathlineto{\pgfpointpolar{270}{.425cm}}
\pgfpathlineto{\pgfpointpolar{300}{.15cm}}
@@ -1677,7 +1677,7 @@
}
}
-% slashing
+% slashing
\pgfdeclareshape{slashing}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1741,9 +1741,9 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{0cm}{.125cm}}
- \pgfpatharc{0}{225}{.2cm}
+ \pgfpatharc{0}{225}{.2cm}
\pgfpathlineto{\pgfpoint{0cm}{-.375cm}}
\pgfpathmoveto{\pgfpoint{0cm}{.125cm}}
\pgfpatharc{180}{-45}{.2cm}
@@ -1757,7 +1757,7 @@
\tikz[rpg icons, rpg icons/every damage, rpg icons/every #1,
baseline=\rpgicons at baseline, #2] {
\path[draw, scale=.333] (0cm,0cm) circle[radius=.5cm];
- \node[#1, draw, scale=.225] (0cm,0cm) {};
+ \node[#1, draw, scale=.225] (0cm,0cm) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
\hspace{\rpgicons at aftersep}%
@@ -1766,7 +1766,7 @@
% ATTACKS
-% melee
+% melee
\pgfdeclareshape{melee}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1794,7 +1794,7 @@
}
}
-% ranged
+% ranged
\pgfdeclareshape{ranged}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1827,7 +1827,7 @@
\anchor{text} % this is used to center the text in the node
{\pgfpoint{-.5\wd\pgfnodeparttextbox}{-.5\ht\pgfnodeparttextbox}}
- \foregroundpath{
+ \foregroundpath{
\pgfpathmoveto{\pgfpoint{-.225cm}{-.425cm}}
\pgflineto{\pgfpoint{-.425cm}{-.225cm}}
\pgflineto{\pgfpoint{-.3cm}{-.1cm}}
@@ -1853,7 +1853,7 @@
}
}
-% single-handed
+% single-handed
\pgfdeclareshape{singlehanded}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1876,7 +1876,7 @@
}
}
-% double-handed
+% double-handed
\pgfdeclareshape{doublehanded}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1915,7 +1915,7 @@
\hspace{\rpgicons at beforesep}%
\tikz[rpg icons, rpg icons/every attack, rpg icons/every #1,
baseline=\rpgicons at baseline, #2] {
- \node[#1, draw, scale=.333] (0cm,0cm) {};
+ \node[#1, draw, scale=.333] (0cm,0cm) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
\hspace{\rpgicons at aftersep}%
@@ -1924,7 +1924,7 @@
% CONDITIONS
-% buff
+% buff
\pgfdeclareshape{buff}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1977,7 +1977,7 @@
}
}
-% charmed
+% charmed
\pgfdeclareshape{charmed}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -1989,13 +1989,13 @@
\pgfpatharc{180}{360}{.175cm}
\pgfpathclose
\pgfpathmoveto{\pgfpoint{-.175cm}{.15cm}}
- \pgfpatharc{0}{225}{.0625cm}
+ \pgfpatharc{0}{225}{.0625cm}
\pgfpathlineto{\pgfpoint{-.175cm}{0cm}}
\pgfpathmoveto{\pgfpoint{-.175cm}{.15cm}}
\pgfpatharc{180}{-45}{.0625cm}
\pgfpathlineto{\pgfpoint{-.175cm}{0cm}}
\pgfpathmoveto{\pgfpoint{.175cm}{.15cm}}
- \pgfpatharc{0}{225}{.0625cm}
+ \pgfpatharc{0}{225}{.0625cm}
\pgfpathlineto{\pgfpoint{.175cm}{0cm}}
\pgfpathmoveto{\pgfpoint{.175cm}{.15cm}}
\pgfpatharc{180}{-45}{.0625cm}
@@ -2029,7 +2029,7 @@
}
}
-% exhausted
+% exhausted
\pgfdeclareshape{exhausted}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2048,7 +2048,7 @@
}
}
-% frightened
+% frightened
\pgfdeclareshape{frightened}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2065,7 +2065,7 @@
}
}
-% grappled
+% grappled
\pgfdeclareshape{grappled}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2110,7 +2110,7 @@
}
}
-% incapacitated
+% incapacitated
\pgfdeclareshape{incapacitated}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2140,7 +2140,7 @@
}
}
-% invisible
+% invisible
\pgfdeclareshape{invisible}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2167,7 +2167,7 @@
}
}
-% paralyzed
+% paralyzed
\pgfdeclareshape{paralyzed}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2190,7 +2190,7 @@
}
}
-% petrified
+% petrified
\pgfdeclareshape{petrified}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2228,7 +2228,7 @@
}
}
-% poisoned
+% poisoned
\pgfdeclareshape{poisoned}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2250,8 +2250,8 @@
\pgfusepath{draw} % draw shape
}
}
-
-% prone
+
+% prone
\pgfdeclareshape{prone}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2263,7 +2263,7 @@
\pgfpathlineto{\pgfpoint{-.15cm}{0cm}}
\pgfpatharc{90}{-90}{.125cm}
\pgfpathlineto{\pgfpoint{-.425cm}{-.25cm}}
-
+
\pgfpathmoveto{\pgfpoint{.225cm}{.15cm}}
\pgfpatharc{270}{360}{.1cm}
\pgfpatharc{180}{270}{.1cm}
@@ -2278,7 +2278,7 @@
}
}
-% restrained
+% restrained
\pgfdeclareshape{restrained}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2319,7 +2319,7 @@
}
}
-% stunned
+% stunned
\pgfdeclareshape{stunned}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2354,7 +2354,7 @@
}
}
-% unconscious
+% unconscious
\pgfdeclareshape{unconscious}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2379,7 +2379,7 @@
}
}
-% hearing
+% hearing
\pgfdeclareshape{hearing}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2400,7 +2400,7 @@
}
}
-% seeing
+% seeing
\pgfdeclareshape{seeing}{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to center the text in the node
@@ -2421,7 +2421,7 @@
\hspace{\rpgicons at beforesep}%
\tikz[rpg icons, rpg icons/every condition, rpg icons/every #1,
baseline=\rpgicons at baseline, #2] {
- \node[#1, draw, scale=.333] (0cm,0cm) {};
+ \node[#1, draw, scale=.333] (0cm,0cm) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
}%
\hspace{\rpgicons at aftersep}%
@@ -2436,7 +2436,7 @@
\tikzset{
rpg icons #1/.pic={
\begin{scope}[every node/.append style={#1}, rpg icons/every #1]
- \node[draw, scale=.333] (0cm,0cm) (-node) {};
+ \node[draw, scale=.333] (0cm,0cm) (-node) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
\end{scope}
},
@@ -2447,7 +2447,7 @@
rpg icons #1 ability/.pic={
\begin{scope}[every node/.append style={#1}, rpg icons/every ability, rpg icons/every #1]
\path[scale=.333, pic actions] (0cm,0cm) circle[radius=.45cm];
- \node[draw, scale=.225] (0cm,0cm) (-node) {};
+ \node[draw, scale=.225] (0cm,0cm) (-node) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
\end{scope}
}
@@ -2457,9 +2457,9 @@
\tikzset{
rpg icons #1 saving/.pic={
\begin{scope}[every node/.append style={#1}, rpg icons/every saving, rpg icons/every #1]
- \path[draw, scale=.333, pic actions] (-.45cm,.45cm) -- (.45cm,.45cm) -- (.45cm,-.05cm)
+ \path[draw, scale=.333, pic actions] (-.45cm,.45cm) -- (.45cm,.45cm) -- (.45cm,-.05cm)
arc[start angle=360, end angle=180, radius=.45cm] -- cycle;
- \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
+ \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
\end{scope}
}
@@ -2469,9 +2469,9 @@
\tikzset{
rpg icons #1 spellschool/.pic={
\begin{scope}[every node/.append style={#1}, rpg icons/every spellschool, rpg icons/every #1]
- \path[draw, scale=.333, pic actions] (-.475cm,.35cm)
+ \path[draw, scale=.333, pic actions] (-.475cm,.35cm)
-- (-.35cm,.475cm) -- (.35cm,.475cm) -- (.475cm,.35cm) -- (.425cm,-.375cm) -- (0cm,-.475cm) -- (-.425cm,-.375cm) -- cycle;
- \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
+ \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
\end{scope}
}
@@ -2482,7 +2482,7 @@
rpg icons #1 damage/.pic={
\begin{scope}[every node/.append style={#1}, rpg icons/every damage, rpg icons/every #1]
\path[draw, scale=.333, pic actions] (0cm,0cm) circle[radius=.5cm];
- \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
+ \node[#1, draw, scale=.225] (0cm,0cm) (-node) {};
\path[draw=none, scale=.333] ([yshift=-1pt].425cm,.425cm) rectangle ([yshift=1pt]-.425cm,-.425cm);
\end{scope}
}
@@ -2492,11 +2492,11 @@
\rpgicons at allshapes%
},
rpg icons/create pic from ability shape/.list={%
- strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
+ strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
resilience, sanity, perception, luck, armor, proficiency%
},
rpg icons/create pic from saving shape/.list={%
- strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
+ strength, dexterity, dexterity alt, constitution, intelligence, wisdom, charisma,
resilience, sanity, perception, luck, armor, proficiency%
},
rpg icons/create pic from spellschool shape/.list={%
@@ -2526,7 +2526,7 @@
\regex_new:N \l__rpgicons_roll_syntax_die_regex
\cs_generate_variant:Nn \regex_set:Nn { Ne }
- \cs_new:Npn \rpgicons_roll_syntax_die_set:n #1 {
+ \cs_new_protected:Npn \rpgicons_roll_syntax_die_set:n #1 {
\regex_set:Ne \l__rpgicons_roll_syntax_die_regex { [ \clist_use:nn {#1} { } ] }
}
@@ -2541,15 +2541,15 @@
{ 20 } { twentyside }
{ 100 } { hundredside }
{ F } { fudge }
- }
+ }
{#1}
}
\seq_new:N \l__rpgicons_roll_syntax_seq
\tl_new:N \l__rpgicons_roll_syntax_part_tl
- \regex_new:N \l__rpgicons_roll_syntax_split_regex
- \regex_new:N \l__rpgicons_roll_syntax_plusminus_regex
- \regex_new:N \l__rpgicons_roll_syntax_times_regex
+ \regex_new:N \l__rpgicons_roll_syntax_split_regex
+ \regex_new:N \l__rpgicons_roll_syntax_plusminus_regex
+ \regex_new:N \l__rpgicons_roll_syntax_times_regex
\bool_if:NTF \l__rpgicons_unicode_mode_bool {
\regex_set:Nn \l__rpgicons_roll_syntax_split_regex { \s*([\+\-\x{2212}x\*\x{00D7}])\s* }
\regex_set:Nn \l__rpgicons_roll_syntax_plusminus_regex { \A([\+\-\x{2212}])\Z }
@@ -2559,20 +2559,20 @@
\regex_set:Nn \l__rpgicons_roll_syntax_plusminus_regex { \A([\+\-])\Z }
\regex_set:Nn \l__rpgicons_roll_syntax_times_regex { \A([x\*\x{00D7}])\Z }
}
- \regex_new:N \l__rpgicons_roll_syntax_dice_regex
- \cs_new:Npn \rpgicons_roll_syntax_parse:n #1 {
+ \regex_new:N \l__rpgicons_roll_syntax_dice_regex
+ \cs_new_protected:Npn \rpgicons_roll_syntax_parse:n #1 {
\regex_set:Nn \l__rpgicons_roll_syntax_dice_regex { \A(\d*)\ur{l__rpgicons_roll_syntax_die_regex}([F\d]+)\Z }
\regex_split:NnN \l__rpgicons_roll_syntax_split_regex {#1} \l__rpgicons_roll_syntax_seq
- \seq_map_inline:Nn \l__rpgicons_roll_syntax_seq {
+ \seq_map_inline:Nn \l__rpgicons_roll_syntax_seq {
\tl_set:Ne \l__rpgicons_roll_syntax_part_tl {##1}
\regex_replace_case_once:nNTF {
{ \l__rpgicons_roll_syntax_plusminus_regex } { \c{,} $\1$ \c{,} }
{ \l__rpgicons_roll_syntax_times_regex } { \c{,} $\c{times}$ \c{,} }
- { \l__rpgicons_roll_syntax_dice_regex }
+ { \l__rpgicons_roll_syntax_dice_regex }
{ \c{ rpgiconsdie } { \c{ rpgicons_roll_syntax_convert:n } { \2 } } { \1 } }
- } \l__rpgicons_roll_syntax_part_tl
- { \tl_use:N \l__rpgicons_roll_syntax_part_tl }
+ } \l__rpgicons_roll_syntax_part_tl
{ \tl_use:N \l__rpgicons_roll_syntax_part_tl }
+ { \tl_use:N \l__rpgicons_roll_syntax_part_tl }
}
}
@@ -2586,7 +2586,7 @@
}
\NewDocumentCommand{\rpgiconsroll}{ m }{
- \rpgicons_roll_syntax_parse:n {#1}
+ \rpgicons_roll_syntax_parse:n {#1}
}
\ExplSyntaxOff
Modified: trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons.sty 2025-01-27 20:49:57 UTC (rev 73608)
+++ trunk/Master/texmf-dist/tex/latex/rpgicons/rpgicons.sty 2025-01-27 20:50:07 UTC (rev 73609)
@@ -1,21 +1,21 @@
-% File: rpgicons.sty
-% Copyright 2024 Jasper Habicht (mail(at)jasperhabicht.de).
-%
+% File: rpgicons.sty
+% Copyright 2024-2025 Jasper Habicht (mail(at)jasperhabicht.de).
+%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.
-%
+%
% This file is part of the `rpgicons' package (The Work in LPPL)
% and all files in that bundle must be distributed together.
-%
+%
% This work has the LPPL maintenance status `maintained'.
-%
-\ProvidesExplPackage {rpgicons} {2024-08-08} {1.8.4}
+%
+\ProvidesExplPackage {rpgicons} {2025-01-22} {1.8.6}
{RPG Icons Package}
\bool_new:N \l__rpgicons_use_legacy_variant_bool
\clist_new:N \l__rpgicons_forwarded_options_clist
-\keys_define:nn { rpgicons / select ~ variant } {
+\keys_define:nn { rpgicons / select ~ variant } {
l3 .bool_set:N = \l__rpgicons_use_legacy_variant_bool ,
l3 .default:n = { false } ,
pgf .bool_set:N = \l__rpgicons_use_legacy_variant_bool ,
@@ -22,7 +22,7 @@
pgf .default:n = { true } ,
pics .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { pics } } ,
compat .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { compat } } ,
- opacity .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { opacity } }
+ opacity .code:n = { \clist_put_right:Nn \l__rpgicons_forwarded_options_clist { opacity } }
}
\ProcessKeyOptions [ rpgicons / select ~ variant ]
More information about the tex-live-commits
mailing list.