-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtab_CharCreation.dat
360 lines (318 loc) · 8.64 KB
/
tab_CharCreation.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the definition of the "talents" tab panel. This tab is where
the user selects the special talents for the character.
All public visual elements used with this tab panel start with the prefix "ab"
to associate them with the tab.
-->
<document signature="Hero Lab Data">
<portal
id="hdrArchetype"
style="lblTitle">
<label>
<labeltext>
@text = "Archetype/Species"
</labeltext>
</label>
</portal>
<portal
id="hdrCareer"
style="lblTitle">
<label>
<labeltext>
@text = "Career"
</labeltext>
</label>
</portal>
<portal
id="ccArchetype"
style="chsNormal"
width="110">
<chooser_table
component="Archetype"
choosetemplate="LargeItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Archetype/Species"
else
@text = field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Archetype/Species for your character"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="ccCareer"
style="chsNormal"
width="110">
<chooser_table
component="Career"
choosetemplate="LargeItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Career"
else
@text = field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Career for your character"
]]></titlebar>
</chooser_table>
</portal>
<!--
<portal
id="ccArchetype"
style="tblNormal"
width="110">
<table_dynamic
component="Species"
showtemplate="SimpleItem"
choosetemplate="SimpleItem"
choosesortset="SpecSort">
<titlebar><![CDATA[
@text = "Choose the Species for your character"
]]></titlebar>
<additem><![CDATA[
~if we're in advancement mode, we've been frozen, so display accordingly
if (state.iscreate = 0) then
@text = "{text clrgrey}Add Talents Via Advances Tab"
done
endif
~set the color based on whether the proper number of slots are allocated
if (field[resLeft].value = 0) then
@text = "{text clrgrey}"
elseif (field[resLeft].value < 0) then
@text = "{text clrwarning}"
endif
@text &= "Add New Talent"
]]></additem>
</table_dynamic>
</portal>
<portal
id="hdrEnviron"
style="lblTitle">
<label>
<labeltext>
@text = "Step 2: Environment"
</labeltext>
</label>
</portal>
<portal
id="hoEnviron"
style="chsNormal"
width="150">
<chooser_table
component="Environ"
choosetemplate="SimpleItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Environment"
else
@text = "Environment: " & field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Environment for your character"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="hdrUpbring"
style="lblTitle">
<label>
<labeltext>
@text = "Step 3: Upbringing"
</labeltext>
</label>
</portal>
<portal
id="hoUpbring"
style="chsNormal"
width="150">
<chooser_table
component="Upbringing"
choosetemplate="SimpleItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Upbringing"
else
@text = "Upbringing: " & field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Upbringing for your character"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="hdrAcad"
style="lblTitle">
<label>
<labeltext>
@text = "Step 4: Starfleet Academy"
</labeltext>
</label>
</portal>
<portal
id="hoAcad"
style="chsNormal"
width="150">
<chooser_table
component="Academy"
choosetemplate="SimpleItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Starfleet Academy Track"
else
@text = "Academy Track: " & field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Academy Track for your character"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="hdrCareer"
style="lblTitle">
<label>
<labeltext>
@text = "Step 5 & 6: Career & Events"
</labeltext>
</label>
</portal>
<portal
id="hoCareer"
style="chsNormal"
width="150">
<chooser_table
component="Career"
choosetemplate="SimpleItem">
<chosen><![CDATA[
if (@ispick = 0) then
@text = "{text clrwarning}Select Career Experience"
else
@text = "Career: " & field[name].text
endif
]]></chosen>
<titlebar><![CDATA[
@text = "Choose the Academy Track for your character"
]]></titlebar>
</chooser_table>
</portal>
<portal
id="hdrFinish"
style="lblTitle">
<label>
<labeltext>
@text = "Step 7: Finishing Touches"
</labeltext>
</label>
</portal>
<template
id="hoPick"
name="Species Pick"
compset="Species"
marginhorz="3"
marginvert="2">
<portal
id="name"
style="lblNormal"
showinvalid="yes">
<label
field="name">
</label>
</portal>
<portal
id="info"
style="actInfo">
<action
action="info">
</action>
<mouseinfo/>
</portal>
<portal
id="delete"
style="actDelete"
tiptext="Click to delete this item">
<action
action="delete">
</action>
</portal>
<position><![CDATA[
~set up our height based on our tallest portal
height = portal[info].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[info].top = 0
~center the other portals vertically
perform portal[name].centervert
perform portal[delete].centervert
~position the delete portal on the far right
perform portal[delete].alignedge[right,0]
~position the info portal to the left of the delete button
perform portal[info].alignrel[rtol,delete,-8]
~position the name on the left and let it use all available space
portal[name].left = 0
portal[name].width = minimum(portal[name].width,portal[info].left - 5)
~if the Talent is auto-added, change its font to indicate that fact
if (candelete = 0) then
perform portal[name].setstyle[lblAuto]
endif
]]></position>
</template>
-->
<portal
id="hoHoriz1"
style="sepHorz">
<separator
isvertical="no">
</separator>
</portal>
<layout
id="charcreate">
<portalref portal="hdrArchetype" />
<portalref portal="hdrCareer" />
<portalref portal="ccArchetype" taborder="10"/>
<portalref portal="ccCareer" taborder="20"/>
<portalref portal="hoHoriz1" />
<!-- This script sizes and positions the layout and its child visual elements.
<portalref portal="ccArchetype" taborder="10"/>
-->
<position><![CDATA[
~freeze our table in advancement mode to disable adding new choices
~Note: All freezing must be done *before* any positioning is performed.
if (state.iscreate = 0) then
portal[ccArchetype].freeze = 1
portal[ccCareer].freeze = 1
endif
~position and size the table to span the full layout; it will only use the
~vertical space that it actually needs
portal[hdrArchetype].top = 0
portal[hdrArchetype].height = 20
portal[hdrArchetype].width = width
portal[ccArchetype].top = portal[hdrArchetype].bottom + 5
portal[ccArchetype].height = 20
portal[ccArchetype].width = width
portal[hdrCareer].top = portal[ccArchetype].bottom + 10
portal[hdrCareer].height = 20
portal[hdrCareer].width = width
portal[ccCareer].top = portal[hdrCareer].bottom + 5
portal[ccCareer].height = 20
portal[ccCareer].width = width
]]></position>
</layout>
<panel
id="charcreate"
name="Creation"
marginhorz="5"
marginvert="5"
order="5">
<layoutref layout="charcreate"/>
<position><![CDATA[
]]></position>
</panel>
</document>