Commit Graph

114 Commits

Author SHA1 Message Date
Kurt
aa970f1eab Add main (land) event flag editing
Can turn easter on/off, ha
maybe when they patch in new events ahead of time, we can turn them on early?
2020-04-20 11:31:00 -07:00
Kurt
f0492f1dc1 Allow importing old (x40) building list (not x46) 2020-04-20 09:08:45 -07:00
Kurt
345f3c3f1b Add howto hint for removing a villager
Closes #84

ty @PandaUnit-TWL
2020-04-19 16:56:03 -07:00
Kurt
d21b99978a Add player & villager house dump/load
share your house, but not your toothbrush!
2020-04-19 16:23:59 -07:00
Kurt
5d51cf65df rename some classes to match internal naming 2020-04-19 15:26:20 -07:00
Kurt
4fa77c9242 Minor unused additions
add some villager stuff
add outside acre template id
add mainfield template id
2020-04-19 15:26:09 -07:00
Kurt
0e437bd5d1 Extract villager editing to separate control 2020-04-19 12:12:29 -07:00
Kurt
aff52ce842 Make building structure explicit layout, add unk->usage
9c0648c0b7/savefile/save_schema_120_109_pseudoC.h (L967)
2020-04-19 11:27:26 -07:00
Kurt
2e64f0b109 Add villager flag editor + moving out state toggle 2020-04-18 11:11:25 -07:00
Kurt
59c0c27737 Move sub-editors to separate folders by type
Don't cherrypick this commit; won't compile (next commit will work)
2020-04-18 11:09:32 -07:00
Kurt
456575e64e Add missing ) to error messages 2020-04-17 13:45:02 -07:00
Kurt
6e18605f69 Trycatch save export
yay write protected/unplugged SD cards or bad sizes
2020-04-15 10:15:14 -07:00
Kurt
14bbc73481 Verify sizes on load 2020-04-15 10:14:48 -07:00
Kurt
1af352dae5 Add dropdown to jump to specific recipe 2020-04-15 09:56:14 -07:00
Kurt
7e3003687b MInor clean 2020-04-15 09:47:20 -07:00
Kurt
d89a7245e0 Add more field item mass-editing buttons
Closes #75
2020-04-14 15:20:08 -07:00
Kurt
43b043a1b6 Change duplicate hotkey
Hashes = CTRL-H
RAM = CTRL-R
2020-04-13 22:34:20 -07:00
Kurt
2210f6e6fc Add Building List Dump/Import
Doesn't include plaza; if you're sharing details, just share the coordinates via text.
2020-04-13 16:53:38 -07:00
Kurt
3060e790bc Fix expected import size 2020-04-12 21:28:51 -07:00
Kurt
da955be606 Show X on buried items root 2020-04-11 11:57:28 -07:00
Kurt
3ab70d593f Add remove plants / remove all 2020-04-10 12:50:08 -07:00
Kurt
6ce0d1595d Remove allocation for field item editor
Allocate once on init, and reuse objects

pretty much buttery smooth now :)
2020-04-09 16:01:20 -07:00
Kurt
91418e9c66 Enhance extension item visualization
Mark class as static

Draws directional lines trying to point back to the root item
2020-04-09 12:52:07 -07:00
Kurt
a87cb512a6 Show all properties of field items
TIL that you can prefix FieldOffset with "field" so that you can have it be a getter/setter (interfaces! properties!)
2020-04-09 10:49:10 -07:00
Kurt
6df2fc1b04 Add remove weeds/holes 2020-04-09 09:41:21 -07:00
Kurt
284b7e6fab Reduce size to a power of 2
show field item name if it's a "planted" item rather than ???
2020-04-09 09:29:36 -07:00
Kurt
8469e12c38 Change field item grid to drawn bitmap
No lag, clean grid, muh efficiency
2020-04-08 14:35:51 -07:00
Kurt
5491ab3ac5 Faster tile fetch on click
essentially negligible speed improvement, but improved readability
2020-04-08 10:16:20 -07:00
Kurt
0d979a8b7b Add injection hotkeys to main window
no save file required
2020-04-08 08:59:04 -07:00
Kurt
a4ba8259a9 Update flow layout
Closes #61 , reduces size of label and switches the flow direction so that it won't be too big and overflow
2020-04-07 22:09:55 -07:00
Kurt
8ac4dc4d0e Add hover to show item name 2020-04-07 15:37:26 -07:00
Kurt
8673ead6aa Add layer switcher 2020-04-07 15:29:37 -07:00
Kurt
91f8881808 Add Field Item viewer
Layer 1 only, no tile mutation capability for now. Can still move things around / delete.
2020-04-07 15:25:34 -07:00
Kurt
80601bfd28 Fix filename for dumpall/import single 2020-04-07 14:54:54 -07:00
Kurt
25a162c187 Add more fielditem manipulation logic
32x32 because we have 2x2 metatiles -- items can be placed at half-coordinates relative to tile coordinates.
2020-04-07 11:25:27 -07:00
Kurt
6ecf659d5e Add special handling for diy recipe 2020-04-06 20:11:35 -07:00
Kurt
e989752e34 Use openfiledialog for load decrypted
Reload all fields when loading a decrypted save file
2020-04-06 15:36:52 -07:00
Kurt
5293ec594a Refactoring
Rename some variables
2020-04-06 14:57:37 -07:00
Kurt
0f28da8b2f Extract some grid logic to its own class
Name it more clearly so that the intent is there
2020-04-06 14:37:40 -07:00
Kurt
ec89e0b627 Change ClearAll to SetAll
if you want to clear all, just load a base tile (delete and load a single tile) then Set All
2020-04-06 09:38:53 -07:00
Kurt
29ecc8946c Fix terrain tile hover coordinate display
was snapping same way as viewport reticle
split things up and add comments
2020-04-05 16:15:55 -07:00
Kurt
3482eebe5a Show plaza on generated map 2020-04-05 16:00:17 -07:00
Kurt
6f228a72f7 Show coordinates on mouse move 2020-04-05 12:04:44 -07:00
Kurt
fc3276ca99 Add plaza coordinates to building editor
How exactly to plot the coordinates???
2020-04-05 12:04:28 -07:00
Kurt
b603e5628c Rearrange map related buttons 2020-04-05 12:03:34 -07:00
Kurt
d35aab1f77 Clamp read of encrypted uints
guards against corrupt values?
Closes #55
2020-04-05 09:04:31 -07:00
Kurt
1ff26a3be7 Update validation & add bypass
Require first uint to match, can bypass others
2020-04-04 21:35:03 -07:00
Kurt
1db185151d
Add automatic read/write items for all pocket items (1-40) (#51)
Decentralizes pocket injection logic from SysBotUI so that other auto-injectors can be passed in (future? like terrain/overworld items).

Adds validation to not modify items if the pocket data doesn't have the expected layout.

Closes #47 by implementing things in a more abstract & extendable way. Thanks @jfmherokiller for the example implementation which served as an inspiration!
2020-04-04 20:57:25 -07:00
Kurt
74f6157fa3 Change folderbrowser to openfile, select main instead
- Open file => main.dat will load the parent folder
- Allow dropping of main.dat (loads the parent folder)
- Shift clicking still behaves the same way
- Handle command line arguments to auto-load savedata from arg indexes >=1

Closes #37 ; unsure on licensing & mono compatibility, less dependencies
2020-04-04 16:37:54 -07:00
Kurt
8b324651e1 Enhance building editor (show map & value names) 2020-04-04 13:16:45 -07:00