forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.ui-menus.xml
506 lines (428 loc) · 20.3 KB
/
df.ui-menus.xml
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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
<data-definition>
-- BUILDING COMPONENT ITEM SELECTION
<struct-type type-name='ui_build_item_req'>
<comment>
When creating a building, one record per required item type.
E.g. Soap Maker's workshop requires a bucket and a building material.
</comment>
<compound name='filter' type-name='job_item_filter'/>
<stl-vector name='candidates' pointer-type='item'/>
<stl-vector name='candidate_selected' type-name='bool'/>
<stl-vector name='unk_a0' type-name='int16_t'/>
<stl-vector name='candidate_enabled' type-name='bool'/>
<int16_t name="count_required"/>
<int16_t name="count_max" comment='if 0, fixed at required'/>
<int16_t name="count_provided"/>
</struct-type>
<enum-type type-name='build_req_choice_type'>
<enum-item name='General'/>
<enum-item name='Specific'/>
</enum-type>
<class-type type-name='build_req_choicest'>
<comment>One choice in the build item selector.</comment>
<int32_t name="distance"/>
<virtual-methods>
<vmethod ret-type='build_req_choice_type' name='getType'/>
<vmethod name='getName'>
<pointer type-name='stl-string' name='str'/>
</vmethod>
<vmethod ret-type='int32_t'/>
<vmethod ret-type='bool' name='isCandidate'>
<int32_t name='item_id'/>
</vmethod>
<vmethod ret-type='bool'/>
<vmethod ret-type='int32_t' name='getUsedCount'/>
<vmethod ret-type='int32_t' name='getNumCandidates'/>
<vmethod/>
</virtual-methods>
</class-type>
<class-type type-name='build_req_choice_genst' inherits-from='build_req_choicest'>
<enum base-type='int16_t' name="item_type" type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<stl-vector name="candidates">
<int32_t>
<code-helper name='refers-to'>
(let* ((selector $global.ui_build_selector)
(req $selector.requirements[$selector.req_index]))
$req.candidates[$])
</code-helper>
</int32_t>
</stl-vector>
<int32_t name="used_count"/>
</class-type>
<class-type type-name='build_req_choice_specst' inherits-from='build_req_choicest'>
<pointer name='candidate' type-name='item'/>
<int32_t name='candidate_id'>
<code-helper name='refers-to'>
(let* ((selector $global.ui_build_selector)
(req $selector.requirements[$selector.req_index]))
$req.candidates[$])
</code-helper>
</int32_t>
</class-type>
<class-type type-name='ui_build_selector' original-name='buildreqst'>
<stl-vector name='requirements' pointer-type='ui_build_item_req'/>
<stl-vector name='choices' pointer-type='build_req_choicest'/>
<enum base-type='int32_t' name="building_type"
type-name='building_type' comment='if -1, in Build menu; otherwise select item'/>
<int16_t name="building_subtype"/>
<int32_t name="custom_type" ref-target='building_def'/>
<int32_t name="stage" comment='0 no materials, 1 place, 2 select item'/>
<int16_t name="req_index"/>
<int16_t name="sel_index"/>
<int32_t name="is_grouped"/>
<stl-vector name='errors' pointer-type='stl-string'/>
<stl-vector name='unk4' pointer-type='stl-string'/>
<static-array name='tiles' count='31'>
<static-array type-name='int32_t' count='31'/>
</static-array>
<int16_t name='unk5_0a'/>
<int16_t name='unk5_0b'/>
<compound name='plate_info' type-name='pressure_plate_info'/>
<stl-vector name='unk6' type-name='int16_t'/>
<stl-vector name='unk7' type-name='int16_t'/>
<int32_t name='friction' init-value='50000' since='v0.34.08'/>
<int32_t name='use_dump' since='v0.34.08'/>
<int32_t name='dump_x_shift' since='v0.34.08'/>
<int32_t name='dump_y_shift' since='v0.34.08'/>
<int32_t name='speed' init-value='50000' since='v0.34.08'/>
dtor: 0x85272c0
<virtual-methods>
<vmethod/>
</virtual-methods>
</class-type>
-- MISC. SIDEBAR MENUS
<class-type type-name='interface_button' original-name='interface_buttonst'>
<enum name='hotkey_id' type-name='interface_key' base-type='int32_t'/>
<bool name="is_hidden"/>
<int32_t since='v0.40.23'/>
<virtual-methods>
<vmethod name='printSlabStatus' comment='ghost, buried, memorialized'>
<int32_t name='x'/>
<int32_t name='y'/>
<int32_t name='unused'/>
</vmethod>
<vmethod name='getLabel'>
<pointer type-name='stl-string' name='str'/>
</vmethod>
<vmethod name='click'/>
<vmethod name='setColor'>
<bool name='selected'/>
</vmethod>
<vmethod name='makeHidden'/>
<vmethod name='getTrackGlyph' ret-type='uint8_t'/>
<vmethod name='setTrackGlyphColor'/>
<vmethod name='getReactionLabel'> also for reaction categories
<pointer type-name='stl-string'/>
</vmethod>
<vmethod name='isBuiltinJob' ret-type='bool'/>
<vmethod name='isValidCustomReaction' ret-type='bool'/>
<vmethod is-destructor='true'/>
</virtual-methods>
</class-type>
<class-type type-name='interface_button_buildingst'
inherits-from='interface_button'>
<pointer name='building' type-name='building'/>
</class-type>
<class-type type-name='interface_button_building_category_selectorst'
inherits-from='interface_button_buildingst'>
<int32_t name="category_id"/>
<int8_t name="unk_14"/>
</class-type>
<class-type type-name='interface_button_building_material_selectorst'
inherits-from='interface_button_buildingst'>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<bitfield name='material_category' type-name='job_material_category'/>
<int8_t name="unk_1c"/>
</class-type>
<class-type type-name='interface_button_building_new_jobst'
inherits-from='interface_button_buildingst'>
<enum name="job_type" base-type='int32_t' type-name='job_type'/>
<stl-string name="reaction_name"/>
<enum base-type='int16_t' name='item_type' type-name='item_type'/>
<int16_t name="item_subtype"/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<bitfield name="item_category" type-name='stockpile_group_set'/>
<int32_t name="hist_figure_id" ref-target='historical_figure'/>
<bitfield name='material_category' type-name='job_material_category'/>
<bool name="unk_48"/>
<bool name="is_custom"/>
</class-type>
<class-type type-name='interface_button_building_custom_category_selectorst'
inherits-from='interface_button_buildingst'>
<stl-string name='category'/>
</class-type>
<class-type type-name='interface_button_constructionst'
inherits-from='interface_button'>
<pointer name='unused_c'/>
</class-type>
<class-type type-name='interface_button_construction_donest'
inherits-from='interface_button_constructionst'/>
<class-type type-name='interface_button_construction_category_selectorst'
inherits-from='interface_button_constructionst'>
<enum name='category_id' base-type='int32_t'>
<enum-item name='SiegeEngines' value='1'/>
<enum-item name='Traps'/>
<enum-item name='Workshops'/>
<enum-item name='Furnaces'/>
<enum-item name='Constructions'/>
6
<enum-item name='MachineComponents'/>
<enum-item name='Track'/>
</enum>
</class-type>
<class-type type-name='interface_button_construction_building_selectorst'
inherits-from='interface_button_constructionst'>
<int16_t name="building_type"/>
<int16_t name="building_subtype"/>
<int32_t name="custom_type" ref-target='building_def'/>
<int32_t name="existing_count"/>
</class-type>
<struct-type type-name='ui_sidebar_menus'>
dtor 0x8535ee0
<compound name='designation' since='v0.40.20'>
<bool name='marker_only'/>
<bool name='priority_set' comment='set to one if using +/-'/>
<int32_t name='priority' init-value='4000' comment='*1000'/>
<enum name='mine_mode'>
<enum-item name='All'/>
<enum-item name='AutoMine'/>
<enum-item name='Economic'/>
<enum-item name='Gems'/>
</enum>
</compound>
<compound name='workshop_job'>
<stl-vector name='choices_all' pointer-type='interface_button_buildingst'/>
<stl-vector name='choices_visible' pointer-type='interface_button_buildingst'/>
<int32_t name="cursor"/>
<int32_t name="category_id" comment='weapons, armor, etc'/>
<int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/>
<int32_t name="mat_index"/>
<bitfield name='material_category' type-name='job_material_category'/>
<stl-string since='v0.42.01'/>
<stl-vector name='use_tooltip_lines' pointer-type='stl-string' since='v0.42.01'/>
</compound>
<compound name='building'>
<stl-vector name='choices_all' pointer-type='interface_button_constructionst'/>
<stl-vector name='choices_visible' pointer-type='interface_button_constructionst'/>
<int32_t name="category_id"/>
<int32_t name="cursor"/>
</compound>
<compound name='zone'>
<bool name='remove'/>
<padding size='1'/>
<enum name='mode' base-type='int16_t'>
<enum-item name='Rectangle'/>
<enum-item name='Flow'/>
<enum-item name='FloorFlow'/>
</enum>
<pointer name='selected' type-name='building_civzonest'/>
</compound>
<compound name='unit'>
<stl-vector name='inv_items' pointer-type='unit_inventory_item'/>
<stl-vector name='inv_spatters' pointer-type='spatter'/>
<stl-vector since='v0.42.01'/>
<bool name="in_new_squad" since='v0.34.08'/>
<int32_t name="cursor_uniform" since='v0.34.08'/>
<int32_t name="unk_88n_cursor" since='v0.34.08'/>
<stl-vector name='squads' since='v0.34.08' pointer-type='squad'/>
<stl-vector name='squad_pos' since='v0.34.08' pointer-type='entity_position'/>
<stl-vector name='squad_assn' since='v0.34.08' pointer-type='entity_position_assignment'/>
<stl-bit-vector name='squad_unk1' since='v0.34.08'/>
<stl-vector name='squad_unk2' since='v0.34.08'/>
<pointer type-name='entity_position'/>
<pointer type-name='entity_position_assignment'/>
<pointer type-name='entity_position'/>
<bool name='unk3'/>
<bool name='unk4'/>
<bool name='squad_list_opened'/>
<bool name='unk5'/>
<pointer type-name='squad' name='rename_squad'/>
<stl-vector name="unk_88"/>
<stl-vector name='unk_44_11a' since='v0.44.11'/>
<int32_t name='unk_44_11b' since='v0.44.11'/>
<int8_t name='unk_44_11c' since='v0.44.11'/>
<enum name='expel_error' base-type='int32_t' since='v0.44.11'>
<enum-item name='NONE' value='-1'/>
<enum-item name='NOBILITY'/>
<enum-item name='HOLDS_OFFICE'/>
<enum-item name='DOES_EXPELLING'/>
<enum-item name='SPOUSE_IS_NOT_PRESENT'/>
<enum-item name='SPOUSE_IS_NOBILITY'/>
<enum-item name='SPOUSE_IS_ELECTED'/>
<enum-item name='SPOUSE_DOES_EXPELLING'/>
<enum-item name='CHILD_IS_NOT_PRESENT'/>
<enum-item name='CHILD_IS_NOBILITY'/>
<enum-item name='CHILD_IS_ELECTED'/>
<enum-item name='CHILD_DOES_EXPELLING'/>
</enum>
</compound>
<compound name='hospital' since='v0.44.11'>
<int32_t name='selected_line'/>
<int32_t name='beds'/>
<int32_t name='tables'/>
<int32_t name='traction_benches'/>
<int32_t name='containers'/>
</compound>
<compound name='location'>
<stl-vector name='list' pointer-type='abstract_building' since='v0.42.01'/>
<int32_t name='cursor' since='v0.42.01'/>
<stl-vector name='deities' pointer-type='historical_figure' since='v0.42.01'/>
<stl-vector since='v0.47.01'/>
<int32_t name='cursor_deity'/>
<stl-vector since='v0.47.01'/>
<bool name='in_create'/>
<bool name='in_choose_deity'/>
</compound>
<compound name='job_details' since='v0.42.06'>
<pointer name='job' type-name='job'/>
<padding size='4'/>
<stl-vector name='detail_type' type-name='int32_t' comment='0-material, 1-image, 2-size, 3-type'/>
<stl-vector name='detail_material_type' type-name='int32_t'/>
<int32_t name='detail_cursor'/>
<int32_t name='setting_detail_type'/>
<int32_t name='unk6'/>
<compound name='pos' type-name='coord'/>
<pointer name='workshop' type-name='building_workshopst'/>
<stl-vector name='mat_type_visible' type-name='int16_t'/>
<stl-vector name='mat_index_visible' type-name='int32_t'/>
<stl-vector name='mat_amount_visible' type-name='int32_t'/>
<stl-vector name='mat_type_all' type-name='int16_t'/>
<stl-vector name='mat_index_all' type-name='int32_t'/>
<stl-vector name='mat_amount_all' type-name='int32_t'/>
<int32_t name='mat_cursor'/>
<int32_t/>
<stl-string name='mat_filter'/>
<bool name='editing_mat_filter'/>
<stl-vector name='sizes_visible' type-name='int32_t' comment='race id'/>
<stl-vector name='sizes_all' type-name='int32_t' comment='race id'/>
<int32_t name='size_cursor'/>
<stl-string name='size_filter'/>
<bool name='editing_size_filter'/>
<stl-vector name='decoration_types' type-name='int32_t' comment='0-image, 1-covered, 2-rings, 3-bands, 4-spikes'/>
<int32_t name='decoration_cursor'/>
<pointer name='selected_display_furniture' type-name='building_display_furniturest' since='v0.44.01'/>
<int32_t name='displayed_items_cursor' since='v0.44.01'/>
</compound>
<compound name='unit_cursor'>
<stl-vector name='list' type-name='int32_t' refers-to='$global.world.units.active[$]'/>
<int8_t name='unk_a0'/>
<int8_t name='unk_a1'/>
</compound>
<compound name='unit_skills'>
<stl-vector name='skill_id' type-name='int32_t' refers-to='$global.ui_selected_unit.index.refers-to.status.current_soul.skills[$]'/>
<stl-vector name='skill_type' type-name='int32_t'/>
<stl-vector name='skill_subtype' type-name='int32_t'/>
</compound>
<bool name="show_combat"/>
<bool name="show_labor"/>
<bool name="show_misc"/>
<int32_t name="barracks_squad_cursor"/>
<compound name='barracks'>
<stl-vector name='squads' pointer-type='squad'/>
<stl-vector name='uses'>
<bitfield type-name='squad_use_flags'/>
</stl-vector>
<bool name="in_rename"/>
<bool name="in_positions"/>
<pointer name="position_squad" type-name='squad'/>
<int32_t name="position_cursor"/>
<bool name="in_position_squads"/>
<stl-vector name='position_squads' pointer-type='squad'/>
<int32_t name="position_squad_cursor"/>
</compound>
<stl-vector since='v0.42.01'/>
<padding size='4' since='v0.42.01'/>
<compound name='minimap'>
-- Abstract representation of contents; updated by need_scan
<static-array name='data' count='23'>
<static-array count='23' type-name='int32_t'/>
</static-array>
<bool name='need_render'/>
<bool name='need_scan'/>
<int16_t name='z_level'/>
-- Cached actual tiles from the screen; updated by need_render
<static-array name='tile' count='23'>
<static-array count='23' type-name='uint8_t'/>
</static-array>
<static-array name='tile_fg' count='23'>
<static-array count='23' type-name='int16_t'/>
</static-array>
<static-array name='tile_bg' count='23'>
<static-array count='23' type-name='int16_t'/>
</static-array>
<static-array name='tile_bold' count='23'>
<static-array count='23' type-name='int16_t'/>
</static-array>
</compound>
<compound name='command_line'>
<stl-string name='original'/>
<stl-vector name='arg_vect' pointer-type='stl-string'/>
<long name="gen_id"/>
<long name="world_seed"/>
<bool name="use_seed"/>
<stl-string name='world_param'/>
<int8_t name="use_param"/>
</compound>
<int32_t name="num_speech_tokens"/>
<int8_t name="unk_17d8"/>
</struct-type>
<struct-type type-name='ui_look_list'>
<stl-vector name='items'>
<pointer>
<enum base-type='int16_t' name='type'>
<enum-item name='Item'/>
<enum-item name='Floor'/>
<enum-item name='Unit'/>
<enum-item name='Building'/>
<enum-item name='Vermin'/>
<enum-item name='Flow'/>
<enum-item name='Campfire'/>
<enum-item name='Spatter'/>
<enum-item name='BuildingItem'/>
<enum-item name='Fire'/>
<enum-item name='Water'/>
<enum-item name='Magma'/>
<enum-item name='Spoor'/>
</enum>
<enum base-type='int16_t' name='spatter_item_type' type-name='item_type'/>
<int16_t name='spatter_item_subtype' refers-to='(item-subtype-target $$._parent.spatter_item_type $)'/>
<int16_t name='spatter_mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='spatter_mat_index'/>
<enum type-name='matter_state' base-type='int16_t' name='spatter_mat_state'/>
<compound is-union='true'>
<pointer name='item' type-name='item'/>
<pointer name='unit' type-name='unit'/>
<pointer name='building' type-name='building'/>
<pointer name='vermin' type-name='vermin'/>
<pointer name='flow' type-name='flow_info'/>
<int8_t name='spatter_size' comment='also water/magma depth+flags'/>
</compound>
<int16_t/>
<int16_t/>
<int16_t/>
</pointer>
</stl-vector>
</struct-type>
<struct-type type-name='ui_unit_view_mode'>
<enum name='value'>
<enum-item name='General'/>
<enum-item name='Inventory'/>
<enum-item name='Preferences'/>
<enum-item name='Wounds'/>
<enum-item name='PrefLabor'/>
<enum-item name='PrefDogs'/>
<enum-item name='PrefOccupation'/>
</enum>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->