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
f3f87c63
Commit
f3f87c63
authored
Apr 06, 2019
by
mercury233
Committed by
Unicorn369
Apr 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable changing version
parent
01104343
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
511 additions
and
521 deletions
+511
-521
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+1
-1
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+3
-3
Assets/SibylSystem/precy.cs
Assets/SibylSystem/precy.cs
+2
-2
Assets/SibylSystem/selectServer/SelectServer.cs
Assets/SibylSystem/selectServer/SelectServer.cs
+3
-13
Assets/transUI/prefab/RoomList.prefab
Assets/transUI/prefab/RoomList.prefab
+3
-3
Assets/transUI/prefab/trans_selectServer.prefab
Assets/transUI/prefab/trans_selectServer.prefab
+499
-499
No files found.
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
f3f87c63
...
...
@@ -333,7 +333,7 @@ public static class TcpHelper
deckStrings
.
Clear
();
Package
message
=
new
Package
();
message
.
Fuction
=
(
int
)
CtosMessage
.
JoinGame
;
Config
.
ClientVersion
=
(
uint
)
GameStringManager
.
helper_stringToInt
(
version
);
//
Config.ClientVersion = (uint)GameStringManager.helper_stringToInt(version);
message
.
Data
.
writer
.
Write
((
Int16
)
Config
.
ClientVersion
);
message
.
Data
.
writer
.
Write
((
byte
)
204
);
message
.
Data
.
writer
.
Write
((
byte
)
204
);
...
...
Assets/SibylSystem/Room/Room.cs
View file @
f3f87c63
...
...
@@ -748,9 +748,9 @@ public class Room : WindowServantSP
r
.
ReadByte
();
r
.
ReadByte
();
code
=
r
.
ReadInt32
();
string
hexOutput
=
"0x"
+
String
.
Format
(
"{0:X}"
,
code
);
Program
.
I
().
selectServer
.
set_version
(
hexOutput
);
RMSshow_none
(
InterString
.
Get
(
"你输入的版本号和服务器不一致,[7CFC00]YGOPro2已经智能切换版本号[-],请重新链接。"
));
//
string hexOutput = "0x"+String.Format("{0:X}", code);
//
Program.I().selectServer.set_version(hexOutput);
//
RMSshow_none(InterString.Get("你输入的版本号和服务器不一致,[7CFC00]YGOPro2已经智能切换版本号[-],请重新链接。"));
break
;
default
:
break
;
...
...
Assets/SibylSystem/precy.cs
View file @
f3f87c63
...
...
@@ -53,7 +53,7 @@ public class PrecyOcg
}
else
{
Config
.
ClientVersion
=
0x233c
;
//
Config.ClientVersion = 0x233c;
Program
.
I
().
shiftToServant
(
Program
.
I
().
ocgcore
);
}
((
CardDescription
)
Program
.
I
().
cardDescription
).
setTitle
(
path
);
...
...
@@ -78,7 +78,7 @@ public class PrecyOcg
}
else
{
Config
.
ClientVersion
=
0x233c
;
//
Config.ClientVersion = 0x233c;
Program
.
I
().
shiftToServant
(
Program
.
I
().
ocgcore
);
}
}
...
...
Assets/SibylSystem/selectServer/SelectServer.cs
View file @
f3f87c63
...
...
@@ -19,7 +19,6 @@ public class SelectServer : WindowServantSP
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"face_"
,
onClickFace
);
UIHelper
.
registEvent
(
gameObject
,
"join_"
,
onClickJoin
);
//UIHelper.registEvent(gameObject, "roomList_", onClickRoomList);
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"name_"
).
value
=
Config
.
Get
(
"name"
,
"一秒一喵机会"
);
list
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"history_"
);
UIHelper
.
registEvent
(
gameObject
,
"history_"
,
onSelected
);
...
...
@@ -27,7 +26,8 @@ public class SelectServer : WindowServantSP
inputIP
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"ip_"
);
inputPort
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"port_"
);
inputPsw
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"psw_"
);
inputVersion
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"version_"
);
//inputVersion = UIHelper.getByName<UIInput>(gameObject, "version_");
set_version
(
"0x"
+
String
.
Format
(
"{0:X}"
,
Config
.
ClientVersion
));
SetActiveFalse
();
}
...
...
@@ -76,7 +76,7 @@ public class SelectServer : WindowServantSP
inputIP
.
value
=
ip
;
inputPort
.
value
=
port
;
inputPsw
.
value
=
psw
;
inputVersion
.
value
=
version
;
//
inputVersion.value = version;
}
public
override
void
show
()
...
...
@@ -143,11 +143,6 @@ public class SelectServer : WindowServantSP
string
portString
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"port_"
).
value
;
string
pswString
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"psw_"
).
value
;
string
versionString
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"version_"
).
value
;
if
(
versionString
==
""
)
{
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"version_"
).
value
=
"0x1349"
;
versionString
=
"0x1349"
;
}
KF_onlineGame
(
Name
,
ipString
,
portString
,
versionString
,
pswString
);
}
...
...
@@ -162,11 +157,6 @@ public class SelectServer : WindowServantSP
string
portString
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"port_"
).
value
;
string
pswString
=
"L"
;
string
versionString
=
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"version_"
).
value
;
if
(
versionString
==
""
)
{
UIHelper
.
getByName
<
UIInput
>(
gameObject
,
"version_"
).
value
=
"0x1348"
;
versionString
=
"0x1348"
;
}
KF_onlineGame
(
Name
,
ipString
,
portString
,
versionString
,
pswString
);
}
...
...
Assets/transUI/prefab/RoomList.prefab
View file @
f3f87c63
...
...
@@ -594,7 +594,7 @@ Transform:
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
195152
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalPosition
:
{
x
:
30
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
-
{
fileID
:
419752
}
...
...
@@ -745,7 +745,7 @@ Transform:
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
196122
}
m_LocalRotation
:
{
x
:
0
,
y
:
0
,
z
:
0
,
w
:
1
}
m_LocalPosition
:
{
x
:
3
,
y
:
0
,
z
:
0
}
m_LocalPosition
:
{
x
:
3
03
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
428902
}
...
...
@@ -1762,7 +1762,7 @@ MonoBehaviour:
keepCrispWhenShrunk
:
1
mTrueTypeFont
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
mFont
:
{
fileID
:
0
}
mText
:
"
\u623F\u95F4\u5
40D
\uFF1A
"
mText
:
"
\u623F\u95F4\u5
BC6\u7801
\uFF1A
"
mFontSize
:
25
mFontStyle
:
0
mAlignment
:
1
...
...
Assets/transUI/prefab/trans_selectServer.prefab
View file @
f3f87c63
This diff is collapsed.
Click to expand it.
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