Commit Graph

261 Commits

Author SHA1 Message Date
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
1c8a56746a Update GameStrings.cs 2020-05-02 14:36:44 -07:00
Kurt
73b4d0c2fd Add fossil & message bottle item for hover text & editor 2020-05-02 14:06:03 -07:00
Kurt
38a7895752 Add Storage (ItemChest) count 2020-05-02 00:35:42 -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
4128cc00f6 Add item size metadata 2020-05-01 23:10:04 -07:00
Kurt
ddde5040a2 Add room wall/floor editor for villager
Closes #138
2020-05-01 22:07:34 -07:00
Kurt
8458c52c28 Add room metadata get/set for villager 2020-05-01 22:06:49 -07:00
Kurt
34c9742bce Split many-struct defines into separate files 2020-05-01 22:06:28 -07:00
Kurt
8fefa220e5 Add simplistic bulletin board editor
Closes #144
Need to understand the Image format before a full-blown editor could be made.
2020-05-01 20:17:23 -07:00
Kurt
ac718d90af Don't consider flower seeds as flowers (gene expression) 2020-05-01 19:47:01 -07:00
Kurt
72aaba9c4b Merge branch 'master' of https://github.com/kwsch/NHSE 2020-05-01 19:28:30 -07:00
Kurt
7c7a4fe86f Allow mutating the player house item (door, etc) 2020-05-01 19:28:24 -07:00
Kurt
5f7585ca0f Name property 2020-05-01 19:27:07 -07:00
CXM
1f358130b2
Update lang & zhs fix (#147)
Co-authored-by: cxm <cxm@acgmusic.org>
2020-05-01 19:15:55 -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
b02d064678 Add treasure trawler enumeration 2020-05-01 10:24:04 -07:00
Kurt
b203cd782a Fix bbs structlayout, Add getter for bulletin 2020-04-30 23:42:34 -07:00
Kurt
6abae6dd87 Rename properties to match disassembled internal names
Revise offset values to read from the struct's location within the parent object.
2020-04-30 23:13:41 -07:00
Kurt
ca0545809c Add bulletin board logic 2020-04-30 23:12:58 -07:00
Kurt
493124d74a Remove unnecessary parenthesis
compiler suggestion
2020-04-30 23:12:32 -07:00
Kurt
581b482538 Add hotkey to import and skip over filled slots
Closes #143
2020-04-30 14:18:29 -07:00
Kurt
2fe31b6e4a Translate message strings when changing language 2020-04-30 13:19:04 -07:00
CXM
f70f101379
add readmes for other languages (#142)
Note to others:

Please don't localize it to every language imaginable. Only for those that are supported by the program.
2020-04-29 23:08:00 -07:00
CXM
3908a6aa06
Add zhs/zht to DevUtil & lang fix (#141)
* Fix zh-TW menu bug

* fix missing text item to each lang

* add zhs & zht to DevUtil

* add new strings
2020-04-29 21:16:55 -07:00
Kurt
f71854ac5f Add more flower flags
click on the Days label to set all flags, hold alt to clear all flags instead.
2020-04-29 18:54:28 -07:00
CXM
efbe190a61
Split & fix Chinese to Simplified / Traditional Chinese (#137)
* Split & fix Chinese to Simplified / Traditional Chinese

* Fix Traditional Chinese missing item
2020-04-29 12:04:19 -07:00
Kurt
ccc28e4f1d Add more flower value editing 2020-04-29 11:35:23 -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
8808eadb20 Remove enum tostring call for tile color fetch
lighten road colors on higher elevation

0.5->0.6 for 20% darker cliff edges
2020-04-28 19:17:05 -07:00
Kurt
6bb54264e8 Show roads as brown 2020-04-27 11:23:35 -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
839e1a3f14 Add unit test for item injection validation
Check the other bind list too

don't bother checking that a bound index actually exists in the item pocket
2020-04-26 18:58:13 -07:00
Kurt
f28a544604 Finalize the verification logic for inventory
Move the ValidateEnabled check to the top to completely disable validation -- it is recommended to actually use the validation. This should work perfectly for everyone, assuming you haven't corrupted the region we're validating.

Game data structure stores as follows:

Item[20] bag;
u32 bagCount;
sbyte[20] binds;
Item[20] pocket;
u32 pocketCount;
sbyte[20] binds;

count is 0,10,20 depending on unlocked, and binding is -1 or 0-7 depending on where the item is bound (item quick use wheel)
2020-04-26 18:37:51 -07:00
Kurt
de6190ed79 Improve error message for bad encrypted int 2020-04-26 18:30:23 -07:00
Fede Capece
ce5706be90
Italian translation (#126) 2020-04-26 15:19:23 -07:00
Der Chien
024b4c440d
Add Chinese Translation for GUI (#123) 2020-04-26 08:24:05 -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
b3629e9049 Name f8 watered 2020-04-25 14:51:48 -07:00
Kurt
b133cc72cb Add flower flags
Closes #117
2020-04-25 14:24:52 -07:00
Kurt
56f48be173 Save current villager before opening house list 2020-04-24 10:30:18 -07:00
Kurt
9b7ff912b8 Add give all art for received items 2020-04-24 10:30:04 -07:00