Commit Graph

3252 Commits

Author SHA1 Message Date
haven1433
3e16f8ee20 add stream content recursively for scripts
This should make <auto> able to work even when there are scripts that point to scripts, as the content will appear after the last attached script.
2022-12-20 22:34:26 -06:00
haven1433
3b6a18072f improving auto support
for mart, movement, and if statements
2022-12-20 14:29:20 -06:00
haven1433
5371397475 first part of <auto> support 2022-12-18 10:26:02 -06:00
haven1433
6874768ffc additional macros
support for out-of-order macro commands
also allows for arguments to be applied multiple times
2022-12-15 08:06:26 -06:00
haven1433
76f1977fb8 fix python enums-with-spaces parsing
* don't include " within the string when getting the value
* use `TryParse` instead of `Write` for converting the enum value from a string, since this is an all-to-one edit, not a pull-from-stream edit.
2022-12-11 22:11:27 -06:00
haven1433
1a746876c6 uncompressed tileset fixes
* allow uct8
* make it read maxTiles correctly
2022-12-11 21:55:10 -06:00
haven1433
bc5b201341 fix diff 2022-12-11 21:31:47 -06:00
haven1433
e36262518a resize viewport when adding a table via anchor textbox 2022-12-11 21:31:18 -06:00
haven1433
6f7029f193 code to protect against UpdateNewRunFromPointerFormat returning a run with no length
This can happen if the run fails to generate due to a data conflict, such as in fr omega where a text run overwrites the first byte of a trainer team run
2022-12-11 21:01:06 -06:00
haven1433
4f10ab8ae7 highlight headers for selected column/row
Only works if selection is restricted to a single row.
2022-12-11 20:35:46 -06:00
haven1433
8a5e5c793c implement additional UBL features
universal branchlink can now handle selection/cut/paste in cases involving pointers and anchors
2022-12-09 08:40:49 -06:00
haven1433
30026eea8d first pass at universal-branch-link feature
this allows us to select/cut/paste thumb routines safely
2022-12-09 00:09:42 -06:00
haven1433
b53baace97 fix trainer back animation labels 2022-12-08 20:40:27 -06:00
haven1433
e86b23022b add IsSelected property for HexContent row/column headers
Rename `HeaderRow` to `ColumnHeaderRow` to make it clear that this class represents a row of ColumnHeaders.
Add RowHeader class to represent the header for a single row (text and selection tuple).
2022-12-08 20:21:22 -06:00
haven1433
baabd38ced make lzcompressed and lzgroupheader different colors 2022-12-08 20:15:27 -06:00
haven1433
eab4840cf8 fix race condition 2022-12-07 07:12:43 -06:00
haven1433
66f3bd9006 syntax highlighting for multiline comments 2022-12-06 21:40:45 -06:00
haven1433
0285808eb0 bufferPokemon species should allow pokemon names as input 2022-12-06 21:40:08 -06:00
haven1433
d32950c44e integration tests for script macros and script search 2022-12-06 21:39:34 -06:00
haven1433
f9848fa85c add callstd routines
They can be expanded to make more 'standard' routines to call in scripts
2022-12-06 21:39:03 -06:00
haven1433
7fc60549d6 fix transparency on goto shortcuts 2022-12-06 20:47:16 -06:00
haven1433
f96a3ada92 thumb macro fixes 2022-12-06 07:08:25 -06:00
haven1433
27da38da76 tile image shouldn't defer loading for small images 2022-12-04 23:28:01 -06:00
haven1433
517a2f94f1 make templates work with macros 2022-12-04 23:27:15 -06:00
haven1433
a185ebe207 track cursor when changing text during script compiles
for example, when adding {} to the end of a script, or when changing ?????? to an actual address
2022-12-04 23:04:57 -06:00
haven1433
7d8ae74a00 script bugfixes
add enum types for fanfare / bufferitem
allow script constants to contain underscores
allow autocomplete for constants that are the last argument
allow 'find usages -> scripts' to find usages from macros (and fix crash)
2022-12-04 22:38:04 -06:00
haven1433
4a5f351d6f final fixes for 0.5
givePokemon, use item constants
fix crashes/errors in hover-tip logic for trainerbattle commands
* tested that macros and array args still work right
2022-12-03 22:50:33 -06:00
haven1433
4a32ab74dd fix config issues 2022-12-03 21:36:26 -06:00
haven1433
6bb43d3d16 version bump 2022-12-03 21:25:17 -06:00
haven1433
88e90f980c fix completion tips for array-arg and 0-arg commands 2022-12-03 21:24:05 -06:00
haven1433
6d95fc4eb2 fix "" constants and ~n constants 2022-12-03 21:11:55 -06:00
haven1433
91c5a6df9e fix bad trainer team data crash
if the trainer team points to a table that isn't a trainer team (for example, pokemon level-up moves), then the destination can't be calculated. Have a disabled jump button rather than throwing an exception.
2022-12-03 21:02:45 -06:00
haven1433
380738609b draft of auto-complete for script tool 2022-12-03 19:09:31 -06:00
haven1433
bf1d30fe7d more macros
also clear constant cache when refreshing ViewPort
2022-12-02 23:28:56 -06:00
haven1433
d6d6a6c54f initial macro support 2022-12-02 22:41:39 -06:00
haven1433
830740ad34 script editor is now colored 2022-12-02 20:44:59 -06:00
haven1433
4e7148a5f6 thumb editor is now colored 2022-12-02 11:35:24 -06:00
haven1433
c0f3ade883 allow script lines to have multiple stream sections 2022-12-02 10:22:00 -06:00
haven1433
a44841290f first pass at updating script pointer logic
instead of the script line itself knowing that it points to something,
pull it down to the argument level, so that each argument knows
if it points to something.

This will allow a single script line to point to multiple things (like trainers pointing to multiple text or scripts)
2022-12-02 08:38:21 -06:00
haven1433
d7ce55e5b1 feature request pins
* allow copy message/error text
* add symbol files to help reference
2022-12-01 21:44:48 -06:00
haven1433
6a49359716 finish last big feature for 0.5 2022-12-01 21:31:22 -06:00
haven1433
d1c2b5cc62 don't trigger undo/redo for search-response text-formatting 2022-12-01 08:16:54 -06:00
haven1433
a48316c3f0 improve model table 2022-12-01 08:16:18 -06:00
haven1433
903d430e07 initial pass at last feature for 0.5 2022-12-01 08:15:48 -06:00
haven1433
5483c5e0e6 part one of r/s/e DE feature 2022-11-29 23:14:10 -06:00
haven1433
7efde66586 bugfix for R/S/E special case logic 2022-11-29 23:12:12 -06:00
haven1433
7856c696af fix leak 2022-11-29 07:39:35 -06:00
haven1433
5e5acdc931 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2022-11-29 07:32:42 -06:00
haven1433
f29f69c3f6 fix loading issue from liquid crystal
improve tooltips
2022-11-29 07:32:39 -06:00
TheDiamondMiner
bcea3d6768
Updated TOML based on Shiny's Changes (#102)
* Added shiny's changes.

* Fixed typo
2022-11-29 06:47:14 -06:00