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
Xu Chenxi
ygopro2
Commits
a6c4c4c5
Commit
a6c4c4c5
authored
Jan 27, 2019
by
Unicorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调
parent
29cdb05f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
44 deletions
+55
-44
Assets/SibylSystem/Ocgcore/OCGobjects/gameField.cs
Assets/SibylSystem/Ocgcore/OCGobjects/gameField.cs
+7
-7
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/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 @
a6c4c4c5
...
...
@@ -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/ResourceManagers/GameTextureManager.cs
View file @
a6c4c4c5
...
...
@@ -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 @
a6c4c4c5
676 Bytes
Assets/StreamingAssets/null.png.meta
0 → 100644
View file @
a6c4c4c5
fileFormatVersion: 2
guid: 7cc6adf5988b03345bc3fbbdb145cbab
timeCreated: 1548561685
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/transUI/prefab/RoomList.prefab.meta
0 → 100644
View file @
a6c4c4c5
fileFormatVersion: 2
guid: 2ee19dceffad869469d4ae6ce0acc3c5
timeCreated: 1547880684
licenseType: Free
NativeFormatImporter:
mainObjectFileID: -1
userData:
assetBundleName:
assetBundleVariant:
Assets/transUI/prefab/selectServerWithRoomlist.prefab.meta
0 → 100644
View file @
a6c4c4c5
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