forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdf.widgets.unit_list.xml
More file actions
114 lines (103 loc) · 4.97 KB
/
df.widgets.unit_list.xml
File metadata and controls
114 lines (103 loc) · 4.97 KB
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
<data-definition>
<enum-type type-name='unit_list_options'> bay12: unit_list_options
<enum-item name='NONE'/>
<enum-item name='PORTRAIT'/>
<enum-item name='NAME_PROF'/>
<enum-item name='RECENTER'/>
<enum-item name='SHEET'/>
<enum-item name='CUR_JOB'/>
<enum-item name='ACTIVITY_DETAILS'/>
<enum-item name='HAPPINESS'/>
<enum-item name='SPECIALIZED'/>
<enum-item name='WORK_DETAILS'/>
<enum-item name='SKILLS'/>
<enum-item name='SELECTED'/>
<enum-item name='SHOW_GENDER'/>
<enum-item name='CUSTOM_BUILD'/>
<enum-item name='FORCE_JOB_WIDTH'/>
<enum-item name='ACTIVATE_ON_CURSOR'/>
</enum-type>
<bitfield-type type-name='unit_list_flag' base-type='uint8_t'> bay12: UNIT_LIST_FLAG_*
<flag-bit name='show_gender'/>
<flag-bit name='custom_build'/>
<flag-bit name='force_job_width'/>
<flag-bit name='activate_on_cursor'/>
</bitfield-type>
<class-type type-name='widget_unit_portrait' original-name='widgets::unit_portrait' inherits-from='widget'>
<pointer name='u' type-name='unit'/>
</class-type>
<class-type type-name='widget_creature_portrait' original-name='widgets::creature_portrait' inherits-from='widget'>
<int16_t name='race'/>
<int16_t name='ccaste'/>
</class-type>
<class-type type-name='widget_item_portrait' original-name='widgets::item_portrait' inherits-from='widget'>
<pointer name='i' type-name='item'/>
</class-type>
<class-type type-name='widget_unit_name' original-name='widgets::unit_name' inherits-from='widget'>
<pointer name='u' type-name='unit'/>
<bool name='show_gender'/>
<bool name='show_profession'/>
<bool name='one_line_only'/>
</class-type>
<class-type type-name='widget_item_name' original-name='widgets::item_name' inherits-from='widget'>
<pointer name='it' type-name='item'/>
</class-type>
<struct-type type-name='item_or_unit'>
<!--
Can't use this right now due to lack of identity_traits for std::variant
<stl-variant raw-type='df::unit *, df::item *'/>
-->
<compound is-union='true'>
<pointer type-name='unit' name='u'/>
<pointer type-name='item' name='i'/>
</compound>
<int8_t name='t'/>
</struct-type>
<class-type type-name='widget_unit_list' original-name='widgets::unit_list' inherits-from='widget_container'>
<stl-vector type-name='sort_entry' name='sorting_by' comment='std::vector<sort_entry<item_or_unit>>'/>
<stl-vector name='always_sorting_by'> <stl-function type-name='bool'/> </stl-vector>
<stl-vector name='partitions'> <stl-function type-name='bool'/> </stl-vector>
<stl-unordered-map name='ascending_sort'>
<key-type type-name='stl-string'/>
<value-type type-name='bool'/>
</stl-unordered-map>
<bitfield type-name='unit_list_sort_flag' name='sort_flags' base-type='uint8_t'/>
<bitfield type-name='unit_list_flag' name='flags' base-type='uint8_t'/>
<stl-vector name='filter_func'> <stl-function type-name='bool'/> </stl-vector>
<stl-vector name='preprocess_unit_func'> <stl-function/> </stl-vector>
<stl-vector name='postprocess_unit_func'> <stl-function/> </stl-vector>
<stl-vector name='preprocess_item_func'> <stl-function/> </stl-vector>
<stl-vector name='postprocess_item_func'> <stl-function/> </stl-vector>
<stl-function name='close_callback'/>
<stl-vector type-name='unit_list_options' name='options'/>
<stl-vector type-name='item_or_unit' name='entry_list'/>
<stl-unordered-set name='selected' comment='std::unordered_set<void *>'>
<pointer/>
</stl-unordered-set>
<stl-unordered-map name='job_sort_str'>
<key-type><pointer/></key-type>
<value-type><stl-string/></value-type>
</stl-unordered-map>
<int32_t name='cursor_idx'/>
<stl-function name='is_selected' comment='std::function<bool(item_or_unit)>'/>
<stl-vector name='on_select_change'>
<stl-function comment='std::function<void(item_or_unit,bool)>'/>
</stl-vector>
<enum type-name='unit_list_options' name='skill_type'/>
<stl-mutex name='mtx'/>
<static-array type-name='int32_t' index-enum='job_skill' name='skills'/>
<stl-string name='filter_str'/>
<stl-vector name='deferred_units_builds'>
<stl-weak-ptr type-name='widget_container'/>
<compound type-name='item_or_unit'/>
</stl-vector>
<stl-shared-ptr type-name='widget' name='no_unit_entry'/>
</class-type>
<class-type type-name='widget_unit_sort_widget' inherits-from='widget_sort_widget' comment='template specialization using unit_list + unit_list::item_or_unit'/>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->