diff --git a/AndorsTrail/res/drawable/ui_blue_lightframe.9.png b/AndorsTrail/res/drawable/ui_blue_lightframe.9.png
index da74a256a..05ab9c251 100644
Binary files a/AndorsTrail/res/drawable/ui_blue_lightframe.9.png and b/AndorsTrail/res/drawable/ui_blue_lightframe.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_blue_lightframe_gray.9.png b/AndorsTrail/res/drawable/ui_blue_lightframe_gray.9.png
index 257a879ec..f506c5911 100644
Binary files a/AndorsTrail/res/drawable/ui_blue_lightframe_gray.9.png and b/AndorsTrail/res/drawable/ui_blue_lightframe_gray.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_blue_lightframe_gray_highlight.9.png b/AndorsTrail/res/drawable/ui_blue_lightframe_gray_highlight.9.png
index 4f5fe235d..541938360 100644
Binary files a/AndorsTrail/res/drawable/ui_blue_lightframe_gray_highlight.9.png and b/AndorsTrail/res/drawable/ui_blue_lightframe_gray_highlight.9.png differ
diff --git a/AndorsTrail/res/drawable/ui_blue_lightframe_highlight.9.png b/AndorsTrail/res/drawable/ui_blue_lightframe_highlight.9.png
index a2523f8e9..ecdd6e0b9 100644
Binary files a/AndorsTrail/res/drawable/ui_blue_lightframe_highlight.9.png and b/AndorsTrail/res/drawable/ui_blue_lightframe_highlight.9.png differ
diff --git a/AndorsTrail/res/layout/actorconditioninfo.xml b/AndorsTrail/res/layout/actorconditioninfo.xml
index 2201aec00..fe9d06c28 100644
--- a/AndorsTrail/res/layout/actorconditioninfo.xml
+++ b/AndorsTrail/res/layout/actorconditioninfo.xml
@@ -1,106 +1,96 @@
+
-
+
-
-
-
+
-
+
-
+
-
+
-
+
-
-
+
-
+
+
-
-
+
-
-
+
+
+
+
-
-
+
-
+
-
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/bulkselection.xml b/AndorsTrail/res/layout/bulkselection.xml
index 5cbc0b6ea..f08aaf876 100644
--- a/AndorsTrail/res/layout/bulkselection.xml
+++ b/AndorsTrail/res/layout/bulkselection.xml
@@ -1,155 +1,138 @@
-
+
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
-
+
-
+
-
+
-
+
-
+
+
-
+
+
+
-
+
-
-
+
-
-
+
-
+
-
-
-
+
+
-
-
-
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/displayworldmap.xml b/AndorsTrail/res/layout/displayworldmap.xml
index c017bd546..a303682c7 100644
--- a/AndorsTrail/res/layout/displayworldmap.xml
+++ b/AndorsTrail/res/layout/displayworldmap.xml
@@ -30,14 +30,16 @@
+ android:background="@drawable/ui_blue_stdframe"
+ android:orientation="vertical"
+ android:layerType="software" >
+ android:background="@android:color/transparent"
+ android:layerType="software" />
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/heroinfo_skill_list.xml b/AndorsTrail/res/layout/heroinfo_skill_list.xml
index e8e1b3698..9ad21c882 100644
--- a/AndorsTrail/res/layout/heroinfo_skill_list.xml
+++ b/AndorsTrail/res/layout/heroinfo_skill_list.xml
@@ -2,7 +2,8 @@
+ android:orientation="vertical"
+ style="@style/AndorsTrail_Blue_StdFrame">
+ android:orientation="vertical"
+ style="@style/AndorsTrail_Blue_StdFrame" >
-
+
-
-
-
+
-
+
-
+
-
-
-
-
+
-
-
-
+
-
-
+
-
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/levelup.xml b/AndorsTrail/res/layout/levelup.xml
index ae579b5d1..0ef0fc43b 100644
--- a/AndorsTrail/res/layout/levelup.xml
+++ b/AndorsTrail/res/layout/levelup.xml
@@ -1,71 +1,76 @@
-
+
-
+
-
+
-
+
-
-
-
-
+
-
+
-
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/loadsave.xml b/AndorsTrail/res/layout/loadsave.xml
index 214bfe2ad..a699ccbda 100644
--- a/AndorsTrail/res/layout/loadsave.xml
+++ b/AndorsTrail/res/layout/loadsave.xml
@@ -5,7 +5,6 @@
android:layout_height="wrap_content"
android:padding="@dimen/dialog_margin"
android:orientation="vertical"
- android:background="@drawable/ui_blue_stdframe"
>
+
+
+
+
+
-
-
-
+
+
diff --git a/AndorsTrail/res/layout/main.xml b/AndorsTrail/res/layout/main.xml
index 83c41c5a8..6bdb9929c 100644
--- a/AndorsTrail/res/layout/main.xml
+++ b/AndorsTrail/res/layout/main.xml
@@ -10,7 +10,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:background="@drawable/ui_blue_stdframe"
/>
-
-
+
-
+
-
-
+
-
-
+
+
-
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/monsterinfo.xml b/AndorsTrail/res/layout/monsterinfo.xml
index b40b599bc..d59fc71e9 100644
--- a/AndorsTrail/res/layout/monsterinfo.xml
+++ b/AndorsTrail/res/layout/monsterinfo.xml
@@ -1,110 +1,111 @@
-
+
-
-
+
-
+
-
-
-
-
+
-
+
-
-
-
-
-
-
-
+
-
+
+
-
-
+
-
-
+
-
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/questlog.xml b/AndorsTrail/res/layout/questlog.xml
index e65baa8af..e755ebdd6 100644
--- a/AndorsTrail/res/layout/questlog.xml
+++ b/AndorsTrail/res/layout/questlog.xml
@@ -1,25 +1,34 @@
-
+
-
+
-
+
+
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/quickbuttons_usable_inventory.xml b/AndorsTrail/res/layout/quickbuttons_usable_inventory.xml
index 17557c481..ef213868f 100644
--- a/AndorsTrail/res/layout/quickbuttons_usable_inventory.xml
+++ b/AndorsTrail/res/layout/quickbuttons_usable_inventory.xml
@@ -1,38 +1,33 @@
-
+
-
+ android:id="@+id/quickslot_assign_title"
+ style="@style/titleWithIcon"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/ui_blue_richframe"
+ android:drawableLeft="@drawable/ui_icon_equipment"
+ android:gravity="center"
+ android:paddingTop="3sp"
+ android:text="@string/inventory_assign" />
+
-
-
-
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="5dp"
+ android:background="@drawable/ui_blue_stdframe"
+ android:text="@string/inventory_selectitem"
+ android:textColor="@color/ui_blue_textbutton_textcolor" />
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/skill_info_view.xml b/AndorsTrail/res/layout/skill_info_view.xml
index 49aa4f5f0..c0c2cf134 100644
--- a/AndorsTrail/res/layout/skill_info_view.xml
+++ b/AndorsTrail/res/layout/skill_info_view.xml
@@ -1,86 +1,81 @@
-
+
-
-
-
+
-
+
-
+
-
+
-
+
-
+
+
+
-
-
+
-
-
+
-
-
-
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/res/layout/startscreen_mainmenu.xml b/AndorsTrail/res/layout/startscreen_mainmenu.xml
index 6e7b79400..f850593dc 100644
--- a/AndorsTrail/res/layout/startscreen_mainmenu.xml
+++ b/AndorsTrail/res/layout/startscreen_mainmenu.xml
@@ -19,8 +19,8 @@
android:id="@+id/save_preview_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="5dp"
- android:layout_marginRight="5dp"
+ android:layout_marginLeft="2dp"
+ android:layout_marginRight="2dp"
layout="@layout/save_preview"
android:visibility="gone" />
@@ -28,8 +28,9 @@
android:background="@drawable/ui_blue_stdframe"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="5dp"
- android:layout_marginRight="5dp"
+ android:layout_marginLeft="2dp"
+ android:layout_marginRight="2dp"
+ android:layout_marginBottom="2dp"
android:gravity="bottom"
android:orientation="vertical" >
diff --git a/AndorsTrail/res/layout/startscreen_newgame.xml b/AndorsTrail/res/layout/startscreen_newgame.xml
index c6d23239c..edbb57826 100644
--- a/AndorsTrail/res/layout/startscreen_newgame.xml
+++ b/AndorsTrail/res/layout/startscreen_newgame.xml
@@ -8,8 +8,8 @@
@@ -61,8 +61,8 @@
@@ -85,8 +85,9 @@
diff --git a/AndorsTrail/res/layout/statusview.xml b/AndorsTrail/res/layout/statusview.xml
index 22f7142e5..5507d09be 100644
--- a/AndorsTrail/res/layout/statusview.xml
+++ b/AndorsTrail/res/layout/statusview.xml
@@ -1,51 +1,51 @@
-
+
-
+
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/DisplayWorldMapActivity.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/DisplayWorldMapActivity.java
index c94d227c7..2f48611c8 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/DisplayWorldMapActivity.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/DisplayWorldMapActivity.java
@@ -2,10 +2,12 @@ package com.gpl.rpg.AndorsTrail.activity;
import android.annotation.SuppressLint;
import android.app.Activity;
+import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
+import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.Toast;
import com.gpl.rpg.AndorsTrail.AndorsTrailApplication;
@@ -64,6 +66,7 @@ public final class DisplayWorldMapActivity extends Activity {
update();
}
+ @SuppressLint("NewApi")
private void update() {
File worldmap = WorldMapController.getCombinedWorldMapFile(worldMapSegmentName);
@@ -85,5 +88,19 @@ public final class DisplayWorldMapActivity extends Activity {
+ (world.model.player.position.y + map.worldPosition.y-1) * WorldMapController.WORLDMAP_DISPLAY_TILESIZE;
L.log("Showing " + url);
displayworldmap_webview.loadUrl(url);
+ displayworldmap_webview.setBackgroundColor(getResources().getColor(android.R.color.transparent));
+
+ if (Build.VERSION.SDK_INT >= 11) displayworldmap_webview.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
+
+ displayworldmap_webview.setWebViewClient(new WebViewClient()
+ {
+ @SuppressLint("NewApi")
+ @Override
+ public void onPageFinished(WebView view, String url)
+ {
+ displayworldmap_webview.setBackgroundColor(0x00000000);
+ if (Build.VERSION.SDK_INT >= 11) displayworldmap_webview.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
+ }
+ });
}
}
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/LoadSaveActivity.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/LoadSaveActivity.java
index d289265c4..455f25b62 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/LoadSaveActivity.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/LoadSaveActivity.java
@@ -57,20 +57,19 @@ public final class LoadSaveActivity extends Activity implements OnClickListener
ViewGroup slotList = (ViewGroup) findViewById(R.id.loadsave_slot_list);
Button slotTemplateButton = (Button) findViewById(R.id.loadsave_slot_n);
- Button createNewSlot = (Button) findViewById(R.id.loadsave_save_to_new_slot);
LayoutParams params = slotTemplateButton.getLayoutParams();
slotList.removeView(slotTemplateButton);
- slotList.removeView(createNewSlot);
+
+ ViewGroup newSlotContainer = (ViewGroup) findViewById(R.id.loadsave_save_to_new_slot_container);
+ Button createNewSlot = (Button) findViewById(R.id.loadsave_save_to_new_slot);
addSavegameSlotButtons(slotList, params, Savegames.getUsedSavegameSlots());
if (!isLoading) {
- Button b = new Button(this);
- b.setLayoutParams(params);
- b.setTag(SLOT_NUMBER_CREATE_NEW_SLOT);
- b.setOnClickListener(this);
- b.setText(R.string.loadsave_save_to_new_slot);
- slotList.addView(b, params);
+ createNewSlot.setTag(SLOT_NUMBER_CREATE_NEW_SLOT);
+ createNewSlot.setOnClickListener(this);
+ } else {
+ newSlotContainer.setVisibility(View.GONE);
}
}
diff --git a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/resource/ResourceLoader.java b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/resource/ResourceLoader.java
index b2f788678..40ab41068 100644
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/resource/ResourceLoader.java
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/resource/ResourceLoader.java
@@ -29,6 +29,7 @@ public final class ResourceLoader {
private static final int mapsResourceId = AndorsTrailApplication.DEVELOPMENT_DEBUGRESOURCES ? R.array.loadresource_maps_debug : R.array.loadresource_maps;
private static DynamicTileLoader loader;
+ private static TranslationLoader translationLoader;
private static long taskStart;
private static void timingCheckpoint(String loaderName) {
long now = System.currentTimeMillis();
@@ -71,52 +72,7 @@ public final class ResourceLoader {
world.visualEffectTypes.initialize(loader);
if (AndorsTrailApplication.DEVELOPMENT_DEBUGMESSAGES) timingCheckpoint("VisualEffectLoader");
- // ========================================================================
- // Load preloaded tiles
- loader.flush();
- world.tileManager.loadPreloadedTiles(r);
- }
-
- public static void loadResourcesAsync(WorldContext world, Resources r) {
- long start = System.currentTimeMillis();
- taskStart = start;
-
-// final int mTileSize = world.tileManager.tileSize;
-//
-//
-// DynamicTileLoader loader = new DynamicTileLoader(world.tileManager.tileCache);
-// prepareTilesets(loader, mTileSize);
-// if (AndorsTrailApplication.DEVELOPMENT_DEBUGMESSAGES) timingCheckpoint("prepareTilesets");
-//
-// // ========================================================================
-// // Load various ui icons
-// /*TileManager.iconID_CHAR_HERO = */loader.prepareTileID(R.drawable.char_hero, 0);
-// /*TileManager.iconID_selection_red = */loader.prepareTileID(R.drawable.ui_selections, 0);
-// /*TileManager.iconID_selection_yellow = */loader.prepareTileID(R.drawable.ui_selections, 1);
-// /*TileManager.iconID_groundbag = */loader.prepareTileID(R.drawable.ui_icon_equipment, 0);
-// /*TileManager.iconID_boxopened = */loader.prepareTileID(R.drawable.ui_quickslots, 1);
-// /*TileManager.iconID_boxclosed = */loader.prepareTileID(R.drawable.ui_quickslots, 0);
-// /*TileManager.iconID_selection_blue = */loader.prepareTileID(R.drawable.ui_selections, 2);
-// /*TileManager.iconID_selection_purple = */loader.prepareTileID(R.drawable.ui_selections, 3);
-// /*TileManager.iconID_selection_green = */loader.prepareTileID(R.drawable.ui_selections, 4);
-// for(int i = 0; i < 5; ++i) {
-// loader.prepareTileID(R.drawable.ui_splatters1, i);
-// loader.prepareTileID(R.drawable.ui_splatters1, i+8);
-// }
-// loader.prepareTileID(R.drawable.ui_icon_immunity, 0);
-// // ========================================================================
- // ========================================================================
-//
-// // Load effects
-// world.visualEffectTypes.initialize(loader);
-// if (AndorsTrailApplication.DEVELOPMENT_DEBUGMESSAGES) timingCheckpoint("VisualEffectLoader");
-//
-// // Load preloaded tiles
-// loader.flush();
-// world.tileManager.loadPreloadedTiles(r);
-
-
- final TranslationLoader translationLoader = new TranslationLoader(r.getAssets(), r);
+ translationLoader = new TranslationLoader(r.getAssets(), r);
// ========================================================================
@@ -144,6 +100,17 @@ public final class ResourceLoader {
conditionsToLoad.recycle();
if (AndorsTrailApplication.DEVELOPMENT_DEBUGMESSAGES) timingCheckpoint("ActorConditionsTypeParser");
+
+ // ========================================================================
+ // Load preloaded tiles
+ loader.flush();
+ world.tileManager.loadPreloadedTiles(r);
+ }
+
+ public static void loadResourcesAsync(WorldContext world, Resources r) {
+ long start = System.currentTimeMillis();
+ taskStart = start;
+
// ========================================================================
// Load items
final ItemTypeParser itemTypeParser = new ItemTypeParser(loader, world.actorConditionsTypes, world.itemCategories, translationLoader);