40 Commits

Author SHA1 Message Date
f384b95825 Bumped card-editor to 0.1.2. 2021-06-01 01:07:55 +01:00
4f672b7893 Added option to set effect to None. 2021-06-01 00:59:23 +01:00
2cb4fdcb3b Switched to proper git dependency of egui. 2021-05-28 04:49:24 +01:00
2a9f6170c0 Moved loaded game into it's own struct. 2021-05-20 17:16:59 +01:00
706b5332fd Card table hash is now updated after saving. 2021-05-20 17:01:18 +01:00
84e19c8039 Updated card editor to 0.1.1 as per git tags. 2021-05-17 14:50:01 +01:00
d09d90307e Added primitive card swapping.
Card names now include their id.
2021-05-17 14:44:30 +01:00
e0d678e72b Improved impl of TextBuffer for AsciiTextBuffer. 2021-05-17 09:47:03 +01:00
be2192dfa0 Added logging to dcb-card-editor. 2021-05-17 09:39:57 +01:00
161278ea19 Removed all usages of generate_enum_property_mod within dcb::card. 2021-05-17 09:28:36 +01:00
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
4978915f76 Removed all edit states, now that egui supports custom buffers.
Added `AsciiStrArr::{push, insert, drain_range}`.
2021-05-16 12:10:33 +01:00
26cb2b189a Added move validation to render_move. 2021-05-16 09:09:43 +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
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
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