Adds hit dice and has custom HP toggle to the edit basic info screen.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user