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
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
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
赤子奈落
MDPro3
Commits
32506dec
Commit
32506dec
authored
Jan 18, 2026
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
1b430e09
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
Assets/Scripts/MDPro3/Servant/RoomServant.cs
Assets/Scripts/MDPro3/Servant/RoomServant.cs
+1
-0
Assets/Scripts/MDPro3/UI/ServantUI/RoomServantUI.cs
Assets/Scripts/MDPro3/UI/ServantUI/RoomServantUI.cs
+1
-1
Assets/Scripts/MDPro3/UI/UIWidget/SidePanel/ChatPanel.cs
Assets/Scripts/MDPro3/UI/UIWidget/SidePanel/ChatPanel.cs
+20
-5
No files found.
Assets/Scripts/MDPro3/Servant/RoomServant.cs
View file @
32506dec
...
@@ -469,6 +469,7 @@ namespace MDPro3.Servant
...
@@ -469,6 +469,7 @@ namespace MDPro3.Servant
int
player
=
r
.
ReadInt16
();
int
player
=
r
.
ReadInt16
();
var
length
=
r
.
BaseStream
.
Length
-
3
;
var
length
=
r
.
BaseStream
.
Length
-
3
;
var
content
=
r
.
ReadUnicode
((
int
)
length
);
var
content
=
r
.
ReadUnicode
((
int
)
length
);
//Debug.Log($"{player}: {content}");
Program
.
instance
.
ui_
.
chatPanel
.
AddChatItem
(
player
,
content
);
Program
.
instance
.
ui_
.
chatPanel
.
AddChatItem
(
player
,
content
);
}
}
...
...
Assets/Scripts/MDPro3/UI/ServantUI/RoomServantUI.cs
View file @
32506dec
...
@@ -161,7 +161,7 @@ namespace MDPro3.UI.ServantUI
...
@@ -161,7 +161,7 @@ namespace MDPro3.UI.ServantUI
roomPlayers
[
i
].
SetReadyIcon
(
RoomServant
.
players
[
i
].
ready
);
roomPlayers
[
i
].
SetReadyIcon
(
RoomServant
.
players
[
i
].
ready
);
roomPlayers
[
i
].
SetButtonTextColor
(
RoomServant
.
SelfType
==
i
?
Color
.
cyan
:
Color
.
white
);
roomPlayers
[
i
].
SetButtonTextColor
(
RoomServant
.
SelfType
==
i
?
Color
.
cyan
:
Color
.
white
);
var
position
=
GetPlayerPositon
(
i
);
var
position
=
GetPlayerPosit
i
on
(
i
);
switch
(
position
)
switch
(
position
)
{
{
case
PlayerPosition
.
Me
:
case
PlayerPosition
.
Me
:
...
...
Assets/Scripts/MDPro3/UI/UIWidget/SidePanel/ChatPanel.cs
View file @
32506dec
...
@@ -154,7 +154,7 @@ namespace MDPro3.UI
...
@@ -154,7 +154,7 @@ namespace MDPro3.UI
var
nickName
=
GetPlayerName
(
player
);
var
nickName
=
GetPlayerName
(
player
);
GameObject
item
=
null
;
GameObject
item
=
null
;
var
position
=
GetPlayerPositon
(
player
);
var
position
=
GetPlayerPosit
i
on
(
player
);
switch
(
position
)
switch
(
position
)
{
{
case
PlayerPosition
.
Me
:
case
PlayerPosition
.
Me
:
...
@@ -235,11 +235,26 @@ namespace MDPro3.UI
...
@@ -235,11 +235,26 @@ namespace MDPro3.UI
{
{
if
(!
Program
.
instance
.
ocgcore
.
showing
)
if
(!
Program
.
instance
.
ocgcore
.
showing
)
return
player
;
return
player
;
if
(
player
>
-
1
&&
player
<
4
&&
!
OcgCore
.
isFirst
)
if
(
RoomServant
.
SelfType
==
7
)
return
player
;
if
(
player
>
-
1
&&
player
<
4
)
{
if
(
InFirst
()
&&
!
OcgCore
.
isFirst
)
return
player
^
2
;
return
player
^
2
;
if
(!
InFirst
()
&&
OcgCore
.
isFirst
)
return
player
^
2
;
}
return
player
;
return
player
;
}
}
private
static
bool
InFirst
()
{
if
(
RoomServant
.
Mode
<
2
)
return
RoomServant
.
SelfType
==
0
;
else
return
RoomServant
.
SelfType
==
0
||
RoomServant
.
SelfType
==
1
;
}
private
static
string
GetPlayerConfigName
(
PlayerPosition
position
)
private
static
string
GetPlayerConfigName
(
PlayerPosition
position
)
{
{
return
position
switch
return
position
switch
...
@@ -258,7 +273,7 @@ namespace MDPro3.UI
...
@@ -258,7 +273,7 @@ namespace MDPro3.UI
public
static
string
GetPlayerName
(
int
player
)
public
static
string
GetPlayerName
(
int
player
)
{
{
var
playerPosition
=
GetPlayerPositon
(
player
);
var
playerPosition
=
GetPlayerPosit
i
on
(
player
);
player
=
GetRoomPlayerIndex
(
player
);
player
=
GetRoomPlayerIndex
(
player
);
string
nickName
=
""
;
string
nickName
=
""
;
switch
(
player
)
switch
(
player
)
...
@@ -291,7 +306,7 @@ namespace MDPro3.UI
...
@@ -291,7 +306,7 @@ namespace MDPro3.UI
return
nickName
;
return
nickName
;
}
}
public
static
PlayerPosition
GetPlayerPositon
(
int
player
)
public
static
PlayerPosition
GetPlayerPosit
i
on
(
int
player
)
{
{
player
=
GetRoomPlayerIndex
(
player
);
player
=
GetRoomPlayerIndex
(
player
);
PlayerPosition
position
;
PlayerPosition
position
;
...
...
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