We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0900dd5 commit c09ec75Copy full SHA for c09ec75
7 files changed
generator/csv/enums_easyrpg.csv
@@ -37,6 +37,7 @@ EventCommand,Code,Maniac_WritePicture,3026
37
EventCommand,Code,Maniac_AddMoveRoute,3027
38
EventCommand,Code,Maniac_EditTile,3028
39
EventCommand,Code,Maniac_ControlTextProcessing,3029
40
+EventCommand,Code,Maniac_Zoom,3032
41
EventPage,ManiacEventInfo,action,0
42
EventPage,ManiacEventInfo,touched,1
43
EventPage,ManiacEventInfo,collision,2
generator/csv/fields_easyrpg.csv
@@ -17,6 +17,7 @@ SavePicture,easyrpg_flip,f,Enum<EasyRpgFlip>,0xC8,0,0,1,How to flip the picture
17
SavePicture,easyrpg_blend_mode,f,Int32,0xC9,0,0,1,Blend mode to use for blit. See Bitmap::BlendMode
18
SavePicture,easyrpg_type,f,Enum<EasyRpgPictureType>,0xCA,0,0,1,Type of this picture
19
SavePicture,maniac_current_magnify_height,f,Double,0x0A,100.0,0,0,Current zoom level of picture (y direction).
20
+SavePicture,maniac_image_data,f,Vector<UInt8>,0x1C,,0,0,Deflate compressed image data of a picture modified with EditPicture command
21
SavePicture,maniac_finish_magnify_height,f,Int32,0x24,100,0,0,Final zoom level to animate picture to (y direction).
22
SaveEasyRpgWindow,texts,f,Array<SaveEasyRpgText>,0x01,,0,0,Texts to render
23
SaveEasyRpgWindow,width,f,Int32,0x02,0,0,0,Window width (px)
src/generated/lcf/lsd/chunks.h
@@ -348,6 +348,8 @@ namespace LSD_Reader {
348
easyrpg_type = 0xCA,
349
/** Current zoom level of picture (y direction). */
350
maniac_current_magnify_height = 0x0A,
351
+ /** Deflate compressed image data of a picture modified with EditPicture command */
352
+ maniac_image_data = 0x1C,
353
/** Final zoom level to animate picture to (y direction). */
354
maniac_finish_magnify_height = 0x24
355
};
src/generated/lcf/rpg/eventcommand.h
@@ -192,7 +192,8 @@ namespace rpg {
192
Maniac_WritePicture = 3026,
193
Maniac_AddMoveRoute = 3027,
194
Maniac_EditTile = 3028,
195
- Maniac_ControlTextProcessing = 3029
+ Maniac_ControlTextProcessing = 3029,
196
+ Maniac_Zoom = 3032
197
198
static constexpr auto kCodeTags = lcf::EnumTags{
199
Code::END, "END",
@@ -358,7 +359,8 @@ namespace rpg {
358
359
Code::Maniac_WritePicture, "Maniac_WritePicture",
360
Code::Maniac_AddMoveRoute, "Maniac_AddMoveRoute",
361
Code::Maniac_EditTile, "Maniac_EditTile",
- Code::Maniac_ControlTextProcessing, "Maniac_ControlTextProcessing"
362
+ Code::Maniac_ControlTextProcessing, "Maniac_ControlTextProcessing",
363
+ Code::Maniac_Zoom, "Maniac_Zoom"
364
365
366
int32_t code = 0;
src/generated/lcf/rpg/savepicture.h
@@ -16,6 +16,7 @@
16
#include <array>
#include <stdint.h>
#include <string>
+#include <vector>
#include "lcf/enum_tags.h"
#include "lcf/context.h"
#include <ostream>
@@ -161,6 +162,7 @@ namespace rpg {
161
162
int32_t easyrpg_blend_mode = 0;
163
int32_t easyrpg_type = 0;
164
double maniac_current_magnify_height = 100.0;
165
+ std::vector<uint8_t> maniac_image_data;
166
int32_t maniac_finish_magnify_height = 100;
167
168
inline std::ostream& operator<<(std::ostream& os, SavePicture::Effect code) {
@@ -237,6 +239,7 @@ namespace rpg {
237
239
&& l.easyrpg_blend_mode == r.easyrpg_blend_mode
238
240
&& l.easyrpg_type == r.easyrpg_type
241
&& l.maniac_current_magnify_height == r.maniac_current_magnify_height
242
+ && l.maniac_image_data == r.maniac_image_data
243
&& l.maniac_finish_magnify_height == r.maniac_finish_magnify_height;
244
}
245
src/generated/lsd_savepicture.cpp
@@ -314,6 +314,13 @@ static TypedField<rpg::SavePicture, double> static_maniac_current_magnify_height
314
0,
315
0
316
);
317
+static TypedField<rpg::SavePicture, std::vector<uint8_t>> static_maniac_image_data(
318
+ &rpg::SavePicture::maniac_image_data,
319
+ LSD_Reader::ChunkSavePicture::maniac_image_data,
320
+ "maniac_image_data",
321
+ 0,
322
+ 0
323
+);
324
static TypedField<rpg::SavePicture, int32_t> static_maniac_finish_magnify_height(
325
&rpg::SavePicture::maniac_finish_magnify_height,
326
LSD_Reader::ChunkSavePicture::maniac_finish_magnify_height,
@@ -367,6 +374,7 @@ Field<rpg::SavePicture> const* Struct<rpg::SavePicture>::fields[] = {
367
374
&static_easyrpg_blend_mode,
368
375
&static_easyrpg_type,
369
376
&static_maniac_current_magnify_height,
377
+ &static_maniac_image_data,
370
378
&static_maniac_finish_magnify_height,
371
379
NULL
372
380
src/generated/rpg_savepicture.cpp
@@ -67,6 +67,11 @@ std::ostream& operator<<(std::ostream& os, const SavePicture& obj) {
67
os << ", easyrpg_blend_mode="<< obj.easyrpg_blend_mode;
68
os << ", easyrpg_type="<< obj.easyrpg_type;
69
os << ", maniac_current_magnify_height="<< obj.maniac_current_magnify_height;
70
+ os << ", maniac_image_data=";
71
+ for (size_t i = 0; i < obj.maniac_image_data.size(); ++i) {
72
+ os << (i == 0 ? "[" : ", ") << obj.maniac_image_data[i];
73
+ }
74
+ os << "]";
75
os << ", maniac_finish_magnify_height="<< obj.maniac_finish_magnify_height;
76
os << "}";
77
return os;
0 commit comments