Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
Surveil
MDPro3
Commits
b8e83af3
Commit
b8e83af3
authored
Apr 17, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new send button for chat
parent
5825fcb2
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
268 additions
and
33 deletions
+268
-33
Assets/Main.unity
Assets/Main.unity
+253
-23
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+5
-3
Assets/Scripts/MDPro3/Servants/Room.cs
Assets/Scripts/MDPro3/Servants/Room.cs
+10
-7
No files found.
Assets/Main.unity
View file @
b8e83af3
This diff is collapsed.
Click to expand it.
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
b8e83af3
...
...
@@ -544,8 +544,10 @@ namespace MDPro3
chainCondition
=
ChainCondition
.
No
;
OnTiming
();
}
if
(
Input
.
GetKeyDown
(
KeyCode
.
Return
)
if
(
(
Input
.
GetKeyDown
(
KeyCode
.
Return
)
||
Input
.
GetKeyDown
(
KeyCode
.
KeypadEnter
))
&&
(!
Program
.
I
().
room
.
chatInput
.
isFocused
||
Program
.
I
().
room
.
chatInput
.
text
==
string
.
Empty
))
{
ToChat
();
}
...
...
@@ -1540,8 +1542,8 @@ namespace MDPro3
var
length_of_message
=
r
.
BaseStream
.
Length
;
BinaryMaster
binaryMaster
;
List
<
string
>
selections
;
if
((
GameMessage
)
p
.
Function
!=
GameMessage
.
UpdateData
)
Debug
.
Log
(
"----------"
+
(
GameMessage
)
p
.
Function
);
//
if ((GameMessage)p.Function != GameMessage.UpdateData)
//
Debug.Log("----------" + (GameMessage)p.Function);
//else
// Debug.Log("----------" + (GameMessage)p.Function);
switch
((
GameMessage
)
p
.
Function
)
...
...
Assets/Scripts/MDPro3/Servants/Room.cs
View file @
b8e83af3
...
...
@@ -110,6 +110,7 @@ namespace MDPro3
roomPlayers
.
Add
(
player2
);
roomPlayers
.
Add
(
player3
);
}
public
bool
chatOn
;
public
bool
chatSwitching
;
public
void
SwitchChat
(
float
moveTime
)
...
...
@@ -342,20 +343,22 @@ namespace MDPro3
TcpHelper
.
CtosMessage_Response
(
buffer
);
}
public
void
OnSubmit
(
string
chat
)
{
if
(
chat
!=
string
.
Empty
)
TcpHelper
.
CtosMessage_Chat
(
chat
);
}
public
void
OnChat
(
string
content
)
{
if
(
content
==
string
.
Empty
)
return
;
OnSubmi
t
(
content
);
TcpHelper
.
CtosMessage_Cha
t
(
content
);
chatInput
.
text
=
string
.
Empty
;
}
public
void
OnSend
()
{
if
(
chatInput
.
text
==
string
.
Empty
)
return
;
AudioManager
.
PlaySE
(
"SE_MENU_DECIDE"
);
OnChat
(
chatInput
.
text
);
}
public
void
OnToDuel
()
{
TcpHelper
.
CtosMessage_HsToDuelist
();
...
...
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