Commit Graph

67 Commits

Author SHA1 Message Date
haven1433
a397cf1c71 "add" button for new scripts 2023-06-19 22:00:16 -05:00
haven1433
8d222749bb fix max-map-size logic 2023-06-17 15:21:03 -05:00
haven1433
dc99d03bb2 bug fixes (reported by Shiny)
* don't show trainer content if the TrainerType is set to 0
* don't crash if trying to complete an enum-cell edit on non-table data
2023-06-14 20:41:28 -05:00
haven1433
21052ef96c bugfixing
* don't have layer/terrain/encounter options twice
* don't crash when finding trainer elevation if map data is null
* update FacingOptions viewmodel when MoveType gets set (important for event template)
* use the primary map during ctrl+drag interactions, rather than the map under the cursor.
* make FilteringComboOptions handle bad selected index better (no crashes)
2023-05-11 20:47:07 -05:00
haven1433
12edc95931 finishing legendary event template
Legendary pokemon events each need 2 flags: 1 for "recent battle" and 1 for "capture". The legend template also includes an info textbox to show you how to reset the legendary battle if you want to. This is often done in a transition script, but you can do it anywhere. By default, HMA won't reset the battle for you: once you defeat the pokemon or run away, it'll stay gone until you reset it.
2023-05-07 10:15:11 -05:00
haven1433
e08e1faab4 bugfixes and legendary template progress 2023-05-07 01:05:01 -05:00
haven1433
6f03108ddb Show legendary content in event panel 2023-05-06 23:53:22 -05:00
haven1433
30d2c8629f select event after goto from table 2023-05-06 23:50:31 -05:00
haven1433
299a7f3eb2 table tool can now open map editor based on enums and overworld sprites 2023-05-06 21:14:14 -05:00
haven1433
3c6930b527 small fixes
* fadescreen should use screenfades list
* map object graphics should use overworld sprites enum (allows finding events from the overworld sprites table)
* change field name from 'unused' to 'padding' for final part of object event data
2023-05-06 16:33:37 -05:00
haven1433
1c64777955 trade and tutor selection should allow filtering 2023-05-06 14:57:52 -05:00
haven1433
87789bd7af fix no-change token issue (event editing)
opening/closing a trainer ID selection combobox in the trainer panel of the map editor no longer creates a token unless you actually change the selection
2023-05-06 14:10:59 -05:00
haven1433
7d93a73f0a Movement Type improvements
* Invisible characters now appear semi-visible in the map editor.
* You can now type into the "Movement Type" textbox to find the option you want faster
* Added some logic to AngleComboBox to auto-set some bindings if the ViewModel is a `FilteringComboOptions`.
2023-05-06 13:58:03 -05:00
haven1433
d12c0da1ce move map option lists to toml file 2023-05-02 22:44:26 -05:00
haven1433
df8ec9da35 Show unused field for object events in map editor
this field isn't used in vanilla, but is used by some patches
2023-05-02 07:38:01 -05:00
haven1433
03cc0e0cfb button to make a script for an object when its script is null 2023-04-28 22:11:03 -05:00
haven1433
790882df46 Show sprite ID with OW sprites in the map editor 2023-04-28 22:01:43 -05:00
haven1433
f84fb73232 various bugfixes
* 'ladder' is a valid warp behavior
* when updating record pointers, make sure the type registers as a pointer
* when updating 'false' tables (for map editor events, for example) use the false table to track creating concretes for records, rather than using what's in the model.
* when adding a false table to the model, make sure we clear any pointers first
* allow the map editor to load if types/items names are not found
* improve trainer object template and UI -> allow switching between available trainers and choosing an existing trainer from the template.
2023-04-28 21:40:47 -05:00
haven1433
d4be92f687 make 'Kind' more resiliant to errors
don't error if signposts pointers don't point to signpost data
2023-04-27 21:25:15 -05:00
haven1433
1a955c7169 handle invalid text data better 2023-04-23 20:40:26 -05:00
haven1433
e161bc4d66 don't crash when opening the map with no OW table 2023-04-21 22:40:23 -05:00
haven1433
bcc7c8227e improve missing OW logic in map editor
if no OW sprites can be found, just return a list with the single 'default OW' sprite.
Handle the case where the OW table is null when trying to render an OW.
2023-04-21 22:34:22 -05:00
TheDiamondMiner
8087f43285
Fixed bug for incorrect warpable tile tip and changed a method name to avoid confusion (#140)
* added another or operator for staircase warp tiles and changed the name of the method to avoid confusion.

* changed the method name
2023-04-01 10:22:40 -05:00
haven1433
8c46a2333d distinguish broken warps
if a warp is on a block with an inappropriate behavior, the warp won't work. Draw those warps differently and include a warning message.
2023-03-30 20:03:47 -05:00
haven1433
94af0be75d don't include quotes in mart in map event panel
the quotes aren't needed, they're just extra noise
2023-03-21 22:53:22 -05:00
haven1433
c28985f034 allow text caching for more textboxes
text caching keeps the text from auto-updating as the user types
2023-03-21 22:49:54 -05:00
haven1433
0f7b5a4628 get palette from OSL rather than individual sprite for map OWs
keeping the OW index information (from data.Start) means that we can pick the right palette. Just use that palette for any OW sprite.
2023-03-12 15:39:43 -05:00
haven1433
b79e219675 overworld sprites in OW dropdown should render the default sprite from the list
the default sprite from the list will have the correct palette, since it can pull palette info from what's pointing to the list, instead of just the palettes from the sprite pointers.
2023-03-12 15:35:05 -05:00
haven1433
5ced98414b fix flag parsing - don't auto-format
use a cache field so the text doesn't auto-fill to something length 4 and valid, gives a better editing experience.
2023-03-12 12:48:58 -05:00
haven1433
efa8ab5010 signpost -> goto script should set NoInfoRuns to XSERuns 2023-03-01 22:04:06 -06:00
haven1433
690379abea early exits to prevent crashes if data is missing 2023-02-11 22:14:54 -06:00
haven1433
e795079296 allow null pointers to show up as <nulll> for all map event types 2023-02-01 22:01:55 -06:00
haven1433
5c750115b6 usability update: show event numbers
users got confused about making warps. Change the text to make it more clear that the input value is for the target warp, not the current warp. Add visuals to display the current warp as a number.
2023-02-01 21:26:08 -06:00
haven1433
47388d5f3e map editor bug fixes
* creating a new map should be considered an autonomous operation for undo purposes
* support connection-objects for FireRed
* crash less when reading invalid map / layout data
* show correct hover square when hovering over neighbor maps with borders
* fix elevation names / map permissions
* don't update tile render info for the block editor if the x/y change is a no-op
*
2023-01-05 22:53:35 -06:00
haven1433
65e534a46d map editor fixes
* say width/height correctly in the tooltips of the map size handles
* less flickering during undo
* include default OW sprite instead of blank (for example, tutorial catch man in viridian city)
* speed up the initial script-check process that looks for default trainer sprites for each OW by not caring about the length of child scripts
* use proper thread locking during block cache invalidation and renewal so that undo doesn't mess up the number of blocks shown in the block panel
2023-01-04 23:06:51 -06:00
haven1433
7efde66586 bugfix for R/S/E special case logic 2022-11-29 23:12:12 -06:00
haven1433
d48257637b improve view notifications 2022-11-25 09:20:56 -06:00
haven1433
4c2089196b usability feedback
label stuff
center new connections
berry shortcuts
fix goto shortcuts
2022-11-24 11:24:56 -06:00
haven1433
903bed9895 updates from testing 2022-11-18 10:36:07 -06:00
haven1433
6a703c1fae call UpdateFromParent when updating TableStream via textbox 2022-11-18 09:10:31 -06:00
haven1433
1dc56f0f1f finish remaining templates
also fix a bug where "mr. mime" was getting split into a parent/child category because of the '.'
2022-11-09 23:23:21 -06:00
haven1433
7d0022d6a3 template progress 2022-11-08 22:29:37 -06:00
haven1433
d09b3c32c7 finish more templates 2022-11-07 21:56:39 -06:00
haven1433
f8efa227c0 updates from test
this isn't all the updates needed after the test with wet blanket, but it's most of the small things
2022-11-06 00:05:21 -05:00
haven1433
4e8fab433e template progress 2022-11-05 20:13:24 -05:00
haven1433
543496d5c7 add green check
for 'tutorial complete' animation
2022-11-04 14:16:43 -05:00
haven1433
84eb6ba435 improve event cycling 2022-11-04 11:44:55 -05:00
haven1433
04aba5dae7 improve tooltips
also show range for trainers/NPCs
2022-11-01 19:59:53 -05:00
haven1433
50cf90c9e6 don't track changes when adding runs lazily
lazy runs don't count as data changes
2022-10-31 11:46:09 -05:00
haven1433
3afc244baf fix fly x/y 2022-10-31 11:29:38 -05:00