Commit Graph

138 Commits

Author SHA1 Message Date
Kurt
74bf1d4cef Merge acre editor into field item editor 2020-05-09 17:03:58 -07:00
Kurt
fd81b2cb61 Convert OutsideAcreList to enum 2020-05-09 14:56:11 -07:00
Kurt
0085c453d4 Add custom picker for specialty fruit
Closes #181
2020-05-09 10:58:19 -07:00
Kurt
6eff348fa5 Disconnect on form close too
same as 39205c975e
2020-05-09 10:35:14 -07:00
Kurt
60f3fa84a3 Add more misc edits
Closes #179
Not allowing people to import a jpeg.
2020-05-09 09:39:35 -07:00
Kurt
07e393177f add initial exterior acre pixel calculation
no functional changes to NHSE
2020-05-09 08:31:46 -07:00
Kurt
d566eb9972 Add player detail / fg
fg = field goods? probably not, but a good enough guess for now

kinda overflowing on player editables; get chucked to a sub-editor.

Closes #164
2020-05-08 20:52:32 -07:00
Kurt
8661f7c0cc Use Item Editor instead of property grid
Closes #151
2020-05-08 13:27:29 -07:00
Kurt
a9810c7d03 Merge Field Item back into Item
Different means of expression for the 8 byte item structure's FreeParam

Will be expanding the ItemEditor so that it has a checkmark to toggle Extension Item editing behavior.

Removes IHeldItem as there's no need to abstract it.
2020-05-08 12:20:24 -07:00
Kurt
8e4e0a92f8 Add reaction list editor
#167

If you're adding reactions, you should probably set FillReactionList in player flags to 44 so that the game knows to not give you more reactions...?
2020-05-07 22:13:31 -07:00
Kurt
152d8dc431 Update translatables 2020-05-07 10:36:11 -07:00
Kurt
55022c85f4 Indicate subvariation colors
Recombining the values with a GUI editor TBD
2020-05-07 10:32:14 -07:00
Kurt
9388ecb576 Save remake (customization) unlock flags 2020-05-07 08:25:29 -07:00
Kurt
528eb2f1ec Show customization available bits
There's probably other bits used for fabric, but that's not researched
2020-05-06 21:03:20 -07:00
Kurt
5779b65b9b Adapt personal player struct to disassembled pseudo.h
Similar to main's adaption in a prior commit, let's use the relative offsets.

adds total nook miles earned to editor
fixes the off-by-one indexing for achievement list
2020-05-06 15:32:09 -07:00
Kurt
39205c975e Disconnect on window close 2020-05-06 14:11:53 -07:00
Kurt
20a16666ff Don't force inject if autowrite not set 2020-05-06 14:10:29 -07:00
Kurt
bf841b8ecf Show item sprites in item editor
put a folder named "items" with the english named item sprites (tbd if we change to a more sane filename format)

bring your own files, it's like 45 MB so not distributing with the EXE.
2020-05-05 22:13:29 -07:00
Kurt
478b8e29c5 Allow clearing all flags regardless of constraints 2020-05-05 18:40:48 -07:00
Kurt
e980e1d8c2 Add skip list for giving all received items
Closes #166

I threw in the 30-slot unlock as well as the other "Recipe" ids so that things aren't messed with. They're skipped!

ty @theiconrichie !
2020-05-05 18:37:44 -07:00
Kurt
203a7c1627 Add more removal options
- remove flowers
- remove shells
- remove branches

Closes #163

rename plazaX/Y to match internal field name
2020-05-05 17:17:59 -07:00
Kurt
a3357c27c5 Clamp acre jump to valid bounds 2020-05-03 20:50:45 -07:00
Kurt
0ec40f3b55 Categorize stalk market properties
update other usages so we can turn off the help box at the bottom of the propertygrid
2020-05-03 19:43:10 -07:00
Kurt
b884973919 Refactoring
abstraction++
2020-05-03 19:24:16 -07:00
Kurt
21c30fc733 Update import skip occupied
Closes #158
2020-05-03 18:41:34 -07:00
Kurt
4a49caf6da Add layer2->layer1 check (isSupported), add logic for isActive
isActive: indicates if the tile is animated (eg: bonfire has fire or is extinguished)
isSupported: layer2 tile checks beneath it (layer1) to see if there's something to hold it up on that layer (sanity check)

Dunno how to handle the isActive set-on-save. I saw there was an isActive flag in my plaza, assumedly left there from a radio or something. NHSE does not change flag state at this time.
2020-05-03 16:29:28 -07:00
Kurt
8edf0a6ec4 Add trycatch for sysbot read/write, turn off auto-r/w on fail
Closes #156

