Commit Graph

38 Commits

Author SHA1 Message Date
haven1433
dedc848ba9 map tabs of the same model should share the same EventTemplate object.
This will allow all tabs, between maps, viewports, and duplicates, to track flag/var use together.
2023-08-12 23:03:17 -05:00
haven1433
fb34c52c19 fix from crash reports 2023-08-12 22:17:37 -05:00
Axcellerator
d83ac54ac9
Update EventTemplate.cs (#189)
Change the Special used for the legendary template in Emerald.
2023-08-10 10:49:19 -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
6fc0f568dc Basic implementation for flag/vars show&tell
Currently hidden
2023-06-29 19:31:08 -05:00
haven1433
9290ea6776 Add more images to tooltips
add tooltip image previews for the following events:
* give.item
* additem
* setwildbattle
* hidden items
* trades
2023-06-25 16:13:57 -05:00
haven1433
c7441cf4be init flags on a background thread
EventTemplate needs to know about used flags. We don't want to slow down startup, but we also don't want lag when you try to create your first event from a template.

Use a background thread to search for flags, only freeze if the user tries to create an event before loading completes.
2023-06-16 09:01:25 -05:00
haven1433
2ae810b0ba fix trainer template crash
if a map can't be loaded, don't crash the trainer template elevation logic
2023-06-14 08:14:06 -05:00
haven1433
36ebcea005 fix a crash with empty sprite object templates 2023-06-04 23:46:51 -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
d12c0da1ce move map option lists to toml file 2023-05-02 22:44:26 -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
6ef8253e02 fix cursor when resolving ?????? addresses
doing <??????> auto-included a new {} block, which is cool. But that block needs to not be included when calculating the new cursor position, because the cursor position should remain _before_ the new {}, so it's still on the same line in case you're writing `trainerbattle` or something with multiple pointers in the line.
2023-03-18 21:47:00 -05:00
haven1433
09f2766790 make more resilient to nulls 2023-01-29 22:03:33 -06:00
haven1433
517a2f94f1 make templates work with macros 2022-12-04 23:27:15 -06:00
haven1433
78d0297d91 bugfixes
* make pokemon of the chosen type more likely
* create new border for new interiors
* don't cut off trainer sprite in template (for large OWs)
* update selected block render when editing blocks
2022-11-23 23:04:47 -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
fffb03a5d5 fix elevation bug 2022-11-07 22:20:41 -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
d138bcafa4 draft for more templates 2022-11-04 23:33:38 -05:00
haven1433
04aba5dae7 improve tooltips
also show range for trainers/NPCs
2022-11-01 19:59:53 -05:00
haven1433
b5e15ead3f draft
added right-click menu and a draft of the creation logic. Doesn't quite work right yet.
2022-10-27 21:37:05 -05:00
haven1433
216ac5ebec improve arg recognition
signpost args are complicated. The app can now tell the difference between the different 'kinds'.
2022-10-26 07:39:26 -05:00
haven1433
8a6f3ea559 Event improvements
* fix cut off text trainer range / berry id
* template for npcs
* template for signposts
* extended info in event panel for templates
* edit names
2022-09-23 16:06:24 -05:00
haven1433
47d3642bdf face correct way
- fix undo/redo bug for model element
- update event UI
- fix hover selection bug
2022-09-19 18:24:57 -05:00
haven1433
dd52f78880 Improve icons 2022-09-19 00:17:39 -05:00
haven1433
65b409e3bf bugfix
MaxLevel / MaxPokedex can be set now
Also make OWs appear in WrapPanel to see more at once.
Also show a trainer sprite if we have one.
2022-09-18 22:31:55 -05:00
haven1433
049685f975 add metadata 2022-09-18 21:29:57 -05:00
haven1433
6ad900a1ca apply templates / ui work 2022-09-18 01:36:19 -05:00
Haven1433
a2d4c66a33 items
and R/S/E support
2022-09-17 10:04:48 -05:00
Haven1433
4a416981f0 trainers 2022-09-16 23:26:38 -05:00