-
Notifications
You must be signed in to change notification settings - Fork 1
/
sheet_new2.dat
78 lines (63 loc) · 3 KB
/
sheet_new2.dat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the definition of the second page of the standard character
sheet for output. The second page is handled as a spillover sheet that will
output any details that didn't fit on the first page. This is a technique that
you will likely use for whatever game system you choose to support.
The first page of the character sheet will be found in "sheet_standard1.dat".
The portals used to output the equipment below are the same ones used on the
first page of the character sheet. As such, those portals will be found in
the file that defines the first page.
-->
<document signature="Hero Lab Data">
<!-- oStandard2 layout
This layout contains all the remaining armor, weapons, and gear for the
character. If not all of the equipment can fit on the first sheet, the gear
that remains is output on a spillover sheet. Spillover sheets continue to
print as long as data remains that has not yet been output. This layout is
designed so that it can be re-used for both the lefthand and righthand
columns on the same sheet. So this layout shows all the armor it can, until
it either runs out of armor or runs out of available space. Then it does
the same for weapons, and finally for gear.
-->
<layout
id="oNew2">
<portalref portal="oMidWeapon"/>
<portalref portal="oVehicle"/>
<portalref portal="oPersonal"/>
<position><![CDATA[
~position weapons next
perform portal[oMidWeapon].autoplace
~position gear next
perform portal[oVehicle].autoplace
~position personal details last
perform portal[oPersonal].autoplace
~the height of the layout is the bottommost extent of the elements within
height = autoextent
]]></position>
</layout>
<!-- new2 sheet
This is the second and subsequent page of the character sheet. It is a
spillover sheet, so it is only printed when necessary and will continue to
print as long as it remains necessary. The role of a spillover sheet is to
output material that doesn't fit on previous pages, continuing to print
until all items have been output. For this example, we allow the armor,
weapons, and gear to spillover. However, spillover sheets are ideal for any
data that can vary in length, such as spell lists, special talents, etc.
This particular sheet uses the same layout twice, using it for the left and
right columns of output. You can have different layouts on this sheet, just
like a standard character sheet, positioning them as you choose.
-->
<sheet
id="new2"
name="New character sheet, page #2"
spillover="yes">
<layoutref layout="oNew2" />
<position><![CDATA[
layout[oNew2].top = 0
layout[oNew2].left = 0
layout[oNew2].width = width
perform layout[oNew2].render
height = layout[oNew2].bottom
]]></position>
</sheet>
</document>