Commit Graph

134 Commits

Author SHA1 Message Date
Kurt
5e99e24628 Add fast pixel upscale
1->X sized scaling; preferred when scale is large enough and you want to retain raw access to pixel data.
2020-04-08 14:34:52 -07:00
Kurt
29b03cc428 Faster map sprite generation
Create the bitmap via bytes (as int[]) then create the final image, rather than SetPixel
2020-04-08 12:24:25 -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
92e4c9b8f7 Visualization fixes 2020-04-07 13:40:49 -07:00
Kurt
824d31719e Pre-blend colors with white
faster fetch
2020-04-07 13:40:39 -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
2ce535c67c Refactoring
Move sprite resources to subfolder for organization
Add FieldItem class (replaces MapItem), might work in a field item editor (similar to building editor)
2020-04-07 10:19:58 -07:00
Kurt
bc95507bf2 Extract out some logic 2020-04-06 22:49:33 -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
b1d9c031ee Update pull_request_template_improvement.md
Add note for Mono/Wine compatibility desires.
2020-04-06 15:04:34 -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
8444fb4145 Create FUNDING.yml 2020-04-06 14:35:26 -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
Archit Date
bcd8e422ec Merge branch 'master' of https://github.com/kwsch/NHSE 2020-04-06 15:02:43 +08:00
Archit Date
8014991dee add 1.1.4 support
just a revision bump
2020-04-06 15:02:29 +08: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
e62191b65a Show "None" instead of null sprite 2020-04-04 21:27:32 -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
92959fba6a Fix wallet offset
e2b4c6ac49
ty @Cuyler36 for letting me know the correct offset
2020-04-04 15:53:28 -07:00
Kurt
b71b040a3a Remove unused logic, add test case 2020-04-04 15:47:57 -07:00
Kurt
8b324651e1 Enhance building editor (show map & value names) 2020-04-04 13:16:45 -07:00
Kurt
62e514f879 Add structure enums 2020-04-04 00:10:54 -07:00
Kurt
8f6e68feba Fix tile get
unlocked viewport => don't use AcreIndex
2020-04-03 20:50:46 -07:00
Kurt
8516df6116 Unlock terrain viewport from acre snapping
Add checkbox to flip between snap / no-snap
2020-04-03 20:34:32 -07:00
Kurt
12ee9e0bab Add EventFlagsPlayer editing 2020-04-03 18:36:26 -07:00
Kurt
ea5482cfc9 Verify encrypted ints on read
throw an exception if corrupt
2020-04-03 17:44:44 -07:00
Kurt
f5e96480fd Add prompt for mass edits 2020-04-03 13:50:32 -07:00
Kurt
8202ce1da6 Fix dump/import tiles 2020-04-03 13:33:49 -07:00
Kurt
5dccddb3cc Allow B0->A0 up nav 2020-04-03 13:32:48 -07:00
Kurt
3eb8b4eabd Fix count set
flag2 -> count, no longer need to downcast to byte
2020-04-03 13:17:26 -07:00
Kurt
b6e19f079d Minor clean
Add click to map preview to load that acre
Move map+viewport-reticle bitmap creation to drawing project
export map without reticle as scale=1
2020-04-03 12:50:53 -07:00
Kurt
e098f85afc Show map viewport to indicate current acre 2020-04-03 12:29:56 -07:00
Kurt
8b3c650eff Add Terrain editor
most complex editor yet

could be better if I did PictureBox'es instead of buttons, so I could put an image instead of just color

ppl will have to document more on what each terrain looks like, maybe could show a pic of each terrain tile?
2020-04-03 12:12:21 -07:00
Kurt
deb4d51149 Merge branch 'master' of https://github.com/kwsch/NHSE 2020-04-02 23:31:24 -07:00
Archit Date
76430aa49e add 1.1.3 support 2020-04-03 14:27:12 +08:00