Files
andors-trail/AndorsTrail/res/layout/levelup.xml
oskar.wiksten 2fe1e3f0b0 Added immunity to critical hits for ghosts, undead and demons.
Added a way to re-sort the player's inventory by moving items to top/bottom.
Auto-close the level-up dialog if the player cannot level up (issue 284)

git-svn-id: https://andors-trail.googlecode.com/svn/trunk@222 08aca716-68be-ccc6-4d58-36f5abd142ac
2012-03-12 21:16:57 +00:00

98 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/dialog_margin"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
>
<ImageView
android:id="@+id/levelup_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/char_hero"
android:paddingRight="@dimen/dialog_iconpadding_right"
android:paddingBottom="@dimen/dialog_iconpadding_bottom"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_title"
android:textSize="@dimen/titletext"
/>
</LinearLayout>
<TextView
android:id="@+id/levelup_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Welcome to level N!"
/>
<Button
android:id="@+id/levelup_add_health"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_add_health"
/>
<Button
android:id="@+id/levelup_add_attackchance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_add_attackchance"
/>
<Button
android:id="@+id/levelup_add_attackdamage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_add_attackdamage"
/>
<Button
android:id="@+id/levelup_add_blockchance"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_add_blockchance"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="@dimen/section_margin"
android:id="@+id/levelup_adds_new_skillpoint"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ui_icon_skill"
android:paddingRight="@dimen/dialog_iconpadding_right"
android:paddingBottom="@dimen/dialog_iconpadding_bottom"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/levelup_adds_new_skillpoint"
/>
</LinearLayout>
<!-- Workaround http://code.google.com/p/andors-trail/issues/detail?id=242 -->
<ListView android:layout_width="match_parent" android:layout_height="1dp" />
</LinearLayout>
</ScrollView>