Commit Graph

1930 Commits

Author SHA1 Message Date
Benjamin Popp
3ed6d9f9c7 Don't crash when writing a ! end token into the anchor editor 2021-05-02 21:43:47 -05:00
Benjamin Popp
01d401193d Don't crash when a tilemap has nothing pointing to it 2021-05-02 21:22:12 -05:00
Benjamin Popp
15670018ab move backgrounds should use palette 2 2021-05-02 21:21:47 -05:00
Benjamin Popp
ea0a874f80 Make the newgame pc item table expandable 2021-05-01 23:10:48 -05:00
Benjamin Popp
8615037f92 Name the bag pockets 2021-05-01 23:10:32 -05:00
Benjamin Popp
79120cbe9a Track both view start and selection start during back/forward movement
If the selection is on screen, restore both the scroll and the selection.
If the selection is not onscreen, restore the scroll but not the selection.
2021-05-01 22:17:14 -05:00
Benjamin Popp
3ef31914a9 Fix selection confusion when expanding/repointing tables 2021-05-01 20:57:12 -05:00
Benjamin Popp
e0b0233e8c Add new util method: ToolTray.SelectedTool.set 2021-05-01 20:55:44 -05:00
Benjamin Popp
5a3fd39488 Version Bump 2021-05-01 20:31:24 -05:00
Benjamin Popp
313919ef98 Improve toml upgrade
* Don't load an offset pointers from metadata if an existing offset pointer already exists at the same address. This means that incoming offsets will not blap over existing offsets, which matters for things like roms with move expansion that change the offset relationships.
* Include code to handle special cases of formats that should not be overwritten. The only existing example is that runs with 2-byte effects and 1-byte pp should not be overwritten, because this format can only currently be created by the move expansion utility.
2021-05-01 20:29:15 -05:00
Benjamin Popp
c5ef5658f6 Allow calculated segments to be serialized 2021-05-01 20:26:39 -05:00
Benjamin Popp
e354ba2fc7 Only use the pixelCount if it's valid
This fixes a crash in Unbound
2021-05-01 19:47:54 -05:00
Benjamin Popp
0f89168e99 Add table for overworld text color
overworld expansion utility may transform this table to make it easier to edit, since it's only read by a single piece of code.
2021-04-29 21:35:04 -05:00
Benjamin Popp
c68f8019b5 Add support for BPRF0 (by Kbueno) 2021-04-29 21:28:26 -05:00
Benjamin Popp
e378359163 Cleanup 2021-04-29 14:08:07 -05:00
Benjamin Popp
d15f313903 LevelUpMoveSorter: cleanup and documentation 2021-04-29 12:38:22 -05:00
Benjamin Popp
7552eb6cd3 Add support for credits pokemon
Note that these use the same palettes as the source pokemon
2021-04-28 22:35:22 -05:00
Benjamin Popp
a08b17ebab Require that level-move pairs be 2 bytes in order to use the move expansion util 2021-04-28 21:56:15 -05:00
Benjamin Popp
1e3a8f37fb Add move backgrounds for FR/LG
Not all of them are the same size. Needed to add custom anchors for the ones that are a weird size. Had to relax the format checking to allow tilemaps to not be red pointers even if the height is wrong.
2021-04-28 21:52:24 -05:00
Benjamin Popp
6bacb02c85 Update the CanRun method for move expansion 2021-04-28 21:09:19 -05:00
Benjamin Popp
0995bb9068 Fixing script parsing bugs
* Don't crash if a line contains nothing but whitespace
* Decode variable-arg commands correctly
* Decode animation scripts as animation scripts
2021-04-28 20:53:13 -05:00
Benjamin Popp
3bec8d9a5f Update Headers after table text change 2021-04-22 21:05:33 -05:00
Benjamin Popp
93f492e387 Add Steven's multi-battle team for Emerald 2021-04-22 21:04:41 -05:00
Benjamin Popp
370b27eb0c In Single Table Mode, don't let the user select before the start 2021-04-22 21:04:22 -05:00
Benjamin Popp
e927bd5c1c Improve table filter 2021-04-21 22:07:37 -05:00
Benjamin Popp
3392b96b6a Refresh CalculatedValue when copying a CalculatedSegment ViewModel. 2021-04-21 21:58:21 -05:00
Benjamin Popp
813002a3ff Don't show headers for zero-width table segments 2021-04-21 21:55:15 -05:00
Benjamin Popp
022bdf9e61 Fix Effect width in move expansion util 2021-04-21 21:41:09 -05:00
Benjamin Popp
140bf6d591 fix hot load
When doing a hot-reload after a file is changed by another program, clear _all_ the metadata before reloading.
2021-04-21 21:38:38 -05:00
Benjamin Popp
ff869c8584 Fix crash
When grabbing a source, make sure the source is actually in the array
2021-04-21 21:38:04 -05:00
Benjamin Popp
1aaea0fe07 add comments 2021-04-20 21:35:30 -05:00
Benjamin Popp
6e7daf5fdb First pass on making move names 16 characters instead of 12 characters
Mostly works. But the summary screen (and maybe other places) ends up showing the names offset in a strange way.
2021-04-19 10:54:37 -05:00
Benjamin Popp
19b943d25b Allow for expanding move effects
* Expanding an array based on a list now expands that list
* If exactly one table is the same length as a list, enums using that list can jump to that table as the source of the enum.
2021-04-18 21:46:03 -05:00
Benjamin Popp
f058b79992 Make the model change when a token contains a list change 2021-04-18 13:20:59 -05:00
Benjamin Popp
831c544357 Start work to make list-arrays extendable 2021-04-18 01:12:12 -05:00
Benjamin Popp
02e5e69a37 Screen Grab improvements
* Don't forget to cancel screen grab mode after the screen grab is complete. Likewise, close the popup if it was previously open.
* Include a button to initiate a screen-grab from within the color editor, since the right-click menu item is hard to discover.
2021-04-17 22:48:35 -05:00
Benjamin Popp
091ee60237 Fix crash
When cutting tileset data, it can crash if you try to render the tilemap
2021-04-17 21:56:35 -05:00
Benjamin Popp
9feb55ad9e Defensive code to prevent a crash
if the code contains multiple labels in a row (which is legal, but weird), the old version of this method would crash.
2021-04-17 21:41:23 -05:00
Benjamin Popp
2a5842d0fe When expanding a table, update the scroll 2021-04-17 21:33:39 -05:00
Benjamin Popp
91d16191de Fix bug with single-table-mode scrolling
Do allow scrolling up to a partially full line.
Don't show data from before the table.
2021-04-17 21:02:37 -05:00
Benjamin Popp
da9ef18c0d trainer data readability improvement
Include IVs= when serializing
Parse correctly if IVs= is included
2021-04-16 22:16:44 -05:00
Benjamin Popp
5234671d36 New utility methods for writing values from tables 2021-04-16 22:15:38 -05:00
Benjamin Popp
f9d651feda Improve filtering for calculated fields and for bit lists 2021-04-16 21:31:18 -05:00
Benjamin Popp
6aac16a1e6 Add UI for calculated fields and support more than 2 operands
There's a multiply by 4 factor that I need to include as well. The UI is basic but functional.
Change the table reference to include the catch-all element as an actual element, so that you can easily change the catch-all money rate
2021-04-16 21:26:35 -05:00
Benjamin Popp
8449082a73 UI Bug fix: no headers for out-of-range data 2021-04-16 16:46:42 -05:00
Benjamin Popp
c460dd3523 UI Improvement: jump buttons for pointers 2021-04-16 16:45:50 -05:00
Benjamin Popp
7bf6d43cd5 Add first pass for CalculatedElementViewModel
The ViewModel is supposed to show up in the table tool. So it has to share:
* The calculated value
* a jumping point to get to the operands
* the operator
* a bool to describe whether or not we need the operator and second operand
2021-04-16 16:45:38 -05:00
Benjamin Popp
a1dcba7cac code cleanup 2021-04-15 23:07:02 -05:00
Benjamin Popp
c23d4546b5 Add support for value-from-matched-table and value-from-pointer-table 2021-04-15 23:01:00 -05:00
Benjamin Popp
5f10116a83 Initial pass for Calculated Segments
ArrayRunCalculatedSegment has no width, but provides a calculated value as part of the table. The current implementation only includes the most basic case: a value is calculated as a binary operation of two other values within the same element of the table.
2021-04-15 21:51:45 -05:00