Adds hit dice and has custom HP toggle to the edit basic info screen.

This commit is contained in:
2021-05-27 21:44:17 -07:00
parent f41b8d0065
commit 82ce3d3788
5 changed files with 91 additions and 3 deletions

View File

@@ -87,7 +87,28 @@
<!-- Hit Dice (int) -->
<!-- Has ustom HP (boolean) -->
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/hitDice"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:digits="0123456789"
android:hint="@string/label_hit_dice"
android:importantForAutofill="no"
android:inputType="number" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/hasCustomHitPoints"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:text="@string/label_has_custom_hp"
android:textSize="@dimen/text_h4_size" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"

View File

@@ -44,4 +44,6 @@
<string name="label_subtype">Subtype</string>
<string name="label_alignment">Alignment</string>
<string name="label_custom_hp">Custom HP</string>
<string name="label_has_custom_hp">Has Custom HP</string>
<string name="label_hit_dice">Hit Dice</string>
</resources>