Initial commit
BIN
app/src/main/res/drawable-hdpi/ic_action_done.png
Normal file
After Width: | Height: | Size: 282 B |
BIN
app/src/main/res/drawable-hdpi/ic_action_edit.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
app/src/main/res/drawable-hdpi/ic_action_heal.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
app/src/main/res/drawable-hdpi/ic_action_name.png
Normal file
After Width: | Height: | Size: 798 B |
BIN
app/src/main/res/drawable-hdpi/ic_action_save.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
app/src/main/res/drawable-hdpi/ic_action_undo.png
Normal file
After Width: | Height: | Size: 443 B |
BIN
app/src/main/res/drawable-hdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
app/src/main/res/drawable-mdpi/ic_action_done.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_edit.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_heal.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_name.png
Normal file
After Width: | Height: | Size: 490 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_save.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
app/src/main/res/drawable-mdpi/ic_action_undo.png
Normal file
After Width: | Height: | Size: 313 B |
BIN
app/src/main/res/drawable-mdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_action_done.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_edit.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_heal.png
Normal file
After Width: | Height: | Size: 315 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_name.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_action_save.png
Normal file
After Width: | Height: | Size: 312 B |
BIN
app/src/main/res/drawable-xhdpi/ic_action_undo.png
Normal file
After Width: | Height: | Size: 568 B |
BIN
app/src/main/res/drawable-xhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 6.9 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_done.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_edit.png
Normal file
After Width: | Height: | Size: 678 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_heal.png
Normal file
After Width: | Height: | Size: 435 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_name.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_save.png
Normal file
After Width: | Height: | Size: 417 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_action_undo.png
Normal file
After Width: | Height: | Size: 900 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_launcher.png
Normal file
After Width: | Height: | Size: 13 KiB |
77
app/src/main/res/layout/activity_introduction.xml
Normal file
|
@ -0,0 +1,77 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
tools:context="com.ddns.kauron.dungeonmanager.Introduction">
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPersonName"
|
||||
android:ems="10"
|
||||
android:id="@+id/editNameIntro"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:hint="@string/adventurer_name"/>
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPersonName"
|
||||
android:ems="10"
|
||||
android:id="@+id/editRaceIntro"
|
||||
android:layout_below="@+id/editClassIntro"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:hint="@string/race_name" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPersonName"
|
||||
android:ems="10"
|
||||
android:id="@+id/editClassIntro"
|
||||
android:layout_below="@+id/editNameIntro"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:hint="@string/class_name" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:ems="10"
|
||||
android:id="@+id/editLevelIntro"
|
||||
android:hint="@string/level"
|
||||
android:width="70dp"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignLeft="@+id/editMaxPgIntro"
|
||||
android:layout_alignStart="@+id/editMaxPgIntro" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:ems="10"
|
||||
android:id="@+id/editMaxPgIntro"
|
||||
android:layout_below="@+id/editLevelIntro"
|
||||
android:hint="@string/max_pg"
|
||||
android:layout_alignLeft="@+id/editMaxEffortIntro"
|
||||
android:layout_alignStart="@+id/editMaxEffortIntro" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="number"
|
||||
android:ems="10"
|
||||
android:id="@+id/editMaxEffortIntro"
|
||||
android:layout_alignTop="@+id/editRaceIntro"
|
||||
android:layout_toEndOf="@+id/editRaceIntro"
|
||||
android:hint="@string/max_curative_efforts"
|
||||
android:layout_toRightOf="@+id/editRaceIntro" />
|
||||
</RelativeLayout>
|
82
app/src/main/res/layout/activity_main.xml
Normal file
|
@ -0,0 +1,82 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
|
||||
|
||||
<Button
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/pgCurrent"
|
||||
android:textSize="40sp"
|
||||
android:onClick="onCurrentPgClick"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true" />
|
||||
|
||||
<RelativeLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toLeftOf="@+id/pgCurrent"
|
||||
android:layout_toStartOf="@+id/pgCurrent"
|
||||
android:id="@+id/linearLayout">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/adventurer_name"
|
||||
android:id="@+id/nameText"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/race_name"
|
||||
android:id="@+id/raceText"
|
||||
android:layout_alignTop="@+id/classText"
|
||||
android:layout_toRightOf="@+id/classText"
|
||||
android:layout_toEndOf="@+id/classText"
|
||||
android:layout_marginLeft="10dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/class_name"
|
||||
android:id="@+id/classText"
|
||||
android:layout_below="@+id/nameText"
|
||||
android:layout_alignParentStart="false"
|
||||
android:layout_alignParentLeft="true" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:text="@string/level"
|
||||
android:id="@+id/lvlText"
|
||||
android:layout_alignParentBottom="false"
|
||||
android:layout_toRightOf="@+id/raceText"
|
||||
android:layout_toEndOf="@+id/raceText"
|
||||
android:layout_alignTop="@+id/raceText"
|
||||
android:layout_marginLeft="10dp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:id="@+id/lvl"
|
||||
android:layout_alignParentBottom="false"
|
||||
android:layout_toRightOf="@+id/lvlText"
|
||||
android:layout_toEndOf="@+id/lvlText"
|
||||
android:layout_alignTop="@+id/lvlText"
|
||||
android:layout_marginLeft="10dp" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
10
app/src/main/res/menu/menu_introduction.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.ddns.kauron.dungeonmanager.Introduction">
|
||||
<item android:id="@+id/action_finish"
|
||||
android:title="@string/action_finish"
|
||||
android:orderInCategory="100"
|
||||
android:icon="@drawable/ic_action_done"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
34
app/src/main/res/menu/menu_main.xml
Normal file
|
@ -0,0 +1,34 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
|
||||
<item
|
||||
android:id="@+id/action_undo"
|
||||
android:title="@string/action_undo"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="always"
|
||||
android:icon="@drawable/ic_action_undo"/>
|
||||
<item
|
||||
android:id="@+id/action_cure"
|
||||
android:title="@string/action_cure"
|
||||
android:orderInCategory="2"
|
||||
app:showAsAction="always"
|
||||
android:icon="@drawable/ic_action_heal"/>
|
||||
<item
|
||||
android:id="@+id/action_save"
|
||||
android:title="@string/action_save"
|
||||
android:orderInCategory="3"
|
||||
app:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_action_save"/>
|
||||
<item
|
||||
android:id="@+id/action_edit_basics"
|
||||
android:title="@string/action_edit_basics"
|
||||
android:orderInCategory="4"
|
||||
app:showAsAction="ifRoom"
|
||||
android:icon="@drawable/ic_action_edit"/>
|
||||
<item
|
||||
android:id="@+id/action_calendar_activity"
|
||||
android:title="@string/action_calendar_activity"
|
||||
android:orderInCategory="5"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
32
app/src/main/res/values-es/strings.xml
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">DungeonManager</string>
|
||||
<string name="action_cure">Curar</string>
|
||||
<string name="action_edit_basics">Editar personaje</string>
|
||||
<string name="action_finish">Hecho</string>
|
||||
<string name="adventurer_name">Nombre</string>
|
||||
<string name="cancel">Cancelar</string>
|
||||
<string name="class_name">Clase</string>
|
||||
<string name="edit_PG_Title">Sufrir daño</string>
|
||||
<string name="level">Nivel</string>
|
||||
<string name="max_pg">PG máx.</string>
|
||||
<string name="maxed_curative">Has llegado a tus PG máximos</string>
|
||||
<string name="missing_info_error">Tienes que rellenar todos los campos</string>
|
||||
<string name="new_energies1">Te quedan</string>
|
||||
<string name="new_energies2">esfuerzos curativos.</string>
|
||||
<string name="new_energies_title">¿Usar un esfuerzo curativo?</string>
|
||||
<string name="no">No</string>
|
||||
<string name="no_curative_efforts_error">No te quedan esfuerzos curativos</string>
|
||||
<string name="ok">Ok</string>
|
||||
<string name="race_name">Raza</string>
|
||||
<string name="suffer_damage">Indica el daño sufrido</string>
|
||||
<string name="title_activity_introduction">Editar personaje</string>
|
||||
<string name="yes">Sí</string>
|
||||
<string name="max_curative_efforts">Esfuerzos curativos</string>
|
||||
<string name="suffer_damage_hint">PG perdidos</string>
|
||||
<string name="action_undo">Deshacer</string>
|
||||
<string name="action_calendar_activity">Crear evento</string>
|
||||
<string name="action_save">Guardar</string>
|
||||
<string name="action_undo_current_pg">Acción deshecha</string>
|
||||
<string name="dungeons_and_dragons">Dragones y Mazmorras</string>
|
||||
</resources>
|
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
5
app/src/main/res/values/colors.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="primary">#5D4037</color>
|
||||
<color name="primaryDark">#3E2723</color>
|
||||
</resources>
|
5
app/src/main/res/values/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
36
app/src/main/res/values/strings.xml
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name" translatable="false">DungeonManager</string>
|
||||
<string name="action_cure">Cure</string>
|
||||
<string name="action_undo">Undo</string>
|
||||
<string name="dungeons_and_dragons">Dungeons and Dragons</string>
|
||||
<string name="action_save">Save</string>
|
||||
<string name="action_calendar_activity">Create event</string>
|
||||
<string name="action_undo_current_pg">Action undone</string>
|
||||
<string name="action_edit_basics">Edit character</string>
|
||||
<string name="adventurer_name">Adventurer name</string>
|
||||
<string name="class_name">Class</string>
|
||||
<string name="race_name">Race</string>
|
||||
|
||||
<string name="cancel">Cancel</string>
|
||||
<string name="ok">Ok</string>
|
||||
<string name="yes">Yes</string>
|
||||
<string name="no">No</string>
|
||||
|
||||
<string name="edit_PG_Title">Suffer damage</string>
|
||||
<string name="new_energies1">You have</string>
|
||||
<string name="new_energies2">curative efforts</string>
|
||||
<string name="new_energies_title">Use a curative effort?</string>
|
||||
<string name="title_activity_introduction">Edit character</string>
|
||||
<string name="action_finish">Done</string>
|
||||
|
||||
<string name="level">Level</string>
|
||||
<string name="max_curative_efforts">Curative efforts</string>
|
||||
<string name="max_pg">Max PG</string>
|
||||
<string name="missing_info_error">You need to fill all the information</string>
|
||||
<string name="no_curative_efforts_error">You don\'t have any curative efforts left!</string>
|
||||
<string name="maxed_curative">You have reached your maximum level of PG</string>
|
||||
<string name="suffer_damage">Input the damage suffered</string>
|
||||
<string name="suffer_damage_hint">PG lost</string>
|
||||
</resources>
|
10
app/src/main/res/values/styles.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Base.Theme.AppCompat">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimaryDark">@color/primaryDark</item>
|
||||
<item name="colorPrimary">@color/primary</item>
|
||||
</style>
|
||||
|
||||
</resources>
|