Properly color + round chatroom message entry

This commit is contained in:
2026-02-07 22:28:27 -07:00
parent 98f59eeaab
commit f1db4d83c2
4 changed files with 886 additions and 368 deletions

View File

@@ -73,9 +73,9 @@ Material:
- _OutlineWidth: 0 - _OutlineWidth: 0
- _PerspectiveFilter: 0.875 - _PerspectiveFilter: 0.875
- _Reflectivity: 10 - _Reflectivity: 10
- _ScaleRatioA: 0.6666667 - _ScaleRatioA: 0.95
- _ScaleRatioB: 0.5416667 - _ScaleRatioB: 0.771875
- _ScaleRatioC: 0.5416667 - _ScaleRatioC: 0.771875
- _ScaleX: 1 - _ScaleX: 1
- _ScaleY: 1 - _ScaleY: 1
- _ShaderFlags: 0 - _ShaderFlags: 0
@@ -526,149 +526,745 @@ MonoBehaviour:
m_UsedGlyphRects: m_UsedGlyphRects:
- m_X: 0 - m_X: 0
m_Y: 0 m_Y: 0
m_Width: 167 m_Width: 59
m_Height: 265 m_Height: 154
- m_X: 0 - m_X: 0
m_Y: 265 m_Y: 154
m_Width: 214 m_Width: 41
m_Height: 245 m_Height: 150
- m_X: 167
m_Y: 0
m_Width: 240
m_Height: 241
- m_X: 0 - m_X: 0
m_Y: 510 m_Y: 304
m_Width: 239 m_Width: 73
m_Height: 240 m_Height: 144
- m_X: 214 - m_X: 41
m_Y: 241 m_Y: 154
m_Width: 238 m_Width: 72
m_Height: 239 m_Height: 144
- m_X: 407 - m_X: 59
m_Y: 0 m_Y: 0
m_Width: 238 m_Width: 68
m_Height: 239 m_Height: 144
- m_X: 0 - m_X: 0
m_Y: 750 m_Y: 448
m_Width: 238 m_Width: 67
m_Height: 239 m_Height: 144
- m_X: 238 - m_X: 0
m_Y: 750 m_Y: 592
m_Width: 232 m_Width: 61
m_Height: 220 m_Height: 143
- m_X: 239 - m_X: 0
m_Y: 480 m_Y: 735
m_Width: 232 m_Width: 61
m_Height: 220 m_Height: 143
- m_X: 452 - m_X: 0
m_Y: 239 m_Y: 878
m_Width: 242 m_Width: 143
m_Height: 216 m_Height: 142
- m_X: 645 - m_X: 61
m_Y: 0 m_Y: 592
m_Width: 214 m_Width: 95
m_Height: 214
- m_X: 694
m_Y: 214
m_Width: 240
m_Height: 192
- m_X: 694
m_Y: 406
m_Width: 240
m_Height: 192
- m_X: 471
m_Y: 455
m_Width: 217
m_Height: 203
- m_X: 470
m_Y: 700
m_Width: 189
m_Height: 214
- m_X: 470
m_Y: 914
m_Width: 214
m_Height: 84
- m_X: 659
m_Y: 658
m_Width: 192
m_Height: 192
- m_X: 684
m_Y: 850
m_Width: 217
m_Height: 141 m_Height: 141
m_FreeGlyphRects: - m_X: 67
- m_X: 167 m_Y: 448
m_Y: 241 m_Width: 94
m_Width: 47 m_Height: 136
m_Height: 24 - m_X: 61
m_Y: 733
m_Width: 117
m_Height: 135
- m_X: 156
m_Y: 584
m_Width: 93
m_Height: 132
- m_X: 73
m_Y: 298
m_Width: 46
m_Height: 128
- m_X: 113
m_Y: 144
m_Width: 98
m_Height: 127
- m_X: 127
m_Y: 0
m_Width: 102
m_Height: 126
- m_X: 143
m_Y: 868
m_Width: 96
m_Height: 126
- m_X: 178
m_Y: 716
m_Width: 95
m_Height: 126
- m_X: 119
m_Y: 271
m_Width: 95
m_Height: 126
- m_X: 119
m_Y: 397
m_Width: 56
m_Height: 51
- m_X: 161
m_Y: 448
m_Width: 95
m_Height: 126
- m_X: 175
m_Y: 397
m_Width: 95
m_Height: 48
- m_X: 249
m_Y: 574
m_Width: 91
m_Height: 124
- m_X: 256
m_Y: 445
m_Width: 87
m_Height: 124
- m_X: 211
m_Y: 126
m_Width: 73
m_Height: 124
- m_X: 229
m_Y: 0
m_Width: 42
m_Height: 124
- m_X: 271
m_Y: 0
m_Width: 125
m_Height: 122
- m_X: 214 - m_X: 214
m_Y: 480 m_Y: 250
m_Width: 25 m_Width: 117
m_Height: 30 m_Height: 122
- m_X: 407 - m_X: 270
m_Y: 239 m_Y: 372
m_Width: 45 m_Width: 71
m_Height: 2 m_Height: 70
- m_X: 645 - m_X: 284
m_Y: 214 m_Y: 122
m_Width: 49 m_Width: 114
m_Height: 25 m_Height: 122
- m_X: 859 - m_X: 396
m_Y: 0 m_Y: 0
m_Width: 164 m_Width: 95
m_Height: 214 m_Height: 122
- m_X: 934 - m_X: 331
m_Y: 244
m_Width: 95
m_Height: 122
- m_X: 398
m_Y: 122
m_Width: 87
m_Height: 122
- m_X: 341
m_Y: 366
m_Width: 96
m_Height: 75
- m_X: 426
m_Y: 244
m_Width: 115
m_Height: 121
- m_X: 485
m_Y: 122
m_Width: 105
m_Height: 121
- m_X: 491
m_Y: 0 m_Y: 0
m_Width: 89 m_Width: 51
m_Height: 1023 m_Height: 121
- m_X: 452 - m_X: 542
m_Y: 455 m_Y: 0
m_Width: 19 m_Width: 101
m_Height: 25 m_Height: 120
- m_X: 239 - m_X: 239
m_Y: 700 m_Y: 842
m_Width: 231 m_Width: 98
m_Height: 50 m_Height: 120
- m_X: 0 - m_X: 239
m_Y: 998 m_Y: 962
m_Width: 1023 m_Width: 74
m_Height: 25 m_Height: 61
- m_X: 0 - m_X: 313
m_Y: 989 m_Y: 962
m_Width: 470 m_Width: 47
m_Height: 34 m_Height: 61
- m_X: 238 - m_X: 273
m_Y: 970 m_Y: 698
m_Width: 232 m_Width: 92
m_Height: 53 m_Height: 120
- m_X: 688 - m_X: 340
m_Y: 598 m_Y: 569
m_Width: 335 m_Width: 90
m_Height: 60 m_Height: 120
- m_X: 688 - m_X: 343
m_Y: 455 m_Y: 441
m_Width: 6 m_Width: 90
m_Height: 203 m_Height: 120
- m_X: 471 - m_X: 337
m_Y: 658 m_Y: 818
m_Width: 188 m_Width: 89
m_Height: 42 m_Height: 120
- m_X: 851 - m_X: 365
m_Y: 598 m_Y: 689
m_Width: 172 m_Width: 74
m_Height: 252 m_Height: 120
- m_X: 901 - m_X: 430
m_Y: 598 m_Y: 561
m_Width: 122 m_Width: 46
m_Height: 425 m_Height: 120
- m_X: 659 - m_X: 433
m_Y: 850 m_Y: 441
m_Width: 25 m_Width: 99
m_Height: 119
- m_X: 437
m_Y: 365
m_Width: 50
m_Height: 67
- m_X: 487
m_Y: 365
m_Width: 89
m_Height: 64 m_Height: 64
- m_X: 684 - m_X: 541
m_Y: 991 m_Y: 243
m_Width: 339 m_Width: 90
m_Height: 32 m_Height: 119
- m_X: 590
m_Y: 120
m_Width: 89
m_Height: 119
- m_X: 643
m_Y: 0
m_Width: 151
m_Height: 118
- m_X: 360
m_Y: 938
m_Width: 46
m_Height: 48
- m_X: 406
m_Y: 938
m_Width: 84
m_Height: 46
- m_X: 406
m_Y: 984
m_Width: 104
m_Height: 38
- m_X: 426
m_Y: 809
m_Width: 115
m_Height: 118
- m_X: 510
m_Y: 927
m_Width: 127
m_Height: 96
- m_X: 439
m_Y: 681
m_Width: 114
m_Height: 118
- m_X: 476
m_Y: 560
m_Width: 112
m_Height: 118
- m_X: 541
m_Y: 799
m_Width: 111
m_Height: 118
- m_X: 553
m_Y: 678
m_Width: 110
m_Height: 118
- m_X: 637
m_Y: 917
m_Width: 97
m_Height: 99
- m_X: 652
m_Y: 796
m_Width: 108
m_Height: 118
- m_X: 734
m_Y: 914
m_Width: 96
m_Height: 99
- m_X: 532
m_Y: 429
m_Width: 106
m_Height: 118
- m_X: 588
m_Y: 547
m_Width: 106
m_Height: 118
- m_X: 663
m_Y: 665
m_Width: 106
m_Height: 118
- m_X: 760
m_Y: 783
m_Width: 102
m_Height: 118
- m_X: 830
m_Y: 901
m_Width: 100
m_Height: 118
- m_X: 930
m_Y: 0
m_Width: 93
m_Height: 91
- m_X: 930
m_Y: 91
m_Width: 92
m_Height: 118
- m_X: 862
m_Y: 0
m_Width: 66
m_Height: 41
- m_X: 930
m_Y: 209
m_Width: 89
m_Height: 99
- m_X: 631
m_Y: 308
m_Width: 99
m_Height: 118
- m_X: 638
m_Y: 426
m_Width: 98
m_Height: 118
- m_X: 730
m_Y: 308
m_Width: 94
m_Height: 118
- m_X: 694
m_Y: 544
m_Width: 87
m_Height: 118
- m_X: 736
m_Y: 426
m_Width: 86
m_Height: 118
- m_X: 769
m_Y: 662
m_Width: 86
m_Height: 118
- m_X: 781
m_Y: 544
m_Width: 85
m_Height: 118
- m_X: 822
m_Y: 426
m_Width: 71
m_Height: 118
- m_X: 893
m_Y: 308
m_Width: 130
m_Height: 97
- m_X: 930
m_Y: 405
m_Width: 88
m_Height: 98
- m_X: 930
m_Y: 503
m_Width: 87
m_Height: 97
- m_X: 855
m_Y: 662
m_Width: 72
m_Height: 113
- m_X: 927
m_Y: 600
m_Width: 94
m_Height: 99
- m_X: 930
m_Y: 699
m_Width: 81
m_Height: 92
- m_X: 862
m_Y: 791
m_Width: 79
m_Height: 99
- m_X: 941
m_Y: 791
m_Width: 81
m_Height: 92
- m_X: 941
m_Y: 883
m_Width: 79
m_Height: 96
- m_X: 866
m_Y: 544
m_Width: 46
m_Height: 99
- m_X: 794
m_Y: 41
m_Width: 98
m_Height: 96
- m_X: 679
m_Y: 118
m_Width: 97
m_Height: 96
- m_X: 776
m_Y: 137
m_Width: 70
m_Height: 97
m_FreeGlyphRects:
- m_X: 67
m_Y: 584
m_Width: 89
m_Height: 8
- m_X: 41
m_Y: 298
m_Width: 32
m_Height: 6
- m_X: 59
m_Y: 144
m_Width: 54
m_Height: 10
- m_X: 61
m_Y: 868
m_Width: 82
m_Height: 10
- m_X: 156
m_Y: 716
m_Width: 22
m_Height: 17
- m_X: 113
m_Y: 271
m_Width: 6
m_Height: 27
- m_X: 73
m_Y: 426
m_Width: 46
m_Height: 22
- m_X: 161
m_Y: 574
m_Width: 88
m_Height: 10
- m_X: 175
m_Y: 445
m_Width: 81
m_Height: 3
- m_X: 127
m_Y: 126
m_Width: 84
m_Height: 18
- m_X: 211
m_Y: 250
m_Width: 3
m_Height: 21
- m_X: 214
m_Y: 372
m_Width: 56
m_Height: 25
- m_X: 229
m_Y: 124
m_Width: 55
m_Height: 2
- m_X: 271
m_Y: 122
m_Width: 13
m_Height: 4
- m_X: 284
m_Y: 244
m_Width: 47
m_Height: 6
- m_X: 331
m_Y: 366
m_Width: 10
m_Height: 6
- m_X: 178
m_Y: 842
m_Width: 61
m_Height: 26
- m_X: 0
m_Y: 1020
m_Width: 239
m_Height: 3
- m_X: 143
m_Y: 994
m_Width: 96
m_Height: 29
- m_X: 249
m_Y: 698
m_Width: 24
m_Height: 18
- m_X: 256
m_Y: 569
m_Width: 84
m_Height: 5
- m_X: 270
m_Y: 442
m_Width: 73
m_Height: 3
- m_X: 341
m_Y: 441
m_Width: 2
m_Height: 4
- m_X: 273
m_Y: 818
m_Width: 64
m_Height: 24
- m_X: 340
m_Y: 689
m_Width: 25
m_Height: 9
- m_X: 343
m_Y: 561
m_Width: 87
m_Height: 8
- m_X: 426
m_Y: 365
m_Width: 11
m_Height: 1
- m_X: 485
m_Y: 243
m_Width: 56
m_Height: 1
- m_X: 491
m_Y: 121
m_Width: 99
m_Height: 1
- m_X: 542
m_Y: 120
m_Width: 48
m_Height: 2
- m_X: 337
m_Y: 938
m_Width: 23
m_Height: 24
- m_X: 360
m_Y: 986
m_Width: 46
m_Height: 37
- m_X: 365
m_Y: 809
m_Width: 61
m_Height: 9
- m_X: 360
m_Y: 1022
m_Width: 150
m_Height: 1
- m_X: 426
m_Y: 927
m_Width: 84
m_Height: 11
- m_X: 490
m_Y: 927
m_Width: 20
m_Height: 57
- m_X: 430
m_Y: 681
m_Width: 9
m_Height: 8
- m_X: 433
m_Y: 560
m_Width: 43
m_Height: 1
- m_X: 439
m_Y: 799
m_Width: 102
m_Height: 10
- m_X: 476
m_Y: 678
m_Width: 77
m_Height: 3
- m_X: 541
m_Y: 917
m_Width: 96
m_Height: 10
- m_X: 553
m_Y: 796
m_Width: 99
m_Height: 3
- m_X: 652
m_Y: 914
m_Width: 82
m_Height: 3
- m_X: 437
m_Y: 432
m_Width: 95
m_Height: 9
- m_X: 487
m_Y: 429
m_Width: 45
m_Height: 12
- m_X: 532
m_Y: 547
m_Width: 56
m_Height: 13
- m_X: 588
m_Y: 665
m_Width: 75
m_Height: 13
- m_X: 663
m_Y: 783
m_Width: 97
m_Height: 13
- m_X: 637
m_Y: 1019
m_Width: 386
m_Height: 4
- m_X: 637
m_Y: 1016
m_Width: 193
m_Height: 7
- m_X: 734
m_Y: 1013
m_Width: 96
m_Height: 10
- m_X: 760
m_Y: 901
m_Width: 70
m_Height: 13
- m_X: 590
m_Y: 239
m_Width: 340
m_Height: 4
- m_X: 541
m_Y: 362
m_Width: 90
m_Height: 3
- m_X: 576
m_Y: 362
m_Width: 55
m_Height: 67
- m_X: 631
m_Y: 239
m_Width: 299
m_Height: 69
- m_X: 576
m_Y: 426
m_Width: 62
m_Height: 3
- m_X: 638
m_Y: 544
m_Width: 56
m_Height: 3
- m_X: 694
m_Y: 662
m_Width: 75
m_Height: 3
- m_X: 1022
m_Y: 91
m_Width: 1
m_Height: 217
- m_X: 928
m_Y: 0
m_Width: 2
m_Height: 308
- m_X: 1019
m_Y: 209
m_Width: 4
m_Height: 99
- m_X: 824
m_Y: 405
m_Width: 106
m_Height: 21
- m_X: 1018
m_Y: 405
m_Width: 5
m_Height: 195
- m_X: 1017
m_Y: 503
m_Width: 6
m_Height: 97
- m_X: 769
m_Y: 780
m_Width: 161
m_Height: 3
- m_X: 855
m_Y: 775
m_Width: 75
m_Height: 8
- m_X: 862
m_Y: 775
m_Width: 68
m_Height: 16
- m_X: 927
m_Y: 699
m_Width: 3
m_Height: 92
- m_X: 1021
m_Y: 405
m_Width: 2
m_Height: 386
- m_X: 1022
m_Y: 405
m_Width: 1
m_Height: 618
- m_X: 1011
m_Y: 699
m_Width: 12
m_Height: 92
- m_X: 862
m_Y: 890
m_Width: 79
m_Height: 11
- m_X: 930
m_Y: 979
m_Width: 93
m_Height: 44
- m_X: 930
m_Y: 890
m_Width: 11
m_Height: 133
- m_X: 1020
m_Y: 883
m_Width: 3
m_Height: 140
- m_X: 893
m_Y: 405
m_Width: 37
m_Height: 139
- m_X: 912
m_Y: 405
m_Width: 18
m_Height: 195
- m_X: 912
m_Y: 405
m_Width: 15
m_Height: 257
- m_X: 866
m_Y: 643
m_Width: 61
m_Height: 19
- m_X: 892
m_Y: 41
m_Width: 38
m_Height: 267
- m_X: 794
m_Y: 0
m_Width: 68
m_Height: 41
- m_X: 892
m_Y: 41
m_Width: 1
m_Height: 385
- m_X: 643
m_Y: 118
m_Width: 36
m_Height: 2
- m_X: 824
m_Y: 234
m_Width: 69
m_Height: 192
- m_X: 846
m_Y: 137
m_Width: 47
m_Height: 289
- m_X: 679
m_Y: 234
m_Width: 251
m_Height: 74
- m_X: 679
m_Y: 214
m_Width: 97
m_Height: 94
- m_X: 846
m_Y: 137
m_Width: 84
m_Height: 171
- m_X: 776
m_Y: 118
m_Width: 18
m_Height: 19
m_FontFeatureTable: m_FontFeatureTable:
m_MultipleSubstitutionRecords: [] m_MultipleSubstitutionRecords: []
m_LigatureSubstitutionRecords: [] m_LigatureSubstitutionRecords: []

