Commit Graph

138 Commits

Author SHA1 Message Date
Tom Hicks
2427f69da9 View cleanup.
Makes more numeric fields Steppers.
Sets titles for fragments.
Sets focus on the first EditText on most edit pages.
Makes Checkbox be a SwitchCompat
Fixes monster list item view.
2021-06-26 02:42:10 -07:00
Tom Hicks
36c26e4c42 Fix Stepper initial values. 2021-06-26 02:21:56 -07:00
Tom Hicks
59c3bfc11a Adds ScrollViews to the editors that were missing them. 2021-06-25 23:38:13 -07:00
Tom Hicks
01750bd772 Fixes search.
It now works the same as iOS. It case insensitive matches the entire search text in any of name, size, type, subtype, or alignment.
2021-06-25 23:34:33 -07:00
Tom Hicks
d14b09dd91 Fixes removing languages. 2021-06-25 23:33:09 -07:00
Tom Hicks
a59e9d438a Adds some TODOs. 2021-06-25 23:32:54 -07:00
Tom Hicks
656bf3e5c5 Fixes the size of the edit languages header. 2021-06-25 23:31:43 -07:00
Tom Hicks
7b308ded1b Fixes selection bug in AbilityScorePicker. 2021-06-25 23:26:59 -07:00
Tom Hicks
faaea0ea7e Renames EditTraitListFragment to EditTraitsFragment to match the other list fragments. 2021-06-25 20:33:33 -07:00
Tom Hicks
881fcf9123 Replaces condition immunities, damage immunities, damage resistances, damage vulnerabilities, and senses with a unified list of strings editor. 2021-06-25 20:28:25 -07:00
Tom Hicks
5533c03f07 Auto formatted all files. 2021-06-25 17:41:53 -07:00
Tom Hicks
76535d56f2 Adds editing support for other traits using some shared fragments. 2021-06-25 17:29:39 -07:00
Tom Hicks
3a918fea6f Adds ability editor. 2021-06-25 14:33:40 -07:00
Tom Hicks
0b881a50da Fixes name of "Add Damage Type" string. 2021-06-25 14:33:09 -07:00
Tom Hicks
0d1ab5a6d5 Code style cleanup.
Replaces Fragment with MCFragment.
2021-06-25 14:31:49 -07:00
Tom Hicks
03965f5ad7 Adds equals override to Trait objects.
Fixes trait comparisons.
2021-06-25 14:28:21 -07:00
Tom Hicks
b14fe3ad69 Adds ability to edit languages. 2021-06-25 11:06:51 -07:00
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