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
0b888eb7
Commit
0b888eb7
authored
Jan 27, 2019
by
Unicorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调
parent
3fe57757
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
69 additions
and
54 deletions
+69
-54
Assets/SibylSystem/Ocgcore/OCGobjects/gameField.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameField.cs
+7
-7
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+14
-10
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+22
-37
Assets/StreamingAssets/null.png
Assets/StreamingAssets/null.png
+0
-0
Assets/StreamingAssets/null.png.meta
Assets/StreamingAssets/null.png.meta
+8
-0
Assets/StreamingAssets/ygocore.zip
Assets/StreamingAssets/ygocore.zip
+0
-0
Assets/transUI/prefab/RoomList.prefab.meta
Assets/transUI/prefab/RoomList.prefab.meta
+9
-0
Assets/transUI/prefab/selectServerWithRoomlist.prefab.meta
Assets/transUI/prefab/selectServerWithRoomlist.prefab.meta
+9
-0
No files found.
Assets/SibylSystem/Ocgcore/OCGobjects/gameField.cs
View file @
0b888eb7
...
...
@@ -431,21 +431,21 @@ public class GameField : OCGobject
{
tex
=
UIHelper
.
getTexture2D
(
"expansions/pics/field/"
+
code
.
ToString
()
+
".png"
);
}
else
if
(
File
.
Exists
(
"expansions/pics/field/"
+
code
.
ToString
()
+
".jpg"
))
{
tex
=
UIHelper
.
getTexture2D
(
"expansions/pics/field/"
+
code
.
ToString
()
+
".jpg"
);
}
else
if
(
File
.
Exists
(
"pics/field/"
+
code
.
ToString
()
+
".png"
))
{
tex
=
UIHelper
.
getTexture2D
(
"pics/field/"
+
code
.
ToString
()
+
".png"
);
}
else
if
(
File
.
Exists
(
"pic
s
/field/"
+
code
.
ToString
()
+
".jpg"
))
else
if
(
File
.
Exists
(
"pic
ture
/field/"
+
code
.
ToString
()
+
".jpg"
))
{
tex
=
UIHelper
.
getTexture2D
(
"pics/field/"
+
code
.
ToString
()
+
".jpg"
);
tex
=
UIHelper
.
getTexture2D
(
"picture/field/"
+
code
.
ToString
()
+
".jpg"
);
}
else
if
(
File
.
Exists
(
"expansions/pics/field/"
+
code
.
ToString
()
+
".jpg"
))
{
tex
=
UIHelper
.
getTexture2D
(
"expansions/pics/field/"
+
code
.
ToString
()
+
".jpg"
);
}
else
{
tex
=
UIHelper
.
getTexture2D
(
"pic
ture
/field/"
+
code
.
ToString
()
+
".jpg"
);
tex
=
UIHelper
.
getTexture2D
(
"pic
s
/field/"
+
code
.
ToString
()
+
".jpg"
);
}
if
(
tex
!=
null
)
{
...
...
Assets/SibylSystem/Program.cs
View file @
0b888eb7
...
...
@@ -337,8 +337,9 @@ public class Program : MonoBehaviour
GameStringManager
.
initialize
(
"expansions/strings.conf"
);
}
YGOSharp
.
BanlistManager
.
initialize
(
"lflist.conf"
);
//YGOMobile Paths
YGOSharp
.
CardsManager
.
initialize
(
"cards.cdb"
);
FileInfo
[]
fileInfos
=
(
new
DirectoryInfo
(
"cdb"
)).
GetFiles
().
OrderByDescending
(
x
=>
x
.
Name
).
ToArray
();
/*
FileInfo[] fileInfos = (new DirectoryInfo("cdb")).GetFiles().OrderByDescending(x => x.Name).ToArray();
//FileInfo[] fileInfos = (new DirectoryInfo("cdb" + AppLanguage.LanguageDir())).GetFiles().OrderByDescending(x => x.Name).ToArray();//System Language
for (int i = 0; i < fileInfos.Length; i++)
{
...
...
@@ -350,12 +351,12 @@ public class Program : MonoBehaviour
//YGOSharp.CardsManager.initialize("cdb" + AppLanguage.LanguageDir() + "/" + fileInfos[i].Name);//System Language
}
}
}
}
*/
if
(
Directory
.
Exists
(
"expansions"
))
//if (Directory.Exists("expansions" + AppLanguage.LanguageDir()))//System Language
{
fileInfos
=
(
new
DirectoryInfo
(
"expansions"
)).
GetFiles
().
OrderByDescending
(
x
=>
x
.
Name
).
ToArray
();
FileInfo
[]
fileInfos
=
(
new
DirectoryInfo
(
"expansions"
)).
GetFiles
().
OrderByDescending
(
x
=>
x
.
Name
).
ToArray
();
//fileInfos = (new DirectoryInfo("expansions" + AppLanguage.LanguageDir())).GetFiles().OrderByDescending(x => x.Name).ToArray();//System Language
for
(
int
i
=
0
;
i
<
fileInfos
.
Length
;
i
++)
{
...
...
@@ -371,16 +372,19 @@ public class Program : MonoBehaviour
}
fileInfos
=
(
new
DirectoryInfo
(
"pack"
)).
GetFiles
();
//fileInfos = (new DirectoryInfo("pack" + AppLanguage.LanguageDir())).GetFiles();
for
(
int
i
=
0
;
i
<
fileInfos
.
Length
;
i
++)
if
(
Directory
.
Exists
(
"pack"
))
{
if
(
fileInfos
[
i
].
Name
.
Length
>
3
)
FileInfo
[]
fileInfos
=
(
new
DirectoryInfo
(
"pack"
)).
GetFiles
();
//fileInfos = (new DirectoryInfo("pack" + AppLanguage.LanguageDir())).GetFiles();
for
(
int
i
=
0
;
i
<
fileInfos
.
Length
;
i
++)
{
if
(
fileInfos
[
i
].
Name
.
Substring
(
fileInfos
[
i
].
Name
.
Length
-
3
,
3
)
==
".db"
)
if
(
fileInfos
[
i
].
Name
.
Length
>
3
)
{
YGOSharp
.
PacksManager
.
initialize
(
"pack/"
+
fileInfos
[
i
].
Name
);
//YGOSharp.PacksManager.initialize("pack" + AppLanguage.LanguageDir() + "/" + fileInfos[i].Name);
if
(
fileInfos
[
i
].
Name
.
Substring
(
fileInfos
[
i
].
Name
.
Length
-
3
,
3
)
==
".db"
)
{
YGOSharp
.
PacksManager
.
initialize
(
"pack/"
+
fileInfos
[
i
].
Name
);
//YGOSharp.PacksManager.initialize("pack" + AppLanguage.LanguageDir() + "/" + fileInfos[i].Name);
}
}
}
}
...
...
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
0b888eb7
...
...
@@ -332,15 +332,6 @@ public class GameTextureManager
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
bool
Iam8
=
false
;
//if (!File.Exists(path))
//{
// Iam8 = true;
// path = "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg";
//}
if
(!
File
.
Exists
(
path
))
{
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".png"
;
}
if
(!
File
.
Exists
(
path
))
{
Iam8
=
true
;
...
...
@@ -348,12 +339,13 @@ public class GameTextureManager
}
if
(!
File
.
Exists
(
path
))
{
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".png"
;
Iam8
=
true
;
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
Iam8
=
true
;
path
=
"pic
s
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
path
=
"pic
ture/cardIn8thEdition
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
...
...
@@ -612,15 +604,6 @@ public class GameTextureManager
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
bool
Iam8
=
false
;
//if (!File.Exists(path))
//{
// Iam8 = true;
// path = "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg";
//}
if
(!
File
.
Exists
(
path
))
{
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".png"
;
}
if
(!
File
.
Exists
(
path
))
{
Iam8
=
true
;
...
...
@@ -628,12 +611,13 @@ public class GameTextureManager
}
if
(!
File
.
Exists
(
path
))
{
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".png"
;
Iam8
=
true
;
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
Iam8
=
true
;
path
=
"pic
s
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
path
=
"pic
ture/cardIn8thEdition
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
...
...
@@ -653,11 +637,7 @@ public class GameTextureManager
* 暂时只能直接贴图,以后再处理
*/
#
elif
UNITY_ANDROID
||
UNITY_IPHONE
//Android、iPhone
path
=
"picture/null/"
+
pic
.
code
.
ToString
()
+
".png"
;
if
(!
File
.
Exists
(
path
))
{
path
=
"picture/null.png"
;
}
path
=
"picture/null.png"
;
byte
[]
data
;
using
(
FileStream
file
=
new
FileStream
(
path
,
FileMode
.
Open
,
FileAccess
.
Read
))
...
...
@@ -667,6 +647,19 @@ public class GameTextureManager
file
.
Read
(
data
,
0
,
(
int
)
file
.
Length
);
}
pic
.
data
=
data
;
//#elif UNITY_IPHONE //iPhone Test (Android not support)
//path = Application.streamingAssetsPath + "/closeup/" + pic.code.ToString() + ".png";
//if (File.Exists(path))
//{
// www = new WWW(path);
// byte[] data = www.bytes;
// pic.data = data;
//} else {
// path = Application.streamingAssetsPath + "/null.png"
// www = new WWW(path);
// byte[] data = www.bytes;
// pic.data = data;
//}
#
endif
}
else
...
...
@@ -803,25 +796,17 @@ public class GameTextureManager
{
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
//if (!File.Exists(path))
//{
// path = "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg";
//}
if
(!
File
.
Exists
(
path
))
{
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".png"
;
}
if
(!
File
.
Exists
(
path
))
{
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".
pn
g"
;
path
=
"pics/"
+
pic
.
code
.
ToString
()
+
".
jp
g"
;
}
if
(!
File
.
Exists
(
path
))
{
path
=
"pic
s
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
path
=
"pic
ture/cardIn8thEdition
/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
#
if
UNITY_ANDROID
||
UNITY_IPHONE
//Android、iPhone
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
...
...
Assets/StreamingAssets/null.png
0 → 100644
View file @
0b888eb7
676 Bytes
Assets/StreamingAssets/null.png.meta
0 → 100644
View file @
0b888eb7
fileFormatVersion: 2
guid: 7cc6adf5988b03345bc3fbbdb145cbab
timeCreated: 1548561685
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/StreamingAssets/ygocore.zip
View file @
0b888eb7
No preview for this file type
Assets/transUI/prefab/RoomList.prefab.meta
0 → 100644
View file @
0b888eb7
fileFormatVersion: 2
guid: 2ee19dceffad869469d4ae6ce0acc3c5
timeCreated: 1547880684
licenseType: Free
NativeFormatImporter:
mainObjectFileID: -1
userData:
assetBundleName:
assetBundleVariant:
Assets/transUI/prefab/selectServerWithRoomlist.prefab.meta
0 → 100644
View file @
0b888eb7
fileFormatVersion: 2
guid: aeecebc57be069842a18f05155794f6c
timeCreated: 1547880685
licenseType: Free
NativeFormatImporter:
mainObjectFileID: -1
userData:
assetBundleName:
assetBundleVariant:
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