haven1433
dcdb3189d2
update script reference examples
2023-10-01 16:31:52 -05:00
haven1433
8d29a70e64
fix export all table bugs
2023-10-01 16:06:48 -05:00
haven1433
4771532e09
add warp.center macro
2023-10-01 14:17:47 -05:00
haven1433
5dc5706c85
re-add warp changes
...
lost during merging
2023-10-01 14:12:59 -05:00
PhoenixBound
2dd69848d1
Document a few script commands ( #196 )
...
* Document a few script commands
* Undo change to initclock parameters
Variable numbers will display in hex even without a |h, so this change
was misguided.
---------
Co-authored-by: haven1433 <haven1433@gmail.com>
2023-10-01 14:09:20 -05:00
haven1433
6366403e7c
fix broken tests
2023-10-01 13:58:06 -05:00
haven1433
15fe37edf5
allow 'escape' key to close autocomplete for TextEditor
2023-10-01 13:55:13 -05:00
haven1433
53b4ed35e0
allow scripts to see scripts before they start
2023-10-01 12:50:07 -05:00
haven1433
c12d15bb04
scripts should continue formatting after an early end
2023-10-01 12:12:46 -05:00
haven1433
5dc7eaecda
refactor
...
ScriptParser.cs is getting too long
* move ScriptLine and related types to their own file
* move ScriptArg and related types to their own file
2023-10-01 12:12:10 -05:00
haven1433
abc23f6ea2
wild pokemon rate comments for pokemon in the grass
2023-10-01 09:52:39 -05:00
haven1433
602951969b
python tool splitter thickness
2023-10-01 09:52:25 -05:00
haven1433
d608edfebc
removing a connection will remove an opposite connection if one is found
...
will not remove self-connections
2023-10-01 09:31:34 -05:00
haven1433
3473abc654
fix broken tests
2023-10-01 08:58:30 -05:00
haven1433
e82722e411
replace rematch scripts with simpler script via a button
2023-10-01 08:58:23 -05:00
haven1433
f5d3b87403
reminder for possible future feature
2023-09-30 22:46:04 -05:00
haven1433
0675a16950
draft of the rematch trainer map content
...
also add autocomplete for trainer teams in the map editor
2023-09-30 22:45:47 -05:00
haven1433
67456caa17
include a 'no content' content for map editor
...
when looking at a script that _doesn't_ have content in the side panel, show _something_ there so the user doesn't think there's a bug.
2023-09-30 19:13:14 -05:00
haven1433
8a7cd6746e
add puzzle tables for fortree / trickhouse
...
R/S addresses later if anyone cares
2023-09-30 18:53:02 -05:00
haven1433
93d2744e24
deep copy works for pointers as well as tables
...
deep copy is now a 'depth' number instead of a true/false. Should help with possible recursion issues.
2023-09-30 18:40:55 -05:00
haven1433
217c471a98
prevent crash if blockmap can't be found
2023-09-30 17:46:35 -05:00
haven1433
8b46613dae
improve map warp script commands
2023-09-30 17:42:27 -05:00
haven1433
55b3cfbbd4
allow value offsets for non-enum in scripts
2023-09-30 17:42:07 -05:00
haven1433
c50c42cdcd
split tokens on tabs
2023-09-30 16:53:22 -05:00
haven1433
b37acb160c
add autocomplete to script editor
...
* Autocomplete Overlay supports TextEditor
* Add Overlay to CodyBody's ControlTemplate
* Don't show help tip when autocomplete is showing
* 3 categories of autocomplete:
-> streams
-> arguments
-> commands
2023-09-30 16:49:12 -05:00
haven1433
3161bac7e4
better error when names contain quotes
2023-09-30 12:58:46 -05:00
haven1433
39d3c339dc
watch for errors in script templates
...
fix error in tutor template
2023-09-30 12:47:17 -05:00
haven1433
d45bf408f1
guard against crash in content help for scripts
2023-09-30 12:32:31 -05:00
haven1433
837f31877a
fix goto near tables
...
if we try to goto data shortly after a table, we need to go directly to the data first and _then_ scroll up. Otherwise we may snap to the table during single-table-focus
2023-09-30 12:24:05 -05:00
haven1433
23b2d24a4d
don't get the palette if the palette pointer is null
2023-09-30 12:04:09 -05:00
haven1433
f3634b833c
give 'goto source' priority over 'goto address'
2023-09-30 11:57:43 -05:00
haven1433
8ea23812de
improve tuple enum interactions
2023-09-30 11:57:25 -05:00
haven1433
fe0df3d690
make tooltips not fail if front sprites are not found
2023-09-30 11:03:39 -05:00
haven1433
5f3a7a07ce
repointing layout should refresh header panel
...
and re-check for shared layouts
2023-09-30 10:28:20 -05:00
haven1433
0986f7ae4a
update backup x/y when updating backup content for size change (blockmaps)
2023-09-30 10:27:43 -05:00
haven1433
99ed4651da
don't crash when drawing out of bounds (down/right)
2023-09-30 10:26:34 -05:00
haven1433
28db8cdc56
use TransientModelDelta for removing/adding the dex info table
...
When adjusting the pokedex, all the same text is expected to be in the pokedex table, but in a different order. So the table gets cleared, the data gets changed, and the data gets re-added. This is fine, but it means that when the pointer is cleared, each text run gets removed since it (temporarily) has nothing pointing to it. This is a waste, since we expect to add pointers back by the end of the operation.
Introduce a new TransientModelDelta that is a type of NoDataChangeDeltaModel. This new type acts exactly like the NoDataChangeDeltaModel, except that it additionally signals to the model (if it cares) that the model doesn't need to worry about removing zero-pointer runs.
2023-09-20 08:06:56 -05:00
haven1433
e351fc20f7
disable syntax highlighting for Text Editors that just show normal text
...
We use Text Editor because we want to squiggle-underline text that's too wide. We don't need syntax highlighting.
2023-09-20 06:51:25 -05:00
haven1433
178799ddb0
don't crash when hovering over hidden item in R/S (no item sprites)
2023-09-20 06:49:06 -05:00
haven1433
9ee2fae0b5
decap é, not \e
2023-09-20 06:48:48 -05:00
haven1433
f72182c25a
fix broken tests
...
recent test changes broke other tests. The behavior is still correct, just needed to update the tests.
2023-09-20 06:48:29 -05:00
haven1433
7779df402e
Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance
2023-09-09 22:37:46 -05:00
ShinyTillDawn
7007e016cc
Added an eor alias. ( #194 )
...
HMA now accepts `eor r1, r0, r1` as a valid alternative of `eor r1, r0`.
2023-09-09 22:37:30 -05:00
haven1433
8826cd8f64
Improve goto script
...
* If the current script is already open in a tab, go to that tab
* If the main tab is already looking at a different script, open a new tab
* Otherwise, open the script in the main tab
2023-09-08 07:36:26 -05:00
haven1433
bc66dbf733
fix broken tests
2023-09-08 06:52:14 -05:00
haven1433
81f988ede8
fixing broken tests
2023-09-07 22:00:51 -05:00
haven1433
4818c41b60
don't search for docs for short files
2023-09-07 21:45:34 -05:00
haven1433
5a4e49d0fb
simplify message in script help -> command usage
2023-09-07 21:15:02 -05:00
haven1433
3b0afa0f64
HMA script for level-up moves based on hold items
2023-09-07 20:58:31 -05:00
haven1433
e04da2f899
documentation improvements
...
pull examples from actual code, semi-randomly. This takes a lot longer, but produces much better documentation, including realistic values and streams.
2023-09-07 20:58:00 -05:00