turning off auto-r/w won't happen if the auto-r/w itself fails. still pops open a message saying error until you turn it off in the other window.
2020-05-03 13:51:26 -07:00
Kurt
8de7f7b506 Add internal flag/value name translation
if you really want to translate these, go ahead
#157
2020-05-03 13:37:04 -07:00
Kurt
3ec69afe6b Show terrain tile type, add slider for transparency adjust 2020-05-02 23:57:43 -07:00
Kurt
adf9b43bc0 Add transparency slider for buildings 2020-05-02 23:25:14 -07:00
Kurt
928e699168 misc performance improvements
Preallocate the terrain-building objects and reuse

changed:
- grid alternates with a slightly-darker to help indicate the larger 2x2 tile grid.
- put plaza & buildings behind the gridlines
2020-05-02 23:02:37 -07:00
Kurt
5b5d1b2bce Save terrain and buildings on close too 2020-05-02 20:10:11 -07:00
Kurt
4690cfe167 Refactoring: Field Item Editor + buildings/terrain
Extracts logic from the building & terrain & field item editors for reuse / separation of concerns

Have FieldItemEditor select between Items & Terrain so that you can change the popup menu mode (view set delete)

Not sure how I want to show the terrain names...
2020-05-02 20:05:09 -07:00
Kurt
1dbf1e9338 Put all "remove {X}" into dropdown button list
Clamp hover coordinates to sane values
2020-05-02 15:52:44 -07:00
Kurt
ef065f889b Add checkbox to toggle auto-extension behavior, clamp map bounds 2020-05-02 14:41:32 -07:00
Kurt
c25cd262d4 Add automatic delete/set of extension tiles from root
Setting a root tile: will fill in the extension tiles
Deleting a root tile: will delete all extension tiles (it assumes extension tiles are valid)

Add checkbox to prevent overwriting tiles that aren't none (eg if you set a 4x4 and it'd overlap with a 2x2, the program would play a sound indicating that the requested operation was disallowed).

Closes #136 -- multi-select with the current drawing setup isn't really feasible. Bulk set/delete addresses the underlying request.
2020-05-02 00:20:44 -07:00
Kurt
ddde5040a2 Add room wall/floor editor for villager
Closes #138
2020-05-01 22:07:34 -07:00
Kurt
d930b02489 Show buildings/plaza on field item editor
Building sizes not to scale, but should assist in representing layout for now

Extract terrain color to separate class
2020-05-01 16:46:38 -07:00
Kurt
581b482538 Add hotkey to import and skip over filled slots
Closes #143
2020-04-30 14:18:29 -07:00
Kurt
33b9e7f170 Show terrain map behind field item view
Adds a transparency slider to have the field items fade so you can see the underlying terrain tile.

Not really optimized (allocates every time), but it should be fine for now.

Make the None item transparent, so that the entire map bleeds through (clear clarity).
2020-04-28 21:08:57 -07:00
Kurt
38c4764967 Add more documentation for tile editing
035af51911/savefile/save_schema_131080_131078_pseudoC.h (L1400)

Closes #129
2020-04-27 10:40:35 -07:00
Kurt
beb4e8111a Add pocket/bag count
Rename Pocket1/Pocket2 to Bag/Pocket respectively (bag is slots21-40)
2020-04-26 21:11:11 -07:00
Kurt
2b9d8b0c7a De-clutter: Group some buttons into dropdown buttons
Move player house dump to subform

Not sure how to associate player -> playerhouse; for now, we'll just assume they're ordered the same way.
2020-04-26 20:45:41 -07:00
Kurt
01ae4793c9 Add player house editor 2020-04-26 20:29:39 -07:00
Kurt
214638ce2c Add skip exterior for terrain set all
https://github.com/kwsch/NHSE/issues/122#issuecomment-619472394
2020-04-25 21:40:34 -07:00
Kurt
9b7ff912b8 Add give all art for received items 2020-04-24 10:30:04 -07:00
Kurt
4efbb00b4e Add pro design r/w 2020-04-23 17:09:52 -07:00
Kurt
776bc030fe Move design pattern to subform 2020-04-23 16:30:39 -07:00
Kurt
4610b55ed7 Update translatable list
Remove unused form
2020-04-23 13:42:33 -07:00
Kurt
94c141393f Reload displayed object on import 2020-04-22 23:43:12 -07:00