Commit ff9478f6 authored by Unicorn369's avatar Unicorn369

Update

parent 0e21e218
...@@ -311,6 +311,17 @@ public class Program : MonoBehaviour ...@@ -311,6 +311,17 @@ public class Program : MonoBehaviour
ExtractZipFile(bytes, ANDROID_GAME_PATH); ExtractZipFile(bytes, ANDROID_GAME_PATH);
//File.Create(ANDROID_GAME_PATH + ".nomedia"); //File.Create(ANDROID_GAME_PATH + ".nomedia");
} }
if (!File.Exists(ANDROID_GAME_PATH + "updates/ui.txt") || !File.Exists(ANDROID_GAME_PATH + "texture/ui/bg_of_right_game_buttons.png")
|| !File.Exists(ANDROID_GAME_PATH + "texture/ui/bg_of_right_card_searcher2.png"))
{
string filePath = Application.streamingAssetsPath + "/ui.zip";
var www = new WWW(filePath);
while (!www.isDone) { }
byte[] bytes = www.bytes;
ExtractZipFile(bytes, ANDROID_GAME_PATH);
}
Environment.CurrentDirectory = ANDROID_GAME_PATH; Environment.CurrentDirectory = ANDROID_GAME_PATH;
System.IO.Directory.SetCurrentDirectory(ANDROID_GAME_PATH); System.IO.Directory.SetCurrentDirectory(ANDROID_GAME_PATH);
...@@ -411,14 +422,14 @@ public class Program : MonoBehaviour ...@@ -411,14 +422,14 @@ public class Program : MonoBehaviour
jo.Call("doExtractZipFile", "/storage/emulated/0/ygocore/pics.zip", ANDROID_GAME_PATH); jo.Call("doExtractZipFile", "/storage/emulated/0/ygocore/pics.zip", ANDROID_GAME_PATH);
File.Copy("updates/version2.0.txt", "updates/image_version1.1.txt", true); File.Copy("updates/version2.0.txt", "updates/image_version1.1.txt", true);
} else { } else {
Application.OpenURL("https://www.taptap.com/app/37972"); //Application.OpenURL("https://www.taptap.com/app/37972");
jo.Call("showToast", "没有发现卡图包,是否未安装YGOMobile"); jo.Call("showToast", "没有发现卡图包,是否未安装YGOMobile");
} }
} }
/** /**
* 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android) * 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android)
* 经测试,只有Android 6.0以上才能正常使用。为了让Android 6.0以下的也能酬和使用立绘效果,需做判断 * 经测试,只有Android 6.0以上才能正常使用。为了让Android 6.0以下的也能凑合使用立绘效果,需做判断
* *
* public boolean APIVersion() { * public boolean APIVersion() {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { * if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
......
...@@ -399,13 +399,13 @@ public class DeckManager : ServantWithCardDescription ...@@ -399,13 +399,13 @@ public class DeckManager : ServantWithCardDescription
if (detailShowed) if (detailShowed)
{ {
gameObjectDetailedSearch.GetComponent<UITexture>().height = 700; gameObjectDetailedSearch.GetComponent<UITexture>().height = 700;
iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 230 - 115f * Screen.height / 700f, Screen.height * 0.5f, 0)), 0.6f); iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 460 - 115f * Screen.height / 700f, Screen.height * 0.5f, 0)), 0.6f);
reShowBar(0, 230 + 230 * Screen.height / 700f); reShowBar(0, 460 + 460 * Screen.height/ 700f);
} }
else else
{ {
gameObjectDetailedSearch.GetComponent<UITexture>().height = 700; gameObjectDetailedSearch.GetComponent<UITexture>().height = 700;
iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 230 - 115f * Screen.height / 700f, Screen.height * 1.5f, 0)), 0.6f); iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 460 - 115f * Screen.height / 700f, Screen.height * 1.5f, 0)), 0.6f);
reShowBar(0, 230); reShowBar(0, 230);
} }
} }
...@@ -415,13 +415,13 @@ public class DeckManager : ServantWithCardDescription ...@@ -415,13 +415,13 @@ public class DeckManager : ServantWithCardDescription
if (detailShowed) if (detailShowed)
{ {
gameObjectDetailedSearch.GetComponent<UITexture>().height = Screen.height; gameObjectDetailedSearch.GetComponent<UITexture>().height = Screen.height;
iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 345f, Screen.height * 0.5f, 0)), 0.6f); iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 575f, Screen.height * 0.5f, 0)), 0.6f);
reShowBar(0, 460); reShowBar(0, 460 * 2);
} }
else else
{ {
gameObjectDetailedSearch.GetComponent<UITexture>().height = Screen.height; gameObjectDetailedSearch.GetComponent<UITexture>().height = Screen.height;
iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 345f, Screen.height * 1.5f, 0)), 0.6f); iTween.MoveTo(gameObjectDetailedSearch, Program.camera_main_2d.ScreenToWorldPoint(new Vector3(Screen.width - 575f, Screen.height * 1.5f, 0)), 0.6f);
reShowBar(0, 230); reShowBar(0, 230);
} }
} }
......
fileFormatVersion: 2
guid: d59a7d6223068504999e580d2aeb2c1e
timeCreated: 1553312270
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
...@@ -233,9 +233,9 @@ Transform: ...@@ -233,9 +233,9 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 449694} - {fileID: 449694}
- {fileID: 460298}
- {fileID: 469404} - {fileID: 469404}
- {fileID: 443180} - {fileID: 443180}
- {fileID: 460298}
m_Father: {fileID: 487304} m_Father: {fileID: 487304}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -274,12 +274,12 @@ Transform: ...@@ -274,12 +274,12 @@ Transform:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 195922} m_GameObject: {fileID: 195922}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 147, y: 4.5, z: 0} m_LocalPosition: {x: -3, y: 4.5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 496978} - {fileID: 496978}
m_Father: {fileID: 428130} m_Father: {fileID: 428130}
m_RootOrder: 3 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &449694 --- !u!4 &449694
Transform: Transform:
...@@ -314,12 +314,12 @@ Transform: ...@@ -314,12 +314,12 @@ Transform:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 178052} m_GameObject: {fileID: 178052}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3, y: 4.5, z: 0} m_LocalPosition: {x: 147, y: 4.5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 442904} - {fileID: 442904}
m_Father: {fileID: 428130} m_Father: {fileID: 428130}
m_RootOrder: 1 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &469404 --- !u!4 &469404
Transform: Transform:
...@@ -333,7 +333,7 @@ Transform: ...@@ -333,7 +333,7 @@ Transform:
m_Children: m_Children:
- {fileID: 442446} - {fileID: 442446}
m_Father: {fileID: 428130} m_Father: {fileID: 428130}
m_RootOrder: 2 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &477590 --- !u!4 &477590
Transform: Transform:
...@@ -368,7 +368,7 @@ Transform: ...@@ -368,7 +368,7 @@ Transform:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 139314} m_GameObject: {fileID: 139314}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -450, y: -180, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 481836} - {fileID: 481836}
...@@ -991,7 +991,7 @@ MonoBehaviour: ...@@ -991,7 +991,7 @@ MonoBehaviour:
autoResizeBoxCollider: 0 autoResizeBoxCollider: 0
hideIfOffScreen: 0 hideIfOffScreen: 0
keepAspectRatio: 0 keepAspectRatio: 0
aspectRatio: 2.875 aspectRatio: 2.640625
mType: 0 mType: 0
mFillDirection: 4 mFillDirection: 4
mFillAmount: 1 mFillAmount: 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment