From 0465d36acc48f9ecd0604ed23fce8b2ba2e4343b Mon Sep 17 00:00:00 2001
From: dakkar <dakkar@thenautilus.net>
Date: Sun, 23 Oct 2011 13:06:04 +0100
Subject: spostiamo roba

---
 inventario/inventario.cmd.tex | 161 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 161 insertions(+)
 create mode 100644 inventario/inventario.cmd.tex

(limited to 'inventario/inventario.cmd.tex')

diff --git a/inventario/inventario.cmd.tex b/inventario/inventario.cmd.tex
new file mode 100644
index 0000000..fbc9efa
--- /dev/null
+++ b/inventario/inventario.cmd.tex
@@ -0,0 +1,161 @@
+\documentclass[a4paper,10pt]{article}
+\usepackage[empty,cm]{fullpage}
+\usepackage[latin1]{inputenc}
+\usepackage[italian]{babel}
+\usepackage[T1]{fontenc}
+\usepackage{pslatex}
+\usepackage{tikz}
+\usetikzlibrary{backgrounds}
+\usetikzlibrary{calc}
+\usepackage{pgffor}
+
+%%%% fullpage
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\footskip}{0pt}
+\setlength{\textwidth}{\paperwidth}
+\setlength{\oddsidemargin}{-2.68cm}
+\setlength{\evensidemargin}{\oddsidemargin}
+\setlength{\textheight}{\paperheight}
+\setlength{\topmargin}{0pt}
+\addtolength{\topmargin}{-2.68cm}
+\addtolength{\topmargin}{0.45cm} % per centrare le etichette
+%%%%
+\setlength{\parindent}{0pt}
+
+\pgfdeclareimage[width=1mm]{empty}{empty}
+
+\newcommand{\DDitemhoriz}[7]{%
+\begin{scope}
+
+\node [rectangle,minimum height=4.8cm,minimum width=7cm,outer sep=0,use as bounding box] (card) {};
+
+\node [anchor=north west,rotate=90] (itemtype) at (node cs:name=card,anchor=south west)
+      {#2};
+
+\node [anchor=north east,rotate=90] (itemowner) at (node cs:name=card,anchor=north west)
+      {#3};
+
+\node [anchor=south west,rotate=90] (itemweight) at (node cs:name=card,anchor=south east)
+      {#4};
+
+\node [anchor=south east,rotate=90] (itemprice) at (node cs:name=card,anchor=north east)
+      {#5};
+
+\node [anchor=north,inner sep=1mm,text width=4.6cm,rotate=90,text centered]
+      (itemname)
+      at ($0.5*(node cs:name=itemtype,anchor=south west)+0.5*(node cs:name=itemowner,anchor=south east)$)
+      {#6};
+
+\node [anchor=north,rotate=90] (itemimage)
+      at (node cs:name=itemname,anchor=south)
+      {\pgfuseimage{#1}};
+
+\node [anchor=south,inner sep=1mm,text width=4.6cm,rotate=90]
+      (itemdesc)
+      at ($0.5*(node cs:name=itemweight,anchor=north west)+0.5*(node cs:name=itemprice,anchor=north east)$)
+      {#7};
+
+\end{scope}%
+}
+
+\newcommand{\DDitem}[7]{\DDitemhoriz{#1}{#2}{#3}{#4}{#5}{#6}{#7}}
+
+% proprietari
+\newcommand{\group}{Gruppo}
+
+% dimensioni
+\newcommand{\itemsize}[1]{#1}
+\newcommand{\tinyitem}{\itemsize{Tiny}}
+\newcommand{\smallitem}{\itemsize{Small}}
+\newcommand{\mediumitem}{\itemsize{Medium}}
+\newcommand{\largeitem}{\itemsize{Large}}
+\newcommand{\hugeitem}{\itemsize{Huge}}
+
+% prezzi
+\newcommand{\mo}[1]{#1 MO}
+\newcommand{\ma}[1]{#1 MA}
+\newcommand{\mr}[1]{#1 MR}
+
+% pesi
+\newcommand{\lb}[1]{#1lb}
+
+% tipi
+\newcommand{\itemtype}[1]{#1}
+\newcommand{\typedisc}[1]{\tikz[baseline] \draw[#1] (0,0) circle (0.2cm);}
+\newcommand{\itemweapon}[1]{\typedisc{draw=red,fill=red} \itemtype{#1 Weapon}}
+\newcommand{\itemweapondef}{\itemweapon{}}
+\newcommand{\meleeweapon}{\itemweapon{Melee}}
+\newcommand{\rangedweapon}{\itemweapon{Ranged}}
+\newcommand{\ammo}{\itemtype{Ammunition}}
+
+\newcommand{\itemarmor}[1]{\typedisc{draw=brown,fill=brown} \itemtype{#1 Armor}}
+\newcommand{\itemarmordef}{\itemarmor{}}
+\newcommand{\itemshield}[1]{\typedisc{draw=brown,fill=brown} \itemtype{#1 Shield}}
+\newcommand{\itemshielddef}{\itemshield{}}
+\newcommand{\largeshield}{\itemshield{Large}}
+\newcommand{\smallshield}{\itemshield{Small}}
+\newcommand{\lightarmor}{\itemarmor{Light}}
+\newcommand{\heavyarmor}{\itemarmor{Heavy}}
+
+\newcommand{\itemwear}[1]{\typedisc{draw=black,fill=black} \itemtype{#1}}
+\newcommand{\itemweardef}{\itemwear{Wearable}}
+\newcommand{\belt}{\itemwear{Belt}}
+\newcommand{\gloves}{\itemwear{Gloves}}
+\newcommand{\headband}{\itemwear{Headband}}
+\newcommand{\necklace}{\itemwear{Necklace}}
+\newcommand{\earring}{\itemwear{Earring}}
+\newcommand{\ring}{\itemwear{Ring}}
+\newcommand{\cloak}{\itemwear{Cloak}}
+\newcommand{\clothes}{\itemwear{Clothes}}
+\newcommand{\amulet}{\itemwear{Amulet}}
+\newcommand{\bracers}{\itemwear{Bracers}}
+\newcommand{\boots}{\itemwear{Boots}}
+\newcommand{\glasses}{\itemwear{Glasses}}
+
+\newcommand{\itemcons}[1]{\typedisc{draw=blue,fill=blue} \itemtype{#1}}
+\newcommand{\itemconsdef}{\itemcons{Consumable}}
+\newcommand{\potion}{\itemcons{Potion}}
+\newcommand{\wand}{\itemcons{Wand}}
+\newcommand{\scroll}{\itemcons{Scroll}}
+\newcommand{\food}{\itemcons{Food}}
+
+\newcommand{\itemmisc}[1]{\typedisc{draw=black,fill=white} #1}
+\newcommand{\itemmiscdef}{\itemmisc{Misc}}
+\newcommand{\tool}{\itemmisc{Tool}}
+\newcommand{\rope}{\itemmisc{Rope}}
+\newcommand{\gem}{\itemmisc{Gem}}
+\newcommand{\bedroll}{\itemmisc{Bedroll}}
+\newcommand{\waterskin}{\itemmisc{Waterskin}}
+\newcommand{\book}{\itemmisc{Book}}
+\newcommand{\itemfocus}[1]{\itemmisc{#1 Focus}}
+\newcommand{\divinefocus}{\itemfocus{Divine}}
+\newcommand{\arcanefocus}{\itemfocus{Arcane}}
+\newcommand{\saddle}{\itemmisc{Saddle}}
+
+\newcommand{\itemcontainer}[1]{\itemmisc{#1}}
+\newcommand{\backpack}{\itemcontainer{Backpack}}
+\newcommand{\bagofholding}{\itemcontainer{Bag of Holding}}
+\newcommand{\saddlebag}{\itemcontainer{Saddlebag}}
+
+\newcommand{\itemspecial}[1]{\typedisc{draw=green,fill=green} #1}
+\newcommand{\itemspecialdef}{\itemspecial{Special}}
+\newcommand{\magicbook}{\itemspecial{Magic Book}}
+\newcommand{\rod}{\itemspecial{Rod}}
+
+% cariche
+\newcommand{\cariche}[1]{\begin{tikzpicture}[x=0.4cm,y=-0.4cm]
+\pgfmathsetmacro{\carichelines}{floor(#1/10)}
+\pgfmathsetmacro{\caricherest}{mod(#1,10)}
+\ifnum 0<\carichelines
+\foreach \line in {1,...,\carichelines} {
+ \foreach \col in {0,...,9}
+  \draw (\col,\line - 1) circle (0.2cm);
+}
+\fi
+\ifnum 0<\caricherest
+\foreach \col in {1,...,\caricherest} {
+  \draw (\col - 1,\carichelines) circle (0.2cm);
+}
+\fi
+\end{tikzpicture}}
-- 
cgit v1.2.3

