forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.ui-menus.xml
426 lines (354 loc) · 16.4 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
<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>
<struct-type type-name='ui_build_selector'>
<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' comment='v0.34.08'/>
<int32_t name='use_dump' comment='v0.34.08'/>
<int32_t name='dump_x_shift' comment='v0.34.08'/>
<int32_t name='dump_y_shift' comment='v0.34.08'/>
<int32_t name='speed' init-value='50000' comment='v0.34.08'/>
dtor: 0x85272c0
</struct-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 comment='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 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'/>
<compound 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'/>
<compound name="item_category" type-name='stockpile_group_set'/>
<int32_t name="hist_figure_id" ref-target='historical_figure'/>
<compound name='material_category' type-name='job_material_category'/>
<bool name="unk_48"/>
<bool name="is_custom"/>
</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'>
<int32_t name="category_id"/>
</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' comment='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"/>
<compound name='material_category' type-name='job_material_category'/>
<stl-string comment='v0.42.01'/>
<stl-vector name='use_tooltip_lines' pointer-type='stl-string' comment='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 comment='v0.42.01'/>
<bool name="in_new_squad" comment='v0.34.08'/>
<int32_t name="cursor_uniform" comment='v0.34.08'/>
<int32_t name="unk_88n_cursor" comment='v0.34.08'/>
<stl-vector name='squads' comment='v0.34.08' pointer-type='squad'/>
<stl-vector name='squad_pos' comment='v0.34.08' pointer-type='entity_position'/>
<stl-vector name='squad_assn' comment='v0.34.08' pointer-type='entity_position_assignment'/>
<stl-bit-vector name='squad_unk1' comment='v0.34.08'/>
<stl-vector name='squad_unk2' comment='v0.34.08'/>
<pointer type-name='entity_position'/>
<pointer type-name='entity_position_assignment'/>
<pointer type-name='entity_position'/>
<int8_t name='in_squad'/>
<int8_t/>
<int8_t/>
<int8_t/>
<int32_t/>
<int32_t name="unk_80"/>
<int32_t name="unk_84"/>
<int32_t name="unk_88"/>
<int32_t name="unk_8c"/>
<int32_t name="unk_90"/>
</compound>
<compound name='location'>
<stl-vector name='list' pointer-type='abstract_building' comment='v0.42.01'/>
<int32_t name='cursor' comment='v0.42.01'/>
<stl-vector name='deities' pointer-type='historical_figure' comment='v0.42.01'/>
<int32_t name='cursor_deity'/>
<bool name='in_create'/>
<bool name='in_choose_deity'/>
</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'/>
<bool name="show_combat"/>
<bool name="show_labor"/>
<bool name="show_misc"/>
</compound>
<compound name='barracks'>
<int32_t name="squad_cursor"/>
<stl-vector name='squads' pointer-type='squad'/>
<stl-vector name='uses'>
<compound 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 comment='v0.42.01'/>
<padding size='4' comment='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='unk'>
<stl-string/>
<stl-vector pointer-type='stl-string'/>
<int32_t name="unk_17c0"/>
<int32_t name="unk_17c4"/>
<int8_t name="unk_17c8"/>
<stl-string name='worldgen_param_set'/>
<int8_t name="unk_17d0"/>
<int32_t name="num_speech_tokens"/>
<int8_t name="unk_17d8"/>
</compound>
</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>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->