Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mercury233
ygopro2
Commits
096110bd
Commit
096110bd
authored
Feb 24, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update library-release.aar && Download closeup
parent
4d4fadae
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
785 additions
and
89 deletions
+785
-89
Assets/Plugins/Android/library-release.aar
Assets/Plugins/Android/library-release.aar
+0
-0
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+27
-0
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+4
-6
Assets/YGOSharp/CardsManager.cs
Assets/YGOSharp/CardsManager.cs
+5
-0
Assets/transUI/prefab/trans_menu.prefab
Assets/transUI/prefab/trans_menu.prefab
+748
-82
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/Plugins/Android/library-release.aar
View file @
096110bd
No preview for this file type
Assets/SibylSystem/Menu/Menu.cs
View file @
096110bd
...
...
@@ -21,6 +21,8 @@ public class Menu : WindowServantSP
UIHelper
.
registEvent
(
gameObject
,
"single_"
,
onClickPizzle
);
//UIHelper.registEvent(gameObject, "ai_", onClickAI);
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"joinQQ_"
,
onClickJoinQQ
);
UIHelper
.
registEvent
(
gameObject
,
"download_"
,
onClickDownload
);
//(new Thread(up)).Start();
}
...
...
@@ -126,6 +128,31 @@ public class Menu : WindowServantSP
Program
.
I
().
shiftToServant
(
Program
.
I
().
selectDeck
);
}
void
onClickJoinQQ
()
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
Application
.
OpenURL
(
"https://jq.qq.com/?_wv=1027&k=50MZVQA"
);
#elif UNITY_ANDROID //Android
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
jo
.
Call
(
"doJoinQQGroup"
,
"UHm3h3hSrmgp-iYqMiZcc2zO5J1Q8OyW"
);
#endif
}
void
onClickDownload
()
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
Application
.
OpenURL
(
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/closeup_version1.0.zip"
);
#elif UNITY_ANDROID //Android
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
if
(!
File
.
Exists
(
"updates/closeup_version1.0.txt"
))
//用于检查更新
{
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/closeup_version1.0.zip"
);
//下载并解压
}
else
{
jo
.
Call
(
"showToast"
,
"已下载,无需再次下载!"
);
}
#endif
}
public
static
void
deleteShell
()
{
try
...
...
Assets/SibylSystem/Program.cs
View file @
096110bd
...
...
@@ -287,7 +287,7 @@ public class Program : MonoBehaviour
//YGOPro2 Paths (https://github.com/Unicorn369/YGOPro2_Droid/tree/Test)
//string GamePaths = "/storage/emulated/0/ygopro2/";
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygocore.zip"
;
var
www
=
new
WWW
(
filePath
);
...
...
@@ -300,7 +300,7 @@ public class Program : MonoBehaviour
System
.
IO
.
Directory
.
SetCurrentDirectory
(
GamePaths
);
#elif UNITY_IPHONE //iPhone
string
GamePaths
=
Application
.
persistentDataPath
+
"/ygopro2/"
;
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygocore.zip"
;
var
www
=
new
WWW
(
filePath
);
...
...
@@ -394,14 +394,12 @@ public class Program : MonoBehaviour
#if UNITY_ANDROID //Android Java Test
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
if
(!
File
.
Exists
(
"updates/image_version1.0.txt"
))
//用于检查更新
if
(!
File
.
Exists
(
"updates/image_version1.0.txt"
))
//用于检查更新
{
if
(
File
.
Exists
(
"pics.zip"
))
//YGOMobile内置的卡图包
if
(
File
.
Exists
(
"pics.zip"
))
//YGOMobile内置的卡图包
{
jo
.
Call
(
"doExtractZipFile"
,
"pics.zip"
,
"./"
);
File
.
Create
(
"updates/image_version1.0.txt"
);
//} else {
// jo.Call("doDownloadZipFile", "http://download.ygopro.win/ygopro2/Android-Image-Data.zip");//下载并解压,完成后删除
}
}
#endif
...
...
Assets/YGOSharp/CardsManager.cs
View file @
096110bd
...
...
@@ -25,6 +25,11 @@ namespace YGOSharp
nullString
+=
"\r\n「Android」\r\n[url=https://github.com/Unicorn369/YGOPro2_Droid][u]https://github.com/Unicorn369/YGOPro2_Droid[/u][/url]"
;
//nullString += "\r\nWindows:[url=https://github.com/lllyasviel/YGOProUnity_V2][u]https://github.com/lllyasviel/YGOProUnity_V2[/u][/url]";
nullString
+=
"\r\n\r\n「Windows」\r\n[url=https://github.com/mercury233/ygopro2][u]https://github.com/mercury233/ygopro2[/u][/url]"
;
nullString
+=
"\r\n\r\n\r\n"
;
nullString
+=
"欢迎加入QQ群:"
;
nullString
+=
"\r\n①:[url=https://jq.qq.com/?_wv=1027&k=5nq6xJe][u]649612818[/u][/url]"
;
nullString
+=
"\r\n③:[url=https://jq.qq.com/?_wv=1027&k=50MZVQA][u]831010207[/u][/url]"
;
nullString
+=
"\r\n②:[url=https://jq.qq.com/?_wv=1027&k=5idyod3][u]559276772[/u][/url]"
;
using
(
SqliteConnection
connection
=
new
SqliteConnection
(
"Data Source="
+
databaseFullPath
))
{
connection
.
Open
();
...
...
Assets/transUI/prefab/trans_menu.prefab
View file @
096110bd
This diff is collapsed.
Click to expand it.
ProjectSettings/ProjectSettings.asset
View file @
096110bd
...
...
@@ -229,7 +229,7 @@ PlayerSettings:
AndroidSplashScreenScale
:
0
androidSplashScreen
:
{
fileID
:
0
}
AndroidKeystoreName
:
ygopro.jks
AndroidKeyaliasName
:
AndroidKeyaliasName
:
ygopro
AndroidTVCompatibility
:
0
AndroidIsGame
:
0
androidEnableBanner
:
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment