-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMenu.h
259 lines (249 loc) · 5.76 KB
/
Menu.h
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
// --------------------------------
// Condition menu
// --------------------------------
#ifdef CONDITION_MENU
SUB_START("Input/Output")
ITEM(0, "File loaded")
ITEM(2, "Loading file failed")
SEPARATOR
ITEM(1, "File saved")
ITEM(3, "Saving file failed")
SUB_END
SUB_START("Properties")
ITEM(4, "On map property")
SUB_END
// SEPARATOR
// SUB_START("Layer")
// ITEM(5, "Compare to tile X")
// ITEM(6, "Compare to tile Y")
// ITEM(7, "Compare to tile ID")
// SUB_END
#endif
// --------------------------------
// Action menu
// --------------------------------
#ifdef ACTION_MENU
SEPARATOR
ITEM(11, "Attach viewport")
ITEM(31, "Detach viewport")
SEPARATOR
ITEM(0, "~<Map>")
SUB_START("Input / Output")
ITEM(21, "Load from file")
ITEM(22, "Save to file")
SEPARATOR
ITEM(26, "Set compression level")
ITEM(40, "Set block options")
SEPARATOR
ITEM(50, "Set tileset origin")
ITEM(51, "Set tileset user path")
SUB_END
SUB_START("Tilesets")
ITEM(12, "Add tileset")
ITEM(25, "Add tilesets from Surface")
SEPARATOR
ITEM(34, "Swap two tilesets")
SEPARATOR
ITEM(41, "Delete tileset")
ITEM(43, "Delete all tilesets")
SEPARATOR
ITEM(30, "Set current tileset")
SUB_END
SUB_START("Layers")
ITEM(29, "Add layer")
ITEM(73, "Insert layer")
SEPARATOR
ITEM(42, "Delete layer")
ITEM(44, "Delete all layers")
SEPARATOR
ITEM(8, "Set current layer")
SUB_END
SUB_START("Properties")
ITEM(52, "Set integer")
ITEM(53, "Set float")
ITEM(54, "Set string")
SEPARATOR
ITEM(55, "Delete")
ITEM(56, "Delete all")
SEPARATOR
ITEM(57, "Iterate")
SUB_END
SEPARATOR
ITEM(0, "~<Current tileset>")
SUB_START("Settings")
ITEM(4, "Set image from file")
ITEM(14, "Set image from Surface")
ITEM(3, "Assign image path")
SEPARATOR
ITEM(27, "Set transparent color")
SUB_END
SEPARATOR
ITEM(0, "~<Current layer>")
SUB_START("Settings")
ITEM(1, "Resize")
ITEM(0, "Set tile size")
SEPARATOR
ITEM(37, "Set tileset")
ITEM(15, "Set collision tileset")
SEPARATOR
ITEM(18, "Set visible")
ITEM(19, "Set opacity")
SEPARATOR
ITEM(10, "Set offset")
ITEM(2, "Set scroll speed")
SEPARATOR
ITEM(9, "Set wrapping")
SEPARATOR
SUB_START("Sub-layer links")
ITEM(68, "Set animation index")
ITEM(72, "Set animation frame offset")
SEPARATOR
ITEM(69, "Set tileset")
SUB_END
SUB_END
SUB_START("Tiles")
ITEM(45, "Clear layer")
SEPARATOR
ITEM(23, "Clear tile")
ITEM(7, "Set tile")
SEPARATOR
ITEM(46, "Fill with tile")
ITEM(24, "Fill area with tile")
// SUB_END
SEPARATOR
SUB_START("With cursor")
ITEM(6, "Clear tiles")
SEPARATOR
ITEM(28, "Place tiles")
ITEM(32, "Place tiles at position...")
SEPARATOR
SUB_START("Copy tiles to...")
ITEM(16, "Surface")
SUB_END
SUB_START("Paste tiles from...")
ITEM(38, "Another location")
SEPARATOR
ITEM(17, "Surface")
SUB_END
SUB_END
SUB_END
SUB_START("Sub-layers")
SUB_START("Add sub-layer...")
ITEM(48, "Small (one byte)")
ITEM(60, "Medium (two bytes)")
ITEM(61, "Large (four bytes)")
ITEM(63, "Custom")
SEPARATOR
SUB_START("With default value...")
ITEM(62, "Small")
ITEM(58, "Custom")
SUB_END
SUB_END
ITEM(74, "Delete all")
ITEM(75, "Delete sub-layer")
SEPARATOR
ITEM(67, "Clear")
SEPARATOR
ITEM(59, "Set integer")
ITEM(64, "Set float")
SEPARATOR
ITEM(65, "Fill with integer")
ITEM(66, "Fill with float")
SEPARATOR
ITEM(71, "Randomize")
SEPARATOR
SUB_START("With cursor")
ITEM(49, "Fill with integer")
ITEM(70, "Fill with float")
SUB_END
SUB_END
SEPARATOR
ITEM(0, "~<Tile cursor>")
SUB_START("Tileset source")
ITEM(36, "Select single")
ITEM(20, "Select range")
ITEM(5, "Set fill pattern")
SUB_END
SUB_START("Layer source")
ITEM(35, "Move")
ITEM(33, "Resize")
ITEM(47, "Select range")
ITEM(39, "Maximize to current layer")
SUB_END
SEPARATOR
#endif
// --------------------------------
// Expression menu
// --------------------------------
#ifdef EXPRESSION_MENU
SEPARATOR
SUB_START("Tilesets")
ITEM(16, "Count")
ITEM(35, "Current index")
SEPARATOR
ITEM(0, "Width")
ITEM(1, "Height")
SEPARATOR
ITEM(18, "Absolute path")
SUB_END
SUB_START("Layers")
ITEM(15, "Count")
ITEM(34, "Current index")
SEPARATOR
SUB_START("Size")
ITEM(2, "Width")
ITEM(3, "Height")
SUB_END
SUB_START("Tile size")
ITEM(10, "Width")
ITEM(11, "Height")
SUB_END
ITEM(32, "Tileset")
ITEM(33, "Collision tileset")
SEPARATOR
SUB_START("Offset")
ITEM(6, "X")
ITEM(7, "Y")
SUB_END
SUB_START("Scroll speed")
ITEM(8, "X")
ITEM(9, "Y")
SUB_END
SUB_START("Wrapping")
ITEM(4, "X")
ITEM(5, "Y")
SUB_END
SEPARATOR
SUB_START("Tile at position...")
ITEM(12, "Tileset X")
ITEM(13, "Tileset Y")
SEPARATOR
ITEM(16, "Tileset ID")
ITEM(14, "Compound value")
SUB_END
SEPARATOR
SUB_START("Sub-layers")
ITEM(26, "Count")
SEPARATOR
ITEM(27, "Cell size")
SEPARATOR
// ITEM(23, "Byte at position")
ITEM(24, "Integer at position")
ITEM(25, "Float at position")
SUB_END
SUB_END
SUB_START("Properties")
ITEM(22, "Iterated property")
SEPARATOR
ITEM(19, "Integer value")
ITEM(20, "Float value")
ITEM(21, "String value")
SUB_END
SUB_START("Tile cursor")
ITEM(28, "X")
ITEM(29, "Y")
ITEM(30, "Width")
ITEM(31, "Height")
SUB_END
SEPARATOR
#endif