306 Commits

Author SHA1 Message Date
4bb0ef784b Updated card editor to 0.1.4 2021-06-14 05:24:09 +01:00
4ebe598c02 Fixed close button for replace string screen being wrong. 2021-06-14 05:23:07 +01:00
517dcac3b8 Added minimal replace string screen. 2021-06-14 05:11:11 +01:00
b6046ec38e Fixed strings in diff screen for effects and effect conditions being wrong. 2021-06-14 04:42:30 +01:00
4c1701d861 DiffScreen now displays the name of the cards if different again. 2021-06-12 19:56:52 +01:00
878bb1f8cd Added missing None variant for CrossMoveEffect. 2021-06-12 19:54:42 +01:00
5c2a51dc8d Updated CachedValue signatures to allow other functions than declared, as long as they have the same inputs. 2021-06-12 19:50:28 +01:00
c0ce34156f Renamed IoCursor to IoSlice. 2021-06-12 18:45:47 +01:00
dd5d55a3e0 DiffScreen now caches the changes. 2021-06-12 03:45:26 +01:00
30ea1a8116 LoadedGame::file_card_table_hash is no longer in a cell. 2021-06-11 19:39:57 +01:00
bc7f6ec4dc Added diffing interfaces to Item and Digivolve. 2021-06-11 18:55:16 +01:00
0ba80c9ea4 Moved digimon diffing logic to the dcb crate. 2021-06-11 18:32:18 +01:00
d856ded16a All error modules are now private. 2021-06-11 16:34:38 +01:00
d791709768 Updated rustc and clippy to 1.54.0-nightly. 2021-06-11 16:23:58 +01:00
2d7bf37e71 Bump card-editor to 0.1.3. 2021-06-10 20:37:09 +01:00
c36e8faeb0 Finished initial implementation of DiffScreen. 2021-06-10 20:36:18 +01:00
67c3b57851 Fixed issue where file wasn't opened with write permissions, as well as table size being checked wrong. 2021-06-10 19:32:11 +01:00
b589c4c500 Started adding diff screen. 2021-06-10 18:46:15 +01:00
4484d2a44f Moved File > Open to it's own function. 2021-06-10 18:42:37 +01:00
93f70ada9a Moved card searching to LoadedGame. 2021-06-10 18:17:37 +01:00
6ef468cc06 Fixed wrong default when card table size doesn't fit in a u64. 2021-06-10 18:12:27 +01:00
827fea4963 Renamed saved_card_table_hash to file_card_table_hash. 2021-06-10 18:10:08 +01:00
79bbdfb65a Improved SwapScreen implementation. 2021-06-09 19:15:58 +01:00
b25b5e2fd8 OverviewScreen now receives a CardTable instead of the loaded game. 2021-06-09 19:00:19 +01:00
992ad2b901 Added dcb_util::Void.
`dcb_file_editor` doesn't block on loading error anymore
2021-06-05 17:35:30 +01:00
88f80c5762 Revised alert macros to not allocate on non-formatted inputs. 2021-06-05 17:27:48 +01:00
17e352ba51 The main thread no longers locks the game file's cdrom. 2021-06-05 16:10:51 +01:00
e080bf3c4c Removed dcb_util::IoThread as it wasn't the right abstraction. 2021-06-05 15:46:01 +01:00
93cc39ebd3 Moved dcb_iso9660::string to dcb_util::alphabet. 2021-06-04 21:29:06 +01:00
41a05b61fa dcb_util::array_split_{mut} is now qualified to with it's crate, instead of importing it. 2021-06-04 18:24:19 +01:00
1d7cac06d3 Experimenting with unpacking m3d files in unmtd 2021-06-04 17:51:37 +01:00
432c4d0b62 Added minimal tmd2obj implementation. 2021-06-03 19:10:06 +01:00
fcbfcb5666 Now using Shift-JIS for text handling. 2021-06-03 14:52:13 +01:00
1722e3b075 LoadedGame now stores the game file itself and uses the GameFile interface to interact with it.
`EditScreen` now displays an image of the card.
2021-06-03 07:39:52 +01:00
78cd1bd48a Added color to arrow color display. 2021-06-03 06:41:39 +01:00
c55cc7e034 Removed an unnecessary expect. 2021-06-02 19:11:47 +01:00
8357855f6f Now using read_deserialize and to_bytes in more places. 2021-06-02 14:14:40 +01:00
47736dabb8 Renamed methods and types in Bytes. 2021-06-02 13:51:45 +01:00
4b620fc866 LoadedGame::save now serializes to a temporary vector in case of failure. 2021-06-02 12:26:00 +01:00
fc710a0948 Fixed issue with cards not being partitioned correctly, as well as the number of digivolves written being wrong.
`LoadedGame` now writes changes even if the hash is the same, as well as only updates it's hash if the file is the same.
2021-06-02 12:23:45 +01:00
1312559f08 Removed the necessity to have a card type in SwapScreen. 2021-06-02 11:59:33 +01:00
2c1d33797c card::Table now stores a single vector of Cards instead of 3 separate.
`Digimon`, `Item` and `Digivolve` are now `Copy`.
2021-06-02 11:54:30 +01:00
f36dc8cf78 Added certain extra verification steps in card-editor. 2021-06-01 13:01:40 +01:00
6016e5c210 Added rudimentary overview screen. 2021-06-01 09:08:16 +01:00
5373daf119 Fixed render_card to add exactly the space required. 2021-06-01 08:24:47 +01:00
b15c122c58 Moved SwapScreen to it's own module. 2021-06-01 08:17:20 +01:00
cebc35289d Moved EditScreen to it's own module. 2021-06-01 08:11:19 +01:00
1ee07db33a Moved LoadedGame to it's own module. 2021-06-01 07:57:24 +01:00
856e483bbd Added macros for string intepolation to dcb_util::alert. 2021-06-01 07:39:04 +01:00
d45ba42742 dcb-card-editor now uses dcb_util::alert. 2021-06-01 07:33:00 +01:00