Skip to content

Commit

Permalink
Added width and scale field for SavePicture
Browse files Browse the repository at this point in the history
Updated width and height chunk pointers

- current_scale_width set to 07 (same as magnify)
- finish_scale_width set to 21 (same as magnify)
- current_scale_height set to 0A
- finish_scale_height set to 24

Remove bad files

Added separate width and height values for pictures

Added:
- Support for .scale2 function from ManiacPatch 211010
- When using picture effects, height is set to width
- Set both width and height if using .scale function

Bugfix:
- Assertion failed when returning width/height of non-existent bitmap (now returns 0)
- Maniac Patch rotation now works
  • Loading branch information
ToolMan2k committed Jan 7, 2024
1 parent c94ff83 commit 1e5a90e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generator/csv/fields_easyrpg.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ SaveEventExecFrame,maniac_loop_info,f,Vector<Int32>,0x12,,0,0,"One group of (Cur
SavePicture,easyrpg_flip,f,Enum<EasyRpgFlip>,0xC8,0,0,1,How to flip the picture
SavePicture,easyrpg_blend_mode,f,Int32,0xC9,0,0,1,Blend mode to use for blit. See Bitmap::BlendMode
SavePicture,easyrpg_type,f,Enum<EasyRpgPictureType>,0xCA,0,0,1,Type of this picture
SavePicture,current_scale_width,f,Double,0x07,100.0,0,1,Current width level of picture.
SavePicture,current_scale_height,f,Double,0x0A,100.0,0,1,Current height level of picture.
SavePicture,finish_scale_width,f,Int32,0x21,100,0,1,Final width level to animate picture to.
SavePicture,finish_scale_height,f,Int32,0x24,100,0,1,Final height level to animate picture to.
SaveEasyRpgWindow,texts,f,Array<SaveEasyRpgText>,0x01,,0,0,Texts to render
SaveEasyRpgWindow,width,f,Int32,0x02,0,0,0,Window width (px)
SaveEasyRpgWindow,height,f,Int32,0x03,0,0,0,Window height (px)
Expand Down

0 comments on commit 1e5a90e

Please sign in to comment.