Commit Graph

3770 Commits

Author SHA1 Message Date
haven1433
9ab243ad8d goto menu hover: improve scaling logic for large maps 2023-07-09 22:13:23 -05:00
haven1433
47a4bae468 reset zoom should reset script editor zoom 2023-07-09 21:56:53 -05:00
haven1433
fc9c5c49b8 set explicit size for Text Editor Canvas 2023-07-09 21:49:03 -05:00
haven1433
2f633bb3ab fix typo 2023-07-09 21:16:37 -05:00
haven1433
d7ae9a842f fix widths to make import/export buttons not cut off 2023-07-09 21:16:31 -05:00
haven1433
4b922639a8 catch possible edge case during fork/repoint 2023-07-09 21:16:13 -05:00
haven1433
6288f20be0 fix crash when events have scripts outside the size of the ROM 2023-07-09 20:48:32 -05:00
haven1433
1fc1566d4c add comment 2023-07-09 20:23:47 -05:00
haven1433
6bbd112f3e update broken tests 2023-07-08 22:35:09 -05:00
haven1433
cce2153c2b fix broken macro-arg-order conversion 2023-07-08 22:22:01 -05:00
haven1433
556eb3627c fix possible crash when working at the end of a script 2023-07-08 22:05:45 -05:00
haven1433
4d478a058e fix broken tests 2023-07-08 22:05:26 -05:00
haven1433
72d0693a66 skip zero-length elements when deserializing 2023-07-08 21:35:55 -05:00
haven1433
46f57a0a97 add error underlines for scripts 2023-07-08 00:05:34 -05:00
haven1433
daea25bd4e make it possible to add comments to list elements
right now the comments are only shown by the script editor. But they could be added to other things too, like maybe wild pokemon rates?
2023-07-07 08:58:16 -05:00
haven1433
20fc0e61b1 collection should be readonly 2023-07-05 22:33:23 -05:00
haven1433
9517db9041 move map names, add quick goto
2 usability testers and one bystander giving a tutorial all thought that the "map names" in the toolbar would goto a map, rather than changing the current map's name. So let's just make it work that way.

* Add a new "quick goto" option that lets you jump to another map based on the map names.
* Move the map name selector to the header panel
2023-07-05 22:22:22 -05:00
haven1433
85dd1a2634 Move Map Image Export to header panel
Also allow exporting just this map or all connected maps, with or without objects/events
2023-07-05 21:48:02 -05:00
haven1433
39b79e9b43 map shortcut goes to most recent map, not beginner town map 2023-07-03 22:52:17 -05:00
haven1433
6880808551 add <auto> automatically after a space
turn this feature off if the user hits backspace after the insertion. Turn it back on if the user types auto themselves.
2023-07-02 14:42:07 -05:00
haven1433
c678ec7f7b goto source right-click option for scripts (prototype) 2023-07-01 22:42:55 -05:00
haven1433
f14b44eb5e decompiled scripts now have sections appearing in address order
instead of labeling sections based on what address calls them, label section based on what order they appear in memory.
2023-07-01 21:40:59 -05:00
haven1433
97e9233010 add some extra empty height to the code tool
it was annoying when I was writing to the bottom of a long script, that my code kept wanting to run off the bottom and it made it hard to see. Add some extra padding to the bottom so it's easier to keep the current working area in view.
2023-07-01 08:14:28 -05:00
haven1433
d5d108a532 version bump 2023-06-30 19:14:50 -05:00
haven1433
b2e3bd1778 skip hover tips if map editor isn't complete yet 2023-06-30 08:17:53 -05:00
haven1433
18d7bacbe5 improve auto-scroll for code tool
don't auto-scroll in response to gaining keyboard focus from the ViewModel
2023-06-30 08:06:18 -05:00
haven1433
419f83a6fb allow 2-argument sub in thumb
both `sub rd, #` and `sub rd, rn` are now supported
2023-06-30 08:05:33 -05:00
haven1433
e095bace1e beef up insert missing closers
make the caret adjust correctly
insert a blank line between {}
move {} to newlines
2023-06-30 08:04:14 -05:00
haven1433
6fc0f568dc Basic implementation for flag/vars show&tell
Currently hidden
2023-06-29 19:31:08 -05:00
haven1433
8e9828734e show blockset image previews in dropdown 2023-06-28 19:57:05 -05:00
haven1433
b49ae9d01c fix zoom bug with map image export 2023-06-28 06:53:24 -05:00
haven1433
8bd2a814a4 Context menu to copy all connected maps as an image 2023-06-27 22:55:45 -05:00
haven1433
1273deb985 fix broken test 2023-06-27 19:46:11 -05:00
haven1433
6a1816ce8f Add shared layouts info to map header panel
This makes it easy to see when a map's layout is shared by multiple maps, and lets you quickly jump from one to the next.
2023-06-27 19:43:03 -05:00
haven1433
3e46926d68 add JumpMapInfo type
also update `GetAllMaps` so that the MapModels it returns know what group/map they are associated with.
2023-06-27 19:38:55 -05:00
haven1433
829b747fdc Allow MapInfo to be a lightweight ViewModel 2023-06-27 19:21:16 -05:00
haven1433
9b965c1830 Show events in map hover previews in goto menu
Use the new `GetMapPreview` implementation to make it shorter
2023-06-27 18:26:05 -05:00
haven1433
9438347232 Add map usages to map names
Required adding a new `GetMapPreview` method that's capable of getting a map preview that isn't centered around an event.
2023-06-27 18:25:33 -05:00
haven1433
71437c0236 don't enable single-table-mode if the run starts after the selection 2023-06-27 17:46:40 -05:00
haven1433
eee7d2d236 limit HexContent tooltip horizontal range 2023-06-27 17:37:20 -05:00
haven1433
aeca3e56b3 save glitch
when trying to change a sprite's format:
don't grab a change token if you don't need one
2023-06-27 17:29:24 -05:00
haven1433
9081d68331 fix Offset Render palette
choose a palette based on the pointer to the sprite run, not just the sprite run itself
2023-06-27 17:28:29 -05:00
haven1433
9fc7c18b0f fix name decapitalization bugs
* plurals
* letters following `é` or `'`
2023-06-27 17:27:41 -05:00
haven1433
092224387c fix table tool visibility bug
enable/disable visibility of streams based on their parent splitter
2023-06-27 17:26:43 -05:00
haven1433
3d78a7c45c version bump 2023-06-26 23:24:24 -05:00
haven1433
edd2ee1c36 fix broken tests 2023-06-26 23:22:36 -05:00
haven1433
2379814133 improve repoint logic
clear formats for everything, don't give up when you hit a constant
2023-06-26 23:08:58 -05:00
haven1433
348e1e5b96 don't combine scripts if an anchor has multiple pointers 2023-06-26 23:08:27 -05:00
haven1433
59fc5fc648 add multichoicegrid alias for multichoice3 2023-06-26 22:23:14 -05:00
haven1433
cc383f59a3 allow decompiled scripts to use anchor names 2023-06-26 22:22:21 -05:00