Commit Graph

496 Commits

Author SHA1 Message Date
37d840f77e Added dcb_bytes_derive::Discriminant macro to replace generate_enum_property_mod.
`Slot` is now manually generated using `Discriminant` and `strum`.
2021-05-17 08:46:47 +01:00
16f8f3c643 Fixed documentation issues.
Removed unused error types in `dcb-exe`.
2021-05-16 14:07:08 +01:00
03de391f0f Started finding info about the card table. 2021-05-16 13:49:24 +01:00
4978915f76 Removed all edit states, now that egui supports custom buffers.
Added `AsciiStrArr::{push, insert, drain_range}`.
card-editor-0.1.0
2021-05-16 12:10:33 +01:00
26cb2b189a Added move validation to render_move. 2021-05-16 09:09:43 +01:00
aabaafc91a Added new validation interface in dcb-bytes. 2021-05-16 08:31:25 +01:00
f98d8ae290 Added backup feature to card editor when saving while exiting fails. 2021-05-16 08:00:05 +01:00
7ac52b7a21 Removed Effect::SetTempSlot as it was just a special case of ChangeProperty. 2021-05-16 07:31:15 +01:00
5a3f352647 Added an explanation for some ChangeProperty effect. 2021-05-16 07:23:00 +01:00
f43b0dc94b Cards are now properly distributed across the work area. 2021-05-16 07:06:18 +01:00
4060adff78 Added separator before effect condition remove button. 2021-05-16 06:08:39 +01:00
e51f9810ff Slightly improved effect condition explanation. 2021-05-16 06:07:37 +01:00
caa37c3b91 Added a background on the screen display. 2021-05-15 15:01:43 +01:00
5a9ad10376 Added multi-screen support for editing cards. 2021-05-15 14:49:52 +01:00
9f2f17be6b Moved card rendering to it's own function. 2021-05-15 14:17:27 +01:00
79544ba2ad Added primitive searching to digimon property combo boxes.
Now using a custom implementation of case-incensitive string contains instead of regex.
2021-05-15 14:12:43 +01:00
dadfe01d24 Added editing for items and digivolves.
Added `DigivolveEffect::{ALL, as_str}`.
2021-05-15 12:56:39 +01:00
ca5fa2d933 User is now only prompted at exit to save if any changes occured.
`card::Table` now implements `Hash`.
2021-05-15 12:25:11 +01:00
28774b6f87 Greatly revised effect rendering. 2021-05-15 12:18:38 +01:00
6db03f3500 Refactored effect condition displaying.
Added `EffectConditionOperation::{operator_str, targets_property}`.
2021-05-15 11:46:13 +01:00
51e2c7ebbf Added render_arrow_color.
`generate_enum_property_mod` now generates `as_str` taking a value.
2021-05-15 11:18:20 +01:00
fc03e1c5c0 Added render_level. 2021-05-15 11:06:36 +01:00
e13e41aa52 Changed the representation of CrossMoveEffect. 2021-05-15 11:01:30 +01:00
2656610902 Removed manual tracking of edit state changes. 2021-05-15 08:13:55 +01:00
a2639371af Moved and improved move rendering. 2021-05-15 08:07:12 +01:00
1b6c808c08 Improved searching using a regex. 2021-05-15 07:54:23 +01:00
7ae2d3717b Digimon speciality and level are now using combo boxes.
Now using `selectable_label`s for the side panel.
2021-05-15 07:03:27 +01:00
a75434a82b Moved top heading to it's own top panel. 2021-05-15 06:47:45 +01:00
0adf19cfb7 Moved digimon rendering to it's own function. 2021-05-15 06:31:16 +01:00
8c78a6ffaf Moved edit state to it's own module. 2021-05-15 06:26:29 +01:00
98f4f92e36 Added dcb_util::WriteTake.
`dcb-card-editor` now properly limits the size of the file.
2021-05-15 06:24:24 +01:00
a7e6820cda Now not running tests until figuring out what to do about dcb-card-editor not compiling. 2021-05-15 05:53:40 +01:00
ec992f395a Added minimal cursor implementation for cdrom-xa.
Added `dcb_util::{checked_signed_offset, signed_offset}`.
`dcb-card-editor` now operates on the game file itself.
2021-05-15 05:48:26 +01:00
63d4b773e7 Removed unnecessary #[allow(...)].
Removed unused `dcb-util/util.rs`.
2021-05-14 07:30:37 +01:00
51d06ea1c5 Fixed formatting. 2021-05-14 06:40:12 +01:00
c69c4be85d Put all digivolve effects into an enum while trying to figure their structure out. 2021-05-14 05:33:02 +01:00
524b21e9fd Removed unknowns from EffectCondition. 2021-05-14 04:47:39 +01:00
68b3b22108 Rest of effect's bytes figured out.
Added check for invalid property to set for effect.
2021-05-14 04:30:59 +01:00
4510d2ba73 Added minimal card editor using egui.
Made some fields in `dcb` publid.
`generate_enum_property_mod` now adds a `ALL` const with all variants, as well as a `as_str`.
2021-05-13 04:19:31 +01:00
7845039dc0 Refactored funcs and data related to interruptse and added extra. 2021-05-11 01:49:58 +01:00
edb1571608 Revised documentation for start. 2021-05-10 20:19:36 +01:00
05f1579dfd Moved some data to foreign. 2021-05-09 20:50:08 +01:00
ab15d12099 Added FromStr impl for DataType. 2021-05-09 04:17:01 +01:00
aeb373c3ba Removed the need to specify kind on known / foreign data. 2021-05-09 04:13:59 +01:00
7cbd82f9a3 Removed Extend<Data> and FromIterator<Data> impls for DataTable. 2021-05-09 03:10:09 +01:00
1aa6400f43 Added DataTable::insert.
Data in the data table is now kept in `Rc`.
Data table now properly accessable by it's name.
2021-05-09 03:05:59 +01:00
5539894ca4 Updated way of checking for heuristically found functions in dcb-disasm. 2021-05-09 02:11:01 +01:00
f59556d2ad dcb-disasm can now choose where the header is printed.
Removed `print-data-table` option in `dcb-disasm`.
Moved loading of external resources in `dcb-disasm` to it's own module.
2021-05-09 02:10:15 +01:00
405c7b6c73 Added dcb_util::write_to_file. 2021-05-09 02:09:07 +01:00
b34b4c9caf Added new data, functions and overrides. 2021-05-08 21:10:39 +01:00