Commit Graph

143 Commits

Author SHA1 Message Date
Tom Hicks
3e81f2ed2f Adds other traits to the monster detail fragment.
Cleans up the monster detail fragment to work like the other fragments.
2021-06-27 01:33:07 -07:00
Tom Hicks
ba1c30ba66 Refactors monster detail to use a view holder and partially corrects Regional Actions to Regional Effects. 2021-06-27 00:17:16 -07:00
Tom Hicks
99334d4815 Removes unused methods from EditMonsterViewModel. 2021-06-26 23:21:49 -07:00
Tom Hicks
5efb0b6e92 Adds OnMoveCallback to the SwipeToDeleteCallback class.
Makes traits orderable.
2021-06-26 23:21:28 -07:00
Tom Hicks
2f32c59a34 Removes todo. 2021-06-26 14:39:56 -07:00
Tom Hicks
b851c18207 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
ff61eb9324 Fix Stepper initial values. 2021-06-26 02:21:56 -07:00
Tom Hicks
b835f70b83 Adds ScrollViews to the editors that were missing them. 2021-06-25 23:38:13 -07:00
Tom Hicks
e10d0b8445 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
b0cfc06f84 Fixes removing languages. 2021-06-25 23:33:09 -07:00
Tom Hicks
ab93a248dc Adds some TODOs. 2021-06-25 23:32:54 -07:00
Tom Hicks
effada1a26 Fixes the size of the edit languages header. 2021-06-25 23:31:43 -07:00
Tom Hicks
46867edb4d Fixes selection bug in AbilityScorePicker. 2021-06-25 23:26:59 -07:00
Tom Hicks
f6f38924bd Renames EditTraitListFragment to EditTraitsFragment to match the other list fragments. 2021-06-25 20:33:33 -07:00
Tom Hicks
31bed7f4fa 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
3633b39e70 Auto formatted all files. 2021-06-25 17:41:53 -07:00
Tom Hicks
101a2676dc Adds editing support for other traits using some shared fragments. 2021-06-25 17:29:39 -07:00
Tom Hicks
7fcafa608c Adds ability editor. 2021-06-25 14:33:40 -07:00
Tom Hicks
6ae5c43fa6 Fixes name of "Add Damage Type" string. 2021-06-25 14:33:09 -07:00
Tom Hicks
cb16cf5d23 Code style cleanup.
Replaces Fragment with MCFragment.
2021-06-25 14:31:49 -07:00
Tom Hicks
71a15f60b6 Adds equals override to Trait objects.
Fixes trait comparisons.
2021-06-25 14:28:21 -07:00
Tom Hicks
f8346a44b3 Adds ability to edit languages. 2021-06-25 11:06:51 -07:00
Tom Hicks
28dca61e68 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
a29ea44bec Replaces manual view != null assertions with requireView. 2021-06-25 10:54:10 -07:00
Tom Hicks
6b08265a5d Adds equals override for Language objects.
Makes languages sort group by can speaks.
2021-06-25 10:52:09 -07:00
b562d34a99 Add damage resistances and damage vulnerabilities to the monster editor. 2021-06-20 19:57:22 -07:00
9e9e8f8984 Adds damage resistances to monster editor. 2021-06-20 19:35:16 -07:00
dbd043fd23 ViewModel refactoring. 2021-06-20 18:56:49 -07:00
9799230036 Adds editing of condition immunities. 2021-06-20 17:50:37 -07:00
dc5fba76f8 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
5393c8b4a3 Adds getters and setters for string array properties of EditMonsterViewModel. 2021-06-20 15:33:55 -07:00
6a9b69c6d2 Adds edit sense fragment. 2021-06-20 14:07:44 -07:00
3dd03f54dc Edit skill cleanup. 2021-06-20 14:07:44 -07:00
6649b58cf8 Adds Edit Senses fragment. 2021-06-20 14:07:44 -07:00
c9f11c4f77 Removes unused code from edit skills. 2021-06-20 12:40:06 -07:00
23f4b65fd1 Replaces usages of Fragment with MCFragment. 2021-06-20 12:15:19 -07:00
15170eca11 Adds senses to EditMonsterViewModel. 2021-06-20 11:26:39 -07:00
8c8c6f803d 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
9e06f93ef9 Updates TODO in EditMonsterViewModel. 2021-06-20 00:56:53 -07:00
4774281048 Adds edit skill fragment to edit individual skills. 2021-06-20 00:51:56 -07:00
db24c333b9 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
2aa94b9789 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
67aaa88ce1 Adds an equals method to skills. 2021-06-20 00:41:56 -07:00
8545b6c819 Makes AdvantagePicker work if you set the id of the advantage picker to advantage. 2021-06-20 00:41:09 -07:00
d0e4b3c9f1 Adds ability score picker. 2021-06-20 00:40:14 -07:00
e2f7a31a47 Lint cleanup. 2021-06-20 00:37:16 -07:00
4c00ef3b48 Removes debug logging. 2021-06-20 00:35:35 -07:00
295aaa76ef Disables annoying lint rule. 2021-06-20 00:33:41 -07:00
6be722d7b9 Adds ability to remove a skill. 2021-06-12 22:16:16 -07:00
df03b2e830 Keeps skills on the edit skills screen sorted. 2021-06-12 22:14:31 -07:00