Commit Graph

4274 Commits

Author SHA1 Message Date
haven1433
ad7eed0b9b support rA = table[rB].field syntax in thumb code 2023-11-16 23:11:39 -06:00
haven1433
1b389b4dd0 Add 'pick unused trigger' button
also fix the '+' button for OW flags: it worked, but it didn't update the UI correctly. Now it does.
2023-11-16 20:05:32 -06:00
haven1433
0f5afcc249 hubol -> add pss icons 2023-11-16 06:37:49 -06:00
haven1433
1fb5a9296f support expanding fly locations 2023-11-15 16:33:34 -06:00
haven1433
acd42046ae update initial "open map" button logic 2023-11-15 07:43:54 -06:00
haven1433
e3d6714c13 version bump 2023-11-15 07:09:57 -06:00
haven1433
ae873de5bd improve command-show conditions
makes it more likely to show line completion for things like trainerbattle
2023-11-15 07:09:00 -06:00
haven1433
f0030f7436 change how maps are organized
maps.bankX.Map Name.Desigantion
example:
maps.bank3.Pallet Town.3-0

This system makes the branching factor more reasonable, letting you use the `maps` category without filtering if you want to.
2023-11-14 20:38:34 -06:00
haven1433
87a76f6119 disable tileset edtiing buttons (in blockset editor) if the format cannot be determined 2023-11-14 19:50:11 -06:00
haven1433
8ada3529e2 don't replace the BlockEditor every time a block or attribute is edited
keeping the same block editor keeps the view from disconnecting from the ViewModel every time the attributes get edited. It also lets the flip buttons remain visible when editing blocks
2023-11-14 19:35:52 -06:00
haven1433
0d1100e4d4 fix ldr =(a+b) style commands 2023-11-14 19:34:01 -06:00
haven1433
d2e62be145 hubol table fixes
Don't load data.pokedex.search.alpha, it doesn't seem to work correctly and gets in the way of shiny palettes.
Set specific length for move names table. It looks like 896, but there's only 894 animations.
2023-11-14 19:33:30 -06:00
haven1433
4d786ada59 Prefer empty list over null 2023-11-14 07:25:59 -06:00
haven1433
fad19e15f0 bugfixes
catch some nulls
2023-11-14 06:47:09 -06:00
haven1433
48b68d5cee support for more thumb operator macros
*=
^=
|=
&=
<<=
>>=
2023-11-10 23:39:21 -06:00
haven1433
e6f0aacfc6 allow getting info for multiple events in the same cell 2023-11-10 22:03:46 -06:00
haven1433
cef9259507 add missing movement permissions 2023-11-10 21:47:28 -06:00
haven1433
833822189e update Greedy text 2023-11-10 21:35:12 -06:00
haven1433
537b5c5428 new button in left rail for jumping to a map from a warp 2023-11-10 21:30:55 -06:00
haven1433
7b2d8d8584 don't "auto complete" when there's no actual change being made 2023-11-10 20:50:23 -06:00
haven1433
2fd4bb323d fixing parsing of potion arg 2023-11-10 20:16:56 -06:00
haven1433
3d9861c8bb fix tuple index evaluation 2023-11-10 20:09:35 -06:00
haven1433
01b60a07e2 fix possible crash when copying image
similar to the copytext crash that can happen
2023-11-10 20:08:00 -06:00
haven1433
33fd42779f guard: don't use trainer template without pokedex table 2023-11-10 19:57:28 -06:00
haven1433
6a22e5cf09 update run message for hubol 2023-11-05 21:21:44 -06:00
haven1433
a419697995 dex reorder assert should be a warning instead
When running the dex reorder and the data isn't in the expected format, warn the user. But this isn't an issue with HMA, it's an issue with the data. So it should be a warning, not an assert.
2023-11-05 21:02:58 -06:00
haven1433
d229c76d24 item combobox for item object template now supports text filtering 2023-11-05 21:02:04 -06:00
haven1433
99ed1f7479 improve object event template tooltip 2023-11-05 21:01:29 -06:00
haven1433
6cf8ff23f3 version bump 2023-11-05 00:49:04 -05:00
haven1433
aa03f98aa8 support for branch-link macros
You can now use branch-link like a function call. For example, instead of:
```arm
    mov r0, #1
    bl <thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram>
    mov r0, #2
    bl <thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram>
    mov r0, #3
    bl <thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram>
```
you can do
```arm
    thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram(1)
    thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram(2)
    thumb.new_menu_helpers.ScheduleBgCopyTilemapToVram(3)
```
2023-11-05 00:34:00 -05:00
haven1433
de6ba811f9 button for making a flag for an OW
When working with hidesprite `var` instead of hidesprite `num`, the var may reference an OW that uses a hide/show flag that's never actually touched in a script. So you can't make the flag in a script first and then copy it into the map editor, it makes sense to be able to create a flag for the OW directly from within the map editor.
2023-11-04 23:43:57 -05:00
haven1433
5066a3e05b clones should copy flags 2023-11-04 23:43:10 -05:00
haven1433
5b6bc19260 improve signpost tooltip 2023-11-04 23:27:06 -05:00
haven1433
2c0d1488c9 improve flyspot event UX
multiple users have gotten confused about why the flyspot event button is available sometimes, but not always. This change hopes to make that more clear.

