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
SK
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
Show 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
...
...
@@ -6730,7 +6730,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -399.9998
2
, y: 0}
m_AnchoredPosition: {x: -399.9998
8
, y: 0}
m_SizeDelta: {x: -1350, y: 80}
m_Pivot: {x: 1, y: 0}
--- !u!114 &129642814
...
...
@@ -7653,7 +7653,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: -490.0003, y: 0}
m_AnchoredPosition: {x: -490.0003
7
, y: 0}
m_SizeDelta: {x: 490, y: 2000}
m_Pivot: {x: 0, y: 0.5}
--- !u!114 &153416284
...
...
@@ -12916,7 +12916,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &250597853
...
...
@@ -15728,7 +15728,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1581995138}
m_Direction: 2
m_Value: 0
m_Size:
0
m_Size:
1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
...
...
@@ -15808,7 +15808,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &296823158
...
...
@@ -17924,7 +17924,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -399.9998
2
, y: 300}
m_AnchoredPosition: {x: -399.9998
8
, y: 300}
m_SizeDelta: {x: -1350, y: 80}
m_Pivot: {x: 1, y: 0}
--- !u!114 &365844423
...
...
@@ -19094,7 +19094,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 931169952}
m_Direction: 2
m_Value: 0
m_Size:
0.6103896
m_Size:
1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
...
...
@@ -34891,7 +34891,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &681567863
...
...
@@ -37543,7 +37543,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: -419.9998
2
, y: -60}
m_AnchoredPosition: {x: -419.9998
8
, y: -60}
m_SizeDelta: {x: 400, y: 760}
m_Pivot: {x: 0, y: 1}
--- !u!114 &736958434
...
...
@@ -37919,6 +37919,85 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 745102156}
m_CullTransparentMesh: 1
--- !u!1 &745510631
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 745510632}
- component: {fileID: 745510634}
- component: {fileID: 745510633}
m_Layer: 5
m_Name: '#Text'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &745510632
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 745510631}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1321905600}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &745510633
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 745510631}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: cdf4c81f8bf6eb248a105d8a5edf19fd, type: 3}
m_FontSize: 26
m_FontStyle: 0
m_BestFit: 1
m_MinSize: 2
m_MaxSize: 30
m_Alignment: 4
m_AlignByGeometry: 1
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u53D1\u9001"
--- !u!222 &745510634
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 745510631}
m_CullTransparentMesh: 1
--- !u!1 &748518463
GameObject:
m_ObjectHideFlags: 0
...
...
@@ -45376,7 +45455,7 @@ GameObject:
- component: {fileID: 905948227}
- component: {fileID: 905948226}
m_Layer: 5
m_Name: '#Text
_Title
'
m_Name: '#Text'
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
...
...
@@ -45397,9 +45476,9 @@ RectTransform:
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x:
1
, y: 1}
m_AnchoredPosition: {x:
25
, y: -63}
m_SizeDelta: {x:
-75
, y: 60}
m_AnchorMax: {x:
0
, y: 1}
m_AnchoredPosition: {x:
120
, y: -63}
m_SizeDelta: {x:
550
, y: 60}
m_Pivot: {x: 0, y: 0.5}
--- !u!114 &905948226
MonoBehaviour:
...
...
@@ -50976,7 +51055,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1005556390
...
...
@@ -66749,6 +66828,156 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321283591}
m_CullTransparentMesh: 1
--- !u!1 &1321905599
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1321905600}
- component: {fileID: 1321905605}
- component: {fileID: 1321905604}
- component: {fileID: 1321905603}
- component: {fileID: 1321905601}
m_Layer: 5
m_Name: Button Send
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1321905600
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321905599}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 745510632}
m_Father: {fileID: 1644071692}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -6, y: 10}
m_SizeDelta: {x: 150, y: 58}
m_Pivot: {x: 1, y: 0}
--- !u!114 &1321905601
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321905599}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e0fb4b52f774bc84b91e8b296e15849a, type: 3}
m_Name:
m_EditorClassIdentifier:
icon: {fileID: 0}
text: {fileID: 745510633}
pressColor: 0.5
disableColor: 0.5
--- !u!114 &1321905603
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321905599}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 0
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 2
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 21300000, guid: e144ff89929efa74f9983bf8579e823a, type: 3}
m_PressedSprite: {fileID: 21300000, guid: e144ff89929efa74f9983bf8579e823a, type: 3}
m_SelectedSprite: {fileID: 21300000, guid: f4daf22cc30662442934ead757c269d1, type: 3}
m_DisabledSprite: {fileID: 21300000, guid: f4daf22cc30662442934ead757c269d1, type: 3}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1321905604}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 437956626}
m_TargetAssemblyTypeName: MDPro3.Room, Assembly-CSharp
m_MethodName: OnSend
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1321905604
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321905599}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: c60170ace8b98804da6966754b4bf67e, type: 3}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1321905605
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1321905599}
m_CullTransparentMesh: 1
--- !u!1 &1323194320
GameObject:
m_ObjectHideFlags: 0
...
...
@@ -68560,7 +68789,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1371617110
...
...
@@ -68712,7 +68941,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -399.9998
2
, y: 150}
m_AnchoredPosition: {x: -399.9998
8
, y: 150}
m_SizeDelta: {x: -1350, y: 80}
m_Pivot: {x: 1, y: 0}
--- !u!114 &1374530642
...
...
@@ -72024,7 +72253,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 761159127}
m_Direction: 2
m_Value: 0
m_Size:
0.66292137
m_Size:
1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
...
...
@@ -75929,7 +76158,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 2083794100}
m_Direction: 2
m_Value: 0
m_Size:
0.55882347
m_Size:
1
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
...
...
@@ -81166,7 +81395,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1644071692}
m_RootOrder:
3
m_RootOrder:
4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
...
...
@@ -85045,6 +85274,7 @@ RectTransform:
- {fileID: 648854116}
- {fileID: 1230119980}
- {fileID: 1799252547}
- {fileID: 1321905600}
- {fileID: 1596179731}
m_Father: {fileID: 365283973}
m_RootOrder: 25
...
...
@@ -92351,8 +92581,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x:
0
, y: 10}
m_SizeDelta: {x: -
2
0, y: 58}
m_AnchoredPosition: {x:
-75
, y: 10}
m_SizeDelta: {x: -
17
0, y: 58}
m_Pivot: {x: 0.5, y: 0}
--- !u!114 &1799252548
MonoBehaviour:
...
...
@@ -92510,7 +92740,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -399.9998
2
, y: -150}
m_AnchoredPosition: {x: -399.9998
8
, y: -150}
m_SizeDelta: {x: -1350, y: 80}
m_Pivot: {x: 1, y: 0}
--- !u!114 &1800729521
...
...
@@ -97423,7 +97653,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 247.4998
2
, y: -540}
m_AnchoredPosition: {x: 247.4998
8
, y: -540}
m_SizeDelta: {x: -565, y: 1080}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1895460095
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