Commit Graph

1054 Commits

Author SHA1 Message Date
Benjamin Popp
f55991e85a Verify that table stream read/write is symmetric 2020-05-12 20:06:30 -05:00
Benjamin Popp
185035a93e Allow ending a comment with a # 2020-05-12 19:53:46 -05:00
Benjamin Popp
6895225183 Separate text elements with commas when copying 2020-05-12 19:53:35 -05:00
Benjamin Popp
8370d27191 Add support for deep copy
Most of this is boilerplate. The actual implementation change is in ArrayRunElementSegment.ToText. Converting a pointer element segment to text can now optionally collect the *content* of that pointer, instead of the pointer itself.

The second test is to fix a bug in plm AppendTo.
2020-05-12 16:26:32 -05:00
Benjamin Popp
1c3175ed3f Allow entering comments
this currently exists for paste-scripts. But it could eventually be extended to allow for comments stored in the TOML.
2020-05-12 13:25:18 -05:00
Benjamin Popp
781a2939be Allow creating pointers inline 2020-05-12 09:33:10 -05:00
Benjamin Popp
862cade012 add more enums for scripting 2020-05-12 08:23:47 -05:00
Benjamin Popp
9a76e2c295 Allow following existing pointers during paste-scripts 2020-05-12 08:23:09 -05:00
Benjamin Popp
187fdf4eb2 Make sure that NotifyPropertyChange is notifying on actual property names 2020-05-11 14:53:23 -05:00
Benjamin Popp
184e3308fc Fix 256-color tilemap image import bugs 2020-05-11 14:27:39 -05:00
Benjamin Popp
d48af19488 Add trainer animations pointer sources 2020-05-11 10:39:30 -05:00
Benjamin Popp
108d70fa81 Add tables for trainer animations
Trying to expand trainer sprites without including these tables freezes the game whenever a battle is started with a trainer that uses one of the new sprites.
2020-05-11 09:10:19 -05:00
Benjamin Popp
b67baf22af Initial attempt at 256-color image import
The image imports incorrectly, but nothing crashes.
2020-05-10 14:04:42 -05:00
Benjamin Popp
fb2e500b5b Support decoding Bgra32 images 2020-05-08 08:16:02 -05:00
Benjamin Popp
2548747a62 Improve filter discoverability 2020-05-07 21:36:03 -05:00
Benjamin Popp
b7c6fa01d6 Fix Find/Hex visibility issue 2020-05-07 21:35:51 -05:00
Benjamin Popp
19755a8620 Improve performance
SpriteImage should only refresh when the width/height/data change.
2020-05-07 20:49:27 -05:00
Benjamin Popp
90a06ac84a Make Undo/Redo work from a dex tab 2020-05-07 20:30:23 -05:00
Benjamin Popp
16264ec909 allow multiselect/move 2020-05-07 20:23:21 -05:00
Benjamin Popp
2aecd6ccfb Update selection during mouse interactions 2020-05-07 15:06:50 -05:00
Benjamin Popp
5b88752fb8 Add selection boilerplate code 2020-05-07 14:47:48 -05:00
Benjamin Popp
5374da126b Refactor: move logic to viewmodel 2020-05-07 12:52:33 -05:00
Benjamin Popp
0b793e9207 Bugfix: don't auto-switch tabs when working with array text 2020-05-07 11:28:06 -05:00
Benjamin Popp
9995e60fa4 Add filter-by-type criteria 2020-05-07 11:18:44 -05:00
Benjamin Popp
89bd28232a Bugfix: limit range during drag interactions
don't allow the user to drag before the first position or after the last position.
2020-05-07 11:01:56 -05:00
Benjamin Popp
8f1dd3f78f Add filter feature to dex tab 2020-05-07 10:33:31 -05:00
Benjamin Popp
9d50c4e1e0 Improve debugging 2020-05-07 10:29:48 -05:00
Benjamin Popp
fb9b89bab9 add bag sprite/palette and large berry sprites 2020-05-06 21:46:59 -05:00
Benjamin Popp
c87c6afca2 Fix table tool: streams should not have leading '+' on each line 2020-05-06 21:08:52 -05:00
Benjamin Popp
90dc561e2e Consider offset of child table 2020-05-06 20:54:56 -05:00
Benjamin Popp
8d17bde00f Improve dex warnings 2020-05-06 20:36:48 -05:00
Benjamin Popp
126506da81 Refactor 2020-05-06 12:27:41 -05:00
Benjamin Popp
b3b9f416b9 Animate movement 2020-05-06 12:26:10 -05:00
Benjamin Popp
8201dcf3cd Fix crash when moving pokemon from gen3 to gen1 2020-05-06 10:22:23 -05:00
Benjamin Popp
db045c460a fix dex reorder bug 2020-05-05 21:50:25 -05:00
Benjamin Popp
d6deae9fb2 Fix scrolling selection bug
When scrolled vertically, select as such
2020-05-05 21:50:16 -05:00
Benjamin Popp
5545e2eb70 Attempt to fix startup crash
The crash happened because the ModelTable was looking for the frontsprites / pokepalettes, which it couldn't find.
2020-05-05 21:22:20 -05:00
Benjamin Popp
dd0e2f89aa Make the first tile in a tileset a 'blank' tile
useful for transparency and layering effects, used for things like the first-person-view. Without this, the first tile gets plastered on top of the view after the screen clears, blocking the user from seeing anything.
2020-05-05 20:37:24 -05:00
Benjamin Popp
fef8f7648d Add battlebackground support 2020-05-05 20:08:52 -05:00
Benjamin Popp
3de725cd25 Improve Robustness 2020-05-05 15:46:58 -05:00
Benjamin Popp
acdbc1408f Update table tool on tab switch 2020-05-05 15:29:27 -05:00
Benjamin Popp
f91a199f04 Update pointers/anchors after dex reorder 2020-05-05 12:57:37 -05:00
Benjamin Popp
1cab8fb7cf Add DexOrder editing support
Also allow editing of the regional dex data
2020-05-05 12:38:14 -05:00
Benjamin Popp
57b540f158 Add DexReorderTab commands 2020-05-05 08:33:01 -05:00
Benjamin Popp
347430ddcb Render pokemon in dex order
This adds a prototype 'model' element for working with tables/table elements. If you're working with data in a known format, it provides an easier way to navigate through the data. Should be useful for scripts.
2020-05-05 08:12:34 -05:00
Benjamin Popp
07ec666214 load the publisher palette into the correct slot 2020-05-04 09:12:25 -05:00
Benjamin Popp
193f99710f Don't crash after saving 2020-05-04 09:12:05 -05:00
Benjamin Popp
223b303333 Add Plumbing for new Dex Reorder tab 2020-05-03 23:39:05 -05:00
Benjamin Popp
32507d3222 Add Redo check after Undo 2020-05-03 22:52:42 -05:00
Benjamin Popp
8dddf81813 Fix broken tests 2020-05-03 22:47:55 -05:00