Commit Graph

121 Commits

Author SHA1 Message Date
Tom Hicks
47d67861e2 Makes use of class compareTo methods when sorting skills and languages.
Fixes dirty state of skills when modifying them.
2021-06-25 10:56:42 -07:00
Tom Hicks
7408b9b139 Replaces manual view != null assertions with requireView. 2021-06-25 10:54:10 -07:00
Tom Hicks
27b7735a59 Adds equals override for Language objects.
Makes languages sort group by can speaks.
2021-06-25 10:52:09 -07:00
18c7f6c3d7 Add damage resistances and damage vulnerabilities to the monster editor. 2021-06-20 19:57:22 -07:00
884ffdd218 Adds damage resistances to monster editor. 2021-06-20 19:35:16 -07:00
a9dcc81deb ViewModel refactoring. 2021-06-20 18:56:49 -07:00
2f5402e84f Adds editing of condition immunities. 2021-06-20 17:50:37 -07:00
8ad32f479b Adds getters and setters to EditMonsterViewModel for Languages, Abilities, Actions, Reactions, Lair Actions, Legendary Actions, and Regional Actions. 2021-06-20 15:56:00 -07:00
a4b6b184b4 Adds getters and setters for string array properties of EditMonsterViewModel. 2021-06-20 15:33:55 -07:00
44a64b3fc4 Adds edit sense fragment. 2021-06-20 14:07:44 -07:00
3ddf25905e Edit skill cleanup. 2021-06-20 14:07:44 -07:00
8e29dc2440 Adds Edit Senses fragment. 2021-06-20 14:07:44 -07:00
1449893e4e Removes unused code from edit skills. 2021-06-20 12:40:06 -07:00
d8baac26bf Replaces usages of Fragment with MCFragment. 2021-06-20 12:15:19 -07:00
50af67d4e7 Adds senses to EditMonsterViewModel. 2021-06-20 11:26:39 -07:00
1e1cf1309d Fixes default values for array/set properties of monsters in db.
Removes individual senses properties and replaces with a Set<String>.
2021-06-20 02:14:48 -07:00
5ea851ef8f Updates TODO in EditMonsterViewModel. 2021-06-20 00:56:53 -07:00
3a3f78a31e Adds edit skill fragment to edit individual skills. 2021-06-20 00:51:56 -07:00
547b20292f Adds stubbed out method to navigate to the edit skill fragment.
Adds a click handler to the edit skills recycler view adapter.
Makes tapping a skill in the edit skills view navigate to the editor for that skill.
Makes adding a new skill immediately edit the skill.
2021-06-20 00:49:41 -07:00
e082db43f8 Makes addNewSkill return the new skill.
Adds replaceSkill to replace an existing skill in the skills array.
2021-06-20 00:44:20 -07:00
ceea940ec7 Adds an equals method to skills. 2021-06-20 00:41:56 -07:00
3231a36be5 Makes AdvantagePicker work if you set the id of the advantage picker to advantage. 2021-06-20 00:41:09 -07:00
0c7394f05e Adds ability score picker. 2021-06-20 00:40:14 -07:00
edafe908fc Lint cleanup. 2021-06-20 00:37:16 -07:00
30bb44a8a8 Removes debug logging. 2021-06-20 00:35:35 -07:00
a6a2824469 Disables annoying lint rule. 2021-06-20 00:33:41 -07:00
463311b949 Adds ability to remove a skill. 2021-06-12 22:16:16 -07:00
186c1a80bd Keeps skills on the edit skills screen sorted. 2021-06-12 22:14:31 -07:00
363bad5931 Fixes bug where adding a new skill wouldn't show up until leaving and returning to the edit skills screen. 2021-06-12 22:12:39 -07:00
afba6e8490 Adds item dividers to the Library and Edit Skills screens.
Makes the two layouts consistent with each other.
2021-06-12 21:48:23 -07:00
b51318220b Makes Add Skill button a FloatingActionButton. 2021-06-12 19:51:48 -07:00
703bb3d77f Adds "New Skill" button. 2021-06-10 23:45:04 -07:00
98f46694fc Adds edit skills view. 2021-06-10 22:50:27 -07:00
0e3f14f288 Adds edit challenge rating screen. 2021-05-31 20:23:39 -07:00
8fc27a6d6e Adds remaining monster properties to the edit monster view model. 2021-05-31 17:16:58 -07:00
a6cced2ccf Adds better change tracking to know if a monster needs to be saved. 2021-05-31 14:35:23 -07:00
8fd313e3df Adds saving throws editor. 2021-05-31 12:58:34 -07:00
1c5762405a Adds AdvantagePicker and ProficiencyPicker components. 2021-05-31 12:56:58 -07:00
aa850ecfc6 Adds a Stepper control and uses it for the steppers in the editor. 2021-05-30 03:40:30 -07:00
5a94408f7b Adds screen to edit ability scores. 2021-05-30 01:55:45 -07:00
bc115efba8 Adds missed change tracking to EditMonsterViewModel. 2021-05-30 00:11:14 -07:00
84467dbb0d Adds Edit Speed screen to the monster editor. 2021-05-30 00:10:44 -07:00
f4dd3855d6 Adds Edit Armor screen to edit a monster's armor stats. 2021-05-29 19:46:28 -07:00
82ce3d3788 Adds hit dice and has custom HP toggle to the edit basic info screen. 2021-05-27 21:44:17 -07:00
f41b8d0065 Adds confirmation when going up from the edit monster screen to save, cancel, or discard changes. 2021-05-27 19:16:05 -07:00
ced5560dd0 Adds setTitle helper method to MCFragment. 2021-05-27 19:15:23 -07:00
a19839b473 Adds edit basic info screen with most string fields.
Cleans up fonts/margins on edit screens.
Makes the EditMonsterViewModel shared between edit monster fragments.
2021-05-27 13:22:57 -07:00
b377e0656e Adds TextChangedListener helper class to make working with text inputs less verbose. 2021-05-27 04:17:22 -07:00
acef784c6d Makes EditMonsterFragment load the monster based with the id passed in and show it's name in the title. 2021-05-27 03:24:33 -07:00
4ff945301f Fixes passing the monster id when navigating to the edit monster screen. 2021-05-27 03:23:23 -07:00