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
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
nanahira
ygopro2
Commits
3812e3d9
Commit
3812e3d9
authored
May 15, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unfinished
parent
077a8595
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
413 additions
and
10 deletions
+413
-10
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+10
-0
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
+2
-2
Assets/SibylSystem/MyCard/MyCard.cs
Assets/SibylSystem/MyCard/MyCard.cs
+375
-0
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+11
-3
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+10
-1
Assets/SibylSystem/Room/Room.cs
Assets/SibylSystem/Room/Room.cs
+2
-2
Assets/SibylSystem/selectServer/SelectServer.cs
Assets/SibylSystem/selectServer/SelectServer.cs
+2
-1
Assets/transUI/prefab/trans_myCardLogin.prefab
Assets/transUI/prefab/trans_myCardLogin.prefab
+1
-1
No files found.
Assets/SibylSystem/Menu/Menu.cs
View file @
3812e3d9
...
...
@@ -17,6 +17,7 @@ public class Menu : WindowServantSP
UIHelper
.
registEvent
(
gameObject
,
"setting_"
,
onClickSetting
);
UIHelper
.
registEvent
(
gameObject
,
"deck_"
,
onClickSelectDeck
);
UIHelper
.
registEvent
(
gameObject
,
"online_"
,
onClickOnline
);
UIHelper
.
registEvent
(
gameObject
,
"myCard_"
,
onClickMyCard
);
UIHelper
.
registEvent
(
gameObject
,
"replay_"
,
onClickReplay
);
UIHelper
.
registEvent
(
gameObject
,
"single_"
,
onClickPizzle
);
//UIHelper.registEvent(gameObject, "ai_", onClickAI);
...
...
@@ -107,6 +108,11 @@ public class Menu : WindowServantSP
Program
.
I
().
shiftToServant
(
Program
.
I
().
selectServer
);
}
void
onClickMyCard
()
{
Program
.
I
().
shiftToServant
(
Program
.
I
().
mycard
);
}
void
onClickAI
()
{
Program
.
I
().
shiftToServant
(
Program
.
I
().
aiRoom
);
...
...
@@ -199,6 +205,10 @@ public class Menu : WindowServantSP
{
return
;
}
if
(
Program
.
I
().
mycard
==
null
)
{
return
;
}
try
{
if
(
File
.
Exists
(
"commamd.shell"
)
==
false
)
...
...
Assets/SibylSystem/MonoHelpers/TcpHelper.cs
View file @
3812e3d9
...
...
@@ -191,7 +191,7 @@ public static class TcpHelper
if
(
onDisConnected
==
true
)
{
onDisConnected
=
false
;
Program
.
I
().
ocgcore
.
returnServant
=
Program
.
I
().
selectServer
;
Program
.
I
().
ocgcore
.
setDefaultReturnServant
()
;
if
(
TcpHelper
.
tcpClient
!=
null
)
{
if
(
TcpHelper
.
tcpClient
.
Connected
)
...
...
@@ -206,7 +206,7 @@ public static class TcpHelper
{
if
(
Program
.
I
().
menu
.
isShowed
==
false
)
{
Program
.
I
().
shiftToServant
(
Program
.
I
().
selectServer
);
Program
.
I
().
shiftToServant
(
Program
.
I
().
mycard
.
isMatchingWithMyCard
?
Program
.
I
().
mycard
:
Program
.
I
().
selectServer
);
}
if
(!
roomListChecking
)
{
...
...
Assets/SibylSystem/MyCard/MyCard.cs
0 → 100644
View file @
3812e3d9
This diff is collapsed.
Click to expand it.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
3812e3d9
...
...
@@ -755,13 +755,21 @@ public class Ocgcore : ServantWithCardDescription
}
}
public
void
onExit
()
public
void
setDefaultReturnServant
()
{
if
(
Program
.
I
().
mycard
.
isMatchingWithMyCard
)
{
returnServant
=
Program
.
I
().
mycard
;
}
else
{
returnServant
=
Program
.
I
().
selectServer
;
}
}
public
void
onExit
()
{
if
(
TcpHelper
.
tcpClient
!=
null
)
{
if
(
TcpHelper
.
tcpClient
.
Connected
)
{
Program
.
I
().
ocgcore
.
returnServant
=
Program
.
I
().
selectServer
;
setDefaultReturnServant
()
;
TcpHelper
.
tcpClient
.
Client
.
Shutdown
(
0
);
TcpHelper
.
tcpClient
.
Close
();
}
...
...
@@ -776,7 +784,7 @@ public class Ocgcore : ServantWithCardDescription
{
/*if (TcpHelper.tcpClient.Connected)
{
Program.I().ocgcore.returnServant = Program.I().selectServer
;
setDefaultReturnServant()
;
TcpHelper.tcpClient.Client.Shutdown(0);
TcpHelper.tcpClient.Close();
} */
...
...
Assets/SibylSystem/Program.cs
View file @
3812e3d9
...
...
@@ -88,6 +88,7 @@ public class Program : MonoBehaviour
public
GameObject
new_ui_setting
;
public
GameObject
new_ui_book
;
public
GameObject
new_ui_selectServer
;
public
GameObject
new_ui_mycard
;
public
GameObject
new_ui_RoomList
;
public
GameObject
new_ui_gameInfo
;
public
GameObject
new_ui_cardDescription
;
...
...
@@ -952,7 +953,8 @@ public class Program : MonoBehaviour
public
DeckManager
deckManager
;
public
Ocgcore
ocgcore
;
public
SelectServer
selectServer
;
public
RoomList
roomList
;
public
MyCard
mycard
;
public
RoomList
roomList
;
public
Book
book
;
public
puzzleMode
puzzleMode
;
public
AIRoom
aiRoom
;
...
...
@@ -974,6 +976,8 @@ public class Program : MonoBehaviour
servants
.
Add
(
ocgcore
);
selectServer
=
new
SelectServer
();
servants
.
Add
(
selectServer
);
mycard
=
new
MyCard
();
servants
.
Add
(
mycard
);
roomList
=
new
RoomList
();
servants
.
Add
(
roomList
);
book
=
new
Book
();
...
...
@@ -1020,6 +1024,10 @@ public class Program : MonoBehaviour
{
selectServer
.
hide
();
}
if
(
to
!=
mycard
&&
mycard
.
isShowed
)
{
mycard
.
hide
();
}
if
(
to
!=
selectReplay
&&
selectReplay
.
isShowed
)
{
selectReplay
.
hide
();
...
...
@@ -1045,6 +1053,7 @@ public class Program : MonoBehaviour
if
(
to
==
deckManager
&&
deckManager
.
isShowed
==
false
)
deckManager
.
show
();
if
(
to
==
ocgcore
&&
ocgcore
.
isShowed
==
false
)
ocgcore
.
show
();
if
(
to
==
selectServer
&&
selectServer
.
isShowed
==
false
)
selectServer
.
show
();
if
(
to
==
mycard
&&
mycard
.
isShowed
==
false
)
mycard
.
show
();
if
(
to
==
selectReplay
&&
selectReplay
.
isShowed
==
false
)
selectReplay
.
show
();
if
(
to
==
puzzleMode
&&
puzzleMode
.
isShowed
==
false
)
puzzleMode
.
show
();
if
(
to
==
aiRoom
&&
aiRoom
.
isShowed
==
false
)
aiRoom
.
show
();
...
...
Assets/SibylSystem/Room/Room.cs
View file @
3812e3d9
...
...
@@ -87,7 +87,7 @@ public class Room : WindowServantSP
Menu
.
deleteShell
();
}
base
.
show
();
Program
.
I
().
ocgcore
.
returnServant
=
Program
.
I
().
selectServer
;
Program
.
I
().
ocgcore
.
setDefaultReturnServant
()
;
Program
.
I
().
ocgcore
.
handler
=
handler
;
UIHelper
.
registEvent
(
toolBar
,
"input_"
,
onChat
);
Program
.
charge
();
...
...
@@ -495,7 +495,7 @@ public class Room : WindowServantSP
public
void
StocMessage_DuelStart
(
BinaryReader
r
)
{
Program
.
I
().
ocgcore
.
returnServant
=
Program
.
I
().
selectServer
;
Program
.
I
().
ocgcore
.
setDefaultReturnServant
()
;
needSide
=
false
;
joinWithReconnect
=
true
;
if
(
Program
.
I
().
deckManager
.
isShowed
)
...
...
Assets/SibylSystem/selectServer/SelectServer.cs
View file @
3812e3d9
...
...
@@ -351,7 +351,8 @@ public class SelectServer : WindowServantSP
}
File
.
WriteAllText
(
"config/passwords.conf"
,
all
);
printFile
(
false
);
(
new
Thread
(()
=>
{
TcpHelper
.
join
(
ipString
,
name
,
portString
,
pswString
,
versionString
);
})).
Start
();
Program
.
I
().
mycard
.
isMatchingWithMyCard
=
false
;
(
new
Thread
(()
=>
{
TcpHelper
.
join
(
ipString
,
name
,
portString
,
pswString
,
versionString
);
})).
Start
();
}
else
{
...
...
Assets/transUI/prefab/trans_myCardLogin.prefab
View file @
3812e3d9
...
...
@@ -1937,7 +1937,7 @@ MonoBehaviour:
keepCrispWhenShrunk
:
1
mTrueTypeFont
:
{
fileID
:
10102
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
mFont
:
{
fileID
:
0
}
mText
:
MyCard
Login
mText
:
MyCard
mFontSize
:
18
mFontStyle
:
0
mAlignment
:
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