View File

@@ -119,6 +119,47 @@ NavMeshSettings:
debug: debug:
m_Flags: 0 m_Flags: 0
m_NavMeshData: {fileID: 0} m_NavMeshData: {fileID: 0}
--- !u!21 &29833225
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UI/RoundedCorners/RoundedCorners
m_Shader: {fileID: 4800000, guid: 0bd2ec5d73751e34a814274a454bec41, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _OuterUV: {r: 0, g: 0, b: 1, a: 1}
- _WidthHeightRadius: {r: 1180, g: 75, b: 20, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!1 &32015495 --- !u!1 &32015495
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -4152,6 +4193,9 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 432996041} - component: {fileID: 432996041}
- component: {fileID: 432996043}
- component: {fileID: 432996042}
- component: {fileID: 432996044}
m_Layer: 5 m_Layer: 5
m_Name: Sample m_Name: Sample
m_TagString: Untagged m_TagString: Untagged
@@ -4171,7 +4215,6 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: m_Children:
- {fileID: 1208331054}
- {fileID: 347285538} - {fileID: 347285538}
- {fileID: 97705055} - {fileID: 97705055}
- {fileID: 97080575} - {fileID: 97080575}
@@ -4180,9 +4223,63 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 590, y: -37.5} m_AnchoredPosition: {x: 600, y: -37.5}
m_SizeDelta: {x: 1180, y: 75} m_SizeDelta: {x: 1180, y: 75}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &432996042
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 432996040}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
m_Material: {fileID: 0}
m_Color: {r: 0.1882353, g: 0.1882353, b: 0.1882353, 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: 10905, guid: 0000000000000000f000000000000000, type: 0}
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 &432996043
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 432996040}
m_CullTransparentMesh: 1
--- !u!114 &432996044
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 432996040}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 73b30df2b3a7144b99b75ce70168fd50, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::CustomColorObject
type: 6
invert: 0
addMore: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 0}
reverseAdd: 0
--- !u!1 &438920397 --- !u!1 &438920397
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -5015,8 +5112,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 10, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &595306755 --- !u!114 &595306755
MonoBehaviour: MonoBehaviour:
@@ -6832,7 +6929,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
m_Material: {fileID: 1676449264} m_Material: {fileID: 1533787532}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
@@ -7152,7 +7249,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
m_Material: {fileID: 1308056279} m_Material: {fileID: 29833225}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1 m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
@@ -7889,96 +7986,6 @@ MonoBehaviour:
invert: 0 invert: 0
addMore: {r: 0, g: 0, b: 0, a: 0} addMore: {r: 0, g: 0, b: 0, a: 0}
reverseAdd: 0 reverseAdd: 0
--- !u!1 &1208331053
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1208331054}
- component: {fileID: 1208331056}
- component: {fileID: 1208331055}
- component: {fileID: 1208331057}
m_Layer: 5
m_Name: BgColor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1208331054
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1208331053}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 432996041}
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 &1208331055
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1208331053}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
m_Material: {fileID: 2091214324}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 0}
m_Type: 0
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 &1208331056
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1208331053}
m_CullTransparentMesh: 1
--- !u!114 &1208331057
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1208331053}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: adb30198aa32dd140b5750692dd48104, type: 3}
m_Name:
m_EditorClassIdentifier: Nobi.UiRoundedCorners::Nobi.UiRoundedCorners.ImageWithRoundedCorners
radius: 10
image: {fileID: 1208331055}
--- !u!1 &1301936379 --- !u!1 &1301936379
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -8076,47 +8083,6 @@ MonoBehaviour:
invert: 0 invert: 0
addMore: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 0} addMore: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 0}
reverseAdd: 0 reverseAdd: 0
--- !u!21 &1308056279
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UI/RoundedCorners/RoundedCorners
m_Shader: {fileID: 4800000, guid: 0bd2ec5d73751e34a814274a454bec41, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _OuterUV: {r: 0, g: 0, b: 1, a: 1}
- _WidthHeightRadius: {r: 1180, g: 75, b: 20, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!1 &1375884349 --- !u!1 &1375884349
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -9016,6 +8982,47 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1513758040} m_GameObject: {fileID: 1513758040}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!21 &1533787532
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UI/RoundedCorners/RoundedCorners
m_Shader: {fileID: 4800000, guid: 0bd2ec5d73751e34a814274a454bec41, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _OuterUV: {r: 0, g: 0, b: 1, a: 1}
- _WidthHeightRadius: {r: 1180, g: 75, b: 20, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!1 &1570358590 --- !u!1 &1570358590
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -9945,47 +9952,6 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: -20} m_AnchoredPosition: {x: 0, y: -20}
m_SizeDelta: {x: 1180, y: 75} m_SizeDelta: {x: 1180, y: 75}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!21 &1676449264
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UI/RoundedCorners/RoundedCorners
m_Shader: {fileID: 4800000, guid: 0bd2ec5d73751e34a814274a454bec41, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _OuterUV: {r: 0, g: 0, b: 1, a: 1}
- _WidthHeightRadius: {r: 1180, g: 75, b: 20, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!1 &1713791598 --- !u!1 &1713791598
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -12102,47 +12068,6 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2076766879} m_GameObject: {fileID: 2076766879}
m_CullTransparentMesh: 1 m_CullTransparentMesh: 1
--- !u!21 &2091214324
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: UI/RoundedCorners/RoundedCorners
m_Shader: {fileID: 4800000, guid: 0bd2ec5d73751e34a814274a454bec41, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _ColorMask: 15
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _UseUIAlphaClip: 0
m_Colors:
- _OuterUV: {r: 0, g: 0, b: 1, a: 1}
- _WidthHeightRadius: {r: 1180, g: 75, b: 20, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!1 &2113588832 --- !u!1 &2113588832
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@@ -130,13 +130,12 @@ public class ChatroomMenu : MonoBehaviour
var rowInfo = Instantiate(sampleObject, content.transform); var rowInfo = Instantiate(sampleObject, content.transform);
rowInfo.transform.SetSiblingIndex(content.transform.childCount - 1); rowInfo.transform.SetSiblingIndex(content.transform.childCount - 1);
var bgImg = rowInfo.transform.GetChild(0).GetComponent<Image>(); var usernameText = rowInfo.transform.GetChild(0).GetComponent<TMP_Text>();
var usernameText = rowInfo.transform.GetChild(1).GetComponent<TMP_Text>(); var playerIcon = rowInfo.transform.GetChild(1).GetComponent<Image>();
var playerIcon = rowInfo.transform.GetChild(2).GetComponent<Image>();
var playerIconButton = rowInfo.transform.GetChild(2).GetComponent<Button>();
var playerOverlayIcon = playerIcon.transform.GetChild(0).GetComponent<Image>(); var playerOverlayIcon = playerIcon.transform.GetChild(0).GetComponent<Image>();
var messageText = rowInfo.transform.GetChild(3).GetComponent<TMP_Text>(); var playerIconButton = rowInfo.transform.GetChild(1).GetComponent<Button>();
var optionsButton = rowInfo.transform.GetChild(4).GetComponent<Button>(); var messageText = rowInfo.transform.GetChild(2).GetComponent<TMP_Text>();
var optionsButton = rowInfo.transform.GetChild(3).GetComponent<Button>();
usernameText.text = message.Username; usernameText.text = message.Username;
messageText.text = message.Content; messageText.text = message.Content;
@@ -170,7 +169,7 @@ public class ChatroomMenu : MonoBehaviour
optionsButton.onClick.AddListener(() => OptionsButtonClick(message, localUserId ?? 0)); optionsButton.onClick.AddListener(() => OptionsButtonClick(message, localUserId ?? 0));
rowInfo.name = "ChatroomRow_" + message.ID; rowInfo.name = "ChatroomRow_" + message.ID;
var entryComponet = rowInfo.AddComponent<ChatroomMenuEntry>(); var entryComponet = rowInfo.AddComponent<ChatroomMenuEntry>();
entryComponet.Init(bgImg, optionsButton); entryComponet.Init(optionsButton);
rowInfo.SetActive(true); rowInfo.SetActive(true);
return rowInfo; return rowInfo;
} }

View File

@@ -4,16 +4,14 @@ using UnityEngine.UI;
public class ChatroomMenuEntry : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler public class ChatroomMenuEntry : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler
{ {
private Image bgImg;
private Button optionsButton; private Button optionsButton;
private static ChatroomMenuEntry activeEntry; private static ChatroomMenuEntry activeEntry;
public void Init(Image bgImgArg, Button optionsButtonArg) public void Init(Button optionsButtonArg)
{ {
bgImg = bgImgArg;
optionsButton = optionsButtonArg; optionsButton = optionsButtonArg;
var color = BazookaManager.Instance.GetColorSettingMenuBackground(); var color = BazookaManager.Instance.GetColorSettingMenuBackground();
bgImg.color = new Color((((float)color[0]) + 26f) / 255f, (((float)color[1]) + 26f) / 255f, (((float)color[2]) + 26f) / 255f); gameObject.GetComponent<Image>().color = new Color((((float)color[0]) + 24f) / 255f, (((float)color[1]) + 24f) / 255f, (((float)color[2]) + 24f) / 255f);
optionsButton.gameObject.SetActive(false); optionsButton.gameObject.SetActive(false);
} }
@@ -74,14 +72,14 @@ public class ChatroomMenuEntry : MonoBehaviour, IPointerEnterHandler, IPointerEx
{ {
activeEntry = this; activeEntry = this;
var color = BazookaManager.Instance.GetColorSettingMenuBackground(); var color = BazookaManager.Instance.GetColorSettingMenuBackground();
bgImg.color = new Color((((float)color[0]) + 36f) / 255f, (((float)color[1]) + 36f) / 255f, (((float)color[2]) + 36f) / 255f); gameObject.GetComponent<Image>().color = new Color((((float)color[0]) + 36f) / 255f, (((float)color[1]) + 36f) / 255f, (((float)color[2]) + 36f) / 255f);
optionsButton.gameObject.SetActive(true); optionsButton.gameObject.SetActive(true);
} }
private void Deactivate() private void Deactivate()
{ {
var color = BazookaManager.Instance.GetColorSettingMenuBackground(); var color = BazookaManager.Instance.GetColorSettingMenuBackground();
bgImg.color = new Color((((float)color[0]) + 26f) / 255f, (((float)color[1]) + 26f) / 255f, (((float)color[2]) + 26f) / 255f); gameObject.GetComponent<Image>().color = new Color((((float)color[0]) + 24f) / 255f, (((float)color[1]) + 24f) / 255f, (((float)color[2]) + 24f) / 255f);
optionsButton.gameObject.SetActive(false); optionsButton.gameObject.SetActive(false);
if (activeEntry == this) activeEntry = null; if (activeEntry == this) activeEntry = null;
} }