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
192291f8
Commit
192291f8
authored
May 26, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test mycard avatar
parent
acf17130
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
3 deletions
+48
-3
Assets/SibylSystem/MyCard/MyCardHelper.cs
Assets/SibylSystem/MyCard/MyCardHelper.cs
+33
-0
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+1
-1
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+12
-0
Assets/transUI/prefab/trans_menu.prefab
Assets/transUI/prefab/trans_menu.prefab
+1
-1
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/SibylSystem/MyCard/MyCardHelper.cs
View file @
192291f8
...
@@ -3,6 +3,7 @@ using System;
...
@@ -3,6 +3,7 @@ using System;
using
System.Text
;
using
System.Text
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.IO
;
using
System.Web
;
[
Serializable
]
[
Serializable
]
public
class
LoginUserObject
{
public
class
LoginUserObject
{
...
@@ -103,4 +104,36 @@ public class MyCardHelper {
...
@@ -103,4 +104,36 @@ public class MyCardHelper {
fail_reason
=
null
;
fail_reason
=
null
;
return
ret
;
return
ret
;
}
}
public
static
void
DownloadFace
(
string
name
)
{
try
{
WWW
www
=
new
WWW
(
"https://api.moecube.com/accounts/users/"
+
HttpUtility
.
UrlEncode
(
name
)+
".avatar"
);
while
(!
www
.
isDone
)
{
if
(
Application
.
internetReachability
==
NetworkReachability
.
NotReachable
||
!
string
.
IsNullOrEmpty
(
www
.
error
))
{
return
;
}
}
string
result
=
www
.
text
;
if
(
result
==
"{\"message\":\"Not Found\"}"
)
return
;
DownloadFaceFromUrl
(
name
,
result
);
}
catch
(
Exception
e
)
{
return
;
}
}
private
static
void
DownloadFaceFromUrl
(
string
nameFace
,
string
url
)
{
string
face
=
"textures/face/"
+
nameFace
+
".png"
;
HttpDldFile
df
=
new
HttpDldFile
();
df
.
Download
(
url
,
face
);
if
(
File
.
Exists
(
face
))
{
Texture2D
Face
=
UIHelper
.
getTexture2D
(
face
);
UIHelper
.
faces
.
Remove
(
nameFace
);
UIHelper
.
faces
.
Add
(
nameFace
,
Face
);
}
}
}
}
Assets/SibylSystem/Program.cs
View file @
192291f8
...
@@ -1115,7 +1115,7 @@ public class Program : MonoBehaviour
...
@@ -1115,7 +1115,7 @@ public class Program : MonoBehaviour
string
FPS
=
m_FPS
.
ToString
();
string
FPS
=
m_FPS
.
ToString
();
try
{
FPS
=
FPS
.
Substring
(
0
,
5
);
}
catch
{}
try
{
FPS
=
FPS
.
Substring
(
0
,
5
);
}
catch
{}
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver 1.034.9-B] "
+
"FPS: "
+
FPS
);
GUI
.
Label
(
new
Rect
(
10
,
5
,
200
,
200
),
"[Ver 1.034.9-B
-test1
] "
+
"FPS: "
+
FPS
);
}
}
void
Update
()
void
Update
()
...
...
Assets/SibylSystem/Room/Room.cs
View file @
192291f8
...
@@ -5,6 +5,7 @@ using System.IO;
...
@@ -5,6 +5,7 @@ using System.IO;
using
System.Text
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
System.Text.RegularExpressions
;
using
YGOSharp.Network.Enums
;
using
YGOSharp.Network.Enums
;
using
System.Threading
;
public
class
Room
:
WindowServantSP
public
class
Room
:
WindowServantSP
{
{
...
@@ -163,6 +164,17 @@ public class Room : WindowServantSP
...
@@ -163,6 +164,17 @@ public class Room : WindowServantSP
RoomPlayer
player
=
new
RoomPlayer
();
RoomPlayer
player
=
new
RoomPlayer
();
player
.
name
=
name
;
player
.
name
=
name
;
player
.
prep
=
false
;
player
.
prep
=
false
;
if
(
Program
.
I
().
mycard
.
isMatching
&&
name
!=
"********"
)
//athletic match name mask
{
(
new
Thread
(()
=>
{
MyCardHelper
.
DownloadFace
(
name
);
if
(
isShowed
)
realize
();
else
if
(
Program
.
I
().
ocgcore
.
isShowed
&&
Program
.
I
().
ocgcore
.
gameInfo
)
Program
.
I
().
ocgcore
.
gameInfo
.
realize
();
})).
Start
();
}
roomPlayers
[
pos
]
=
player
;
roomPlayers
[
pos
]
=
player
;
realize
();
realize
();
UIHelper
.
Flash
();
UIHelper
.
Flash
();
...
...
Assets/transUI/prefab/trans_menu.prefab
View file @
192291f8
...
@@ -1417,7 +1417,7 @@ MonoBehaviour:
...
@@ -1417,7 +1417,7 @@ MonoBehaviour:
keepCrispWhenShrunk
:
1
keepCrispWhenShrunk
:
1
mTrueTypeFont
:
{
fileID
:
12800000
,
guid
:
f775853fdfd14bb47934543e95c3bae3
,
type
:
3
}
mTrueTypeFont
:
{
fileID
:
12800000
,
guid
:
f775853fdfd14bb47934543e95c3bae3
,
type
:
3
}
mFont
:
{
fileID
:
0
}
mFont
:
{
fileID
:
0
}
mText
:
KoishiPro2 iOS 1.034.9-B
mText
:
KoishiPro2 iOS 1.034.9-B
-test1
mFontSize
:
18
mFontSize
:
18
mFontStyle
:
0
mFontStyle
:
0
mAlignment
:
1
mAlignment
:
1
...
...
ProjectSettings/ProjectSettings.asset
View file @
192291f8
...
@@ -123,7 +123,7 @@ PlayerSettings:
...
@@ -123,7 +123,7 @@ PlayerSettings:
16:10:
1
16:10:
1
16:9:
1
16:9:
1
Others
:
1
Others
:
1
bundleVersion
:
1.034.9-B
bundleVersion
:
1.034.9-B
-test1
preloadedAssets
:
[]
preloadedAssets
:
[]
metroInputSource
:
0
metroInputSource
:
0
m_HolographicPauseOnTrackingLoss
:
1
m_HolographicPauseOnTrackingLoss
:
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