Created Game Option "Game Mode"

This option allows the user to select their gaming system. This will
allow us to fine tune the UI of exalted dice to better suit the gaming
system of each particular game.

Note This only commit does not handle applying the game mode in
ExaltedDice.java

Change-Id: I035fe4441027e6536f6d89d038818dc939c26e55
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-02-12 10:09:05 -05:00
parent 5c8540e0e2
commit 29ea55bd28
5 changed files with 98 additions and 13 deletions

View File

@@ -26,11 +26,25 @@
android:singleLine="true" />
</LinearLayout>
<Spinner
android:id="@+id/game_mode_spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/linearLayout1"
android:layout_centerVertical="true"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:entries="@array/game_modes"
android:prompt="@string/game_mode" />
<Button
android:id="@+id/new_game_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/linearLayout1"
android:layout_below="@id/game_mode_spinner"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:text="@string/create_new_game" />
</RelativeLayout>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="game_modes">
<item>@string/game_mode_exalted</item>
<item>@string/game_mode_dd</item>
</string-array>
<string name="game_mode_exalted">Exalted</string>
<string name="game_mode_dd">D&amp;D</string>
</resources>

View File

@@ -34,5 +34,6 @@
<string name="roll_mod_msg">Calculate Roll + Modifier</string>
<string name="higlight_color">Highlight Color</string>
<string name="higlight_color_msg">Highlights your last roll in a custom color</string>
<string name="game_mode">Game Mode</string>
</resources>