Instead of the button only being there when it's useful, the button is always visible. However, the button is disabled (with a tooltip message) when it cannot be used.
2023-11-04 23:26:50 -05:00
haven1433
0b80729dc3 sort map quick goto alphabetically 2023-11-04 23:13:47 -05:00
haven1433
8e53ed4bed tweak focus animations
* error textbox gets a 1-pixel red border to make it stand out more
* focus animation goes 50% slower
* focus animation is 50% thicker
2023-11-04 23:04:29 -05:00
haven1433
0e1666da63 code formatting 2023-11-04 23:02:44 -05:00
haven1433
b95a09bb58 cloned OWSpriteListRun should be same length as original 2023-11-04 23:02:26 -05:00
haven1433
c92944a7d6 don't add FF to the middle of streams 2023-11-04 22:10:48 -05:00
haven1433
113634dca5 fix autocomplete 2023-11-04 21:56:34 -05:00
haven1433
0c366f74b6 length sanity check when looking for script command autocomplete 2023-11-04 21:53:40 -05:00
haven1433
5ac1b0789c make the "too many options" tooltip display faster 2023-11-04 21:53:07 -05:00
haven1433
12f349c287 be more efficient with transients 2023-11-04 21:46:04 -05:00
haven1433
3f2ac88db5 Improve SkipCount
now try to look for skipCount at every possible starting letter, storing the smallest one and returning that. This makes it correctly detect a small skipCount for search like "marine cave" on text like "maps.24-102 (Marine Cave)"
2023-11-04 15:36:04 -05:00
haven1433
a6cfe84a59 guard calls to textbox.PointToScreen 2023-11-04 14:51:48 -05:00
haven1433
8c918954ca variable insertion feature broke
when we added `scriptvariablealiases` to all the variable definitions
2023-11-04 14:44:45 -05:00
haven1433
9ff872380f allow goto map when eventModel is null
When going to just "a map" instead of "an event within a map", Goto's eventModel is null. Support this.
2023-11-04 14:41:41 -05:00
ShinyTillDawn
77dd163d73
Reimported the changes from Pull Req #179 (#199) 2023-11-04 10:42:31 -05:00
haven1433
be47a4655c paste menu option should work for image editor
assume they're pasting image content if they use that. They can copy/paste from the palette using the palette's right-click menu.
2023-11-04 07:20:23 -05:00
haven1433
34e9d9c786 exclude macros when checking for the legendary event template
wild.battle macro
2023-11-04 07:09:40 -05:00