Commit Graph

3645 Commits

Author SHA1 Message Date
haven1433
2db6f890e9 update fadescreen 2023-08-02 23:10:35 -05:00
haven1433
a6cb6900ec TryParseHex should be able to work with 0x prefix 2023-08-02 23:10:18 -05:00
haven1433
3f01c09a65 event script reference from help menu 2023-08-02 23:09:59 -05:00
haven1433
9ef4b256f0 underscores are valid mid-token characters 2023-08-02 22:09:14 -05:00
haven1433
730d06509b spartan mode (first pass)
Some 'nice-to-have' features make the application very slow. Add a 'spartan mode' that turns off these optional features to make the app run faster.
* Multiple tables in the table tool
* "Show Uses" map option within table tool
* long-line text warning in script editor
* <auto> insertion in script editor
* right-click options within scripts
* hover tips on events within map editor
* hover previews for blocksets
* image preview behind data for images
* image editor pixel-display during palette hover
* reduce the number of neighbor maps shown in the map editor
2023-08-02 22:04:38 -05:00
haven1433
b6cfcb3577 hide filler arguments 2023-07-31 23:03:57 -05:00
haven1433
81143627a7 fix bug with displaying errors 2023-07-31 22:57:46 -05:00
haven1433
0914efdb62 improve matching algorithm
instead of just preferring to match the lowest possible ID that counts as a partial match, add some extra criteria to make it act closer to how people expect.
* prefer entries where no letters are skipped
* prefer entries where the start of the partial matches the start of the full
2023-07-31 22:35:22 -05:00
haven1433
55a0ecf631 fix skip count
start counting from the last possible match of the first letter, causes a lower skip count that way
2023-07-31 22:07:16 -05:00
haven1433
2c25e69aa9 improve python tool: egg moves table
the egg moves are stored in a special weird format. Add model-objects that can read that format and write it back in python.
2023-07-31 21:41:44 -05:00
haven1433
23a891a5eb improve documentation for msgbox.npc 2023-07-31 20:52:32 -05:00
haven1433
53fb6b96fd clear errors when Editor Content changes 2023-07-31 20:51:42 -05:00
haven1433
1b34e440ab performance improvement: cache data change
Only notify property HasDataChange if the value actually changed. Use a cache to store the old value. Calculating HasDataChange is fast, but updating from HasDataChange notifications can be slow.
2023-07-31 20:50:46 -05:00
haven1433
788d343357 text warnings get orange underline, not red underline (warning, not error) 2023-07-31 20:48:08 -05:00
haven1433
cdae4922c9 script right-click ->goto source for addresses 2023-07-31 20:47:35 -05:00
haven1433
a958748824 script improvements: double-click highlight and tips
double-click on a command should highlight the entire command, even if it's a macro with `.`s.
When selecting a command, show the help tip for it.
2023-07-31 20:40:52 -05:00
haven1433
6bdc9e801c fixes from merge 2023-07-20 07:04:47 -05:00
haven1433
9930f21f9e Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2023-07-20 07:00:07 -05:00
ShinyTillDawn
47e54ec278
Professor Birch's Introduction Speech Dialogues (Attempt 2) (#173)
* Brought in the changes from PR #170.

I'll need to get the anchor refs for RS & FRLG.

I also bundled the \`tse` feature request for this file.

* Fixed Emerald's addresses.

Previously, they were addresses of the strings themselves instead of anchor references.

* Nested "speeches" under "professor."

* Making progress on finding FRLG anchor refs.

There are a few more I still need to add.

* Finished the Anchor refs for FRLG.

The Ruby/Sapphire Anchor refs are being started.

* Finished the Anchor refs for Ruby & Sapphire.

I tested them, and all of the anchors show up in the Generation III games.
2023-07-20 06:49:20 -05:00
ShinyTillDawn
34ea580f12
Made "buffer1" through "buffer3" valid arguments. (#176)
"buffer1" is associated with 0 for a parameter in a command like "buffernumber." That misalignment by 1 can cause some confusion, so this change will allow the word "buffer1" to be used instead of 0 for such commands to line up with the \\ 02 text macro ([buffer1]) that would be used afterwards.
2023-07-20 06:45:56 -05:00
ShinyTillDawn
37cd5c033b
Line 740: Sprite was move → Sprite was moved (#174) 2023-07-20 06:44:27 -05:00
agsmgmaster64
56fc56265f
tweaked some battle script commands (#175)
tweaked some battle script commands to allow reading pointers for those that support it
2023-07-20 06:43:52 -05:00
haven1433
65b51641c5 Add specials to documentation. 2023-07-19 22:33:26 -05:00
haven1433
e8bae98ea3 only consider a script pointer as invalid if it points to something other than XSERun / NoInfoRun 2023-07-19 21:40:05 -05:00
haven1433
c76acd2536 improve comments 2023-07-19 21:06:04 -05:00
haven1433
62a4e493b2 Text improvements
* Show error underline in both script editor and npc textbox in map editor.
* Let model calculate invalid length, so we can underscore the entire error length.
* Load error when first showing a code body, instead of waiting for an edit
2023-07-14 19:59:12 -05:00
haven1433
4a5f479be6 add missing script 2023-07-14 07:49:15 -05:00
haven1433
76aafb3f48 Update PSS patch 2023-07-14 06:44:50 -05:00
haven1433
435a36a535 Add human-readable documentation for scripts 2023-07-14 06:44:03 -05:00
haven1433
382946defc version bump 2023-07-12 22:05:09 -05:00
haven1433
b270bff9cd fix crash when deleting last object event in a map 2023-07-12 22:02:35 -05:00
haven1433
24525ad085 fix map image calculation 2023-07-12 21:48:45 -05:00
haven1433
51cf981efa turn on beta flag feature for beta tests 2023-07-12 21:33:01 -05:00
haven1433
c7485c5275 bugfixes from testing
* pressing escape should close the script tip
* fix automatic inclusion of <auto> behavior
* Fix possible crash when looking for closing } when there isn't one
* Only update TextEditor layers if they've changed (performance)
* creating a new event script should include lock/faceplayer/release
* adjust focus when switching tabs (close open tips)
* only try to access list coments if the list isn't null
2023-07-12 21:32:44 -05:00
haven1433
1c8bf4b0c0 script editor should report long text lines 2023-07-10 22:34:36 -05:00
haven1433
addc0fae41 add horizontal scroll bar for text editors 2023-07-09 23:34:20 -05:00
haven1433
fa1bcb2d66 Don't match maps for goto if too many characters are skipped 2023-07-09 22:15:53 -05:00
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