Commit Graph

1038 Commits

Author SHA1 Message Date
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
Benjamin Popp
e532eb88a2 Fix Pointer edge-case
When a pointer run is replaced with a non-pointer run programatically, also clear that pointer from whatever destination the source was supposedly pointing to.
2020-05-03 22:47:47 -05:00
Benjamin Popp
1d0d030434 Improve BattleScript support 2020-05-03 22:12:45 -05:00
Benjamin Popp
b64bc2a71c Improve copy/paste for tables 2020-05-03 16:28:46 -05:00
Benjamin Popp
bf5d7ebcd0 Bugfix
make sure the newPalette length is as long as the renderPalette length in all cases.
2020-05-03 11:28:59 -05:00
Benjamin Popp
67158a4d7e Feature toggle: go ahead and show BSE in the code tool options 2020-05-02 15:49:27 -05:00
Benjamin Popp
0f2fdb77d5 Version Bump 2020-05-02 15:41:20 -05:00
Benjamin Popp
ba14809c1d Support Indexed4 PNGs 2020-05-02 15:40:09 -05:00
Benjamin Popp
d30b660c1a Add trainer payouts 2020-05-02 15:20:01 -05:00
Benjamin Popp
0e963da3de Load battle-scripts for move effects 2020-05-01 16:52:50 -05:00
Benjamin Popp
8aae2250f1 Version Bump 2020-05-01 08:16:32 -05:00
Benjamin Popp
93250ec061 Add backbone for battle-script support
battle scripts are almost identical to pokescripts in how they work. Each command has a single-byte code, followed by some number of arguments, each of which are 1 to 4 bytes.

Because of these similarities, we can reuse the same engine code and just load the engine from another file. So the code tool can have a 4th mode and basically just work for free. Runs for battle scripts can be as simple as XSE runs: just a single byte, don't bothe decoding, show decoding only in the tool.

Still to add: how to know which battle script commands are ending commands, or which ones point to other battle scripts, or which ones point to strings. How to view battle scripts in the editor? Etc.
2020-05-01 08:16:04 -05:00
Benjamin Popp
102c44ad6b Fix startup bug found my Fred40 2020-05-01 07:39:32 -05:00
Benjamin Popp
4bda80edaa Bugfix: allow typing 'ss' or 'oe' without munging
because "ss".StartsWith("ß") returns true
2020-04-29 09:13:55 -05:00
Benjamin Popp
d1e7ab5e12 Bugfix: match uncompressed sprite formats even if the palette hint is different. 2020-04-28 15:28:59 -05:00
Benjamin Popp
cc3b60c9c3 BugFix: don't parse bad addresses as '0', causing invalid XSE scripts starting at 0. 2020-04-28 15:28:26 -05:00
Benjamin Popp
077557a5b8 Scripting bugfixes
* special and special2 are different commands
* showpokepic should know it uses pokenames
* don't show tooltip during content curlies
2020-04-28 08:29:39 -05:00