更新贴屏对话

This commit is contained in:
cneicy committed 2024-09-17 20:36:55 +08:00
1 parent e7540d54f8
commit 180c8f1038
8 files changed
+1001 -68

No files matched your search

+877
View File
@@ -0,0 +1,877 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &-5877148221832478119
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Cubic_11_1.013_R Atlas Material
m_Shader: {fileID: 4800000, guid: 68e6db2ebdc24f95958faec2be5558d6, 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:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _Cube:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FaceTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 3747318023419488858}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OutlineTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _Ambient: 0.5
- _Bevel: 0.5
- _BevelClamp: 0
- _BevelOffset: 0
- _BevelRoundness: 0
- _BevelWidth: 0
- _BumpFace: 0
- _BumpOutline: 0
- _ColorMask: 15
- _CullMode: 0
- _Diffuse: 0.5
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GradientScale: 10
- _LightAngle: 3.1416
- _MaskSoftnessX: 0
- _MaskSoftnessY: 0
- _OutlineSoftness: 0
- _OutlineUVSpeedX: 0
- _OutlineUVSpeedY: 0
- _OutlineWidth: 0
- _PerspectiveFilter: 0.875
- _Reflectivity: 10
- _ScaleRatioA: 0.9
- _ScaleRatioB: 0.73125
- _ScaleRatioC: 0.73125
- _ScaleX: 1
- _ScaleY: 1
- _ShaderFlags: 0
- _Sharpness: 0
- _SpecularPower: 2
- _Stencil: 0
- _StencilComp: 8
- _StencilOp: 0
- _StencilReadMask: 255
- _StencilWriteMask: 255
- _TextureHeight: 1024
- _TextureWidth: 1024
- _UnderlayDilate: 0
- _UnderlayOffsetX: 0
- _UnderlayOffsetY: 0
- _UnderlaySoftness: 0
- _VertexOffsetX: 0
- _VertexOffsetY: 0
- _WeightBold: 0.75
- _WeightNormal: 0
m_Colors:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
m_BuildTextureStacks: []
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
m_Name: Cubic_11_1.013_R SDF
m_EditorClassIdentifier:
hashCode: 2087150287
material: {fileID: -5877148221832478119}
materialHashCode: -455748721
m_Version: 1.1.0
m_SourceFontFileGUID: 91942d145a7996242b69fffc3c35d097
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: 91942d145a7996242b69fffc3c35d097, type: 3}
m_SourceFontFile: {fileID: 12800000, guid: 91942d145a7996242b69fffc3c35d097, type: 3}
m_AtlasPopulationMode: 1
m_FaceInfo:
m_FaceIndex: 0
m_FamilyName: Cubic 11
m_StyleName: Regular
m_PointSize: 90
m_Scale: 1
m_UnitsPerEM: 1200
m_LineHeight: 105
m_AscentLine: 75
m_CapLine: 60
m_MeanLine: 38
m_Baseline: 0
m_DescentLine: -30
m_SuperscriptOffset: 75
m_SuperscriptSize: 0.5
m_SubscriptOffset: -30
m_SubscriptSize: 0.5
m_UnderlineOffset: -15
m_UnderlineThickness: 0
m_StrikethroughOffset: 15.2
m_StrikethroughThickness: 0
m_TabWidth: 30
m_GlyphTable:
- m_Index: 364
m_Metrics:
m_Width: 75
m_Height: 15
m_HorizontalBearingX: 15
m_HorizontalBearingY: 30
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 10
m_Y: 10
m_Width: 75
m_Height: 15
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 66
m_Metrics:
m_Width: 45
m_Height: 7.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: -7.5
m_HorizontalAdvance: 52.5
m_GlyphRect:
m_X: 104
m_Y: 10
m_Width: 45
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 95
m_Metrics:
m_Width: 7.5
m_Height: 82.5
m_HorizontalBearingX: 15
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 168
m_Y: 10
m_Width: 8
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 49
m_Metrics:
m_Width: 52.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 60
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 10
m_Y: 44
m_Width: 53
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 72
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 104
m_Y: 37
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 90
m_Metrics:
m_Width: 67.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 75
m_GlyphRect:
m_X: 195
m_Y: 10
m_Width: 68
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3
m_Metrics:
m_Width: 0
m_Height: 0
m_HorizontalBearingX: 0
m_HorizontalBearingY: 0
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 0
m_Y: 0
m_Width: 0
m_Height: 0
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 39
m_Metrics:
m_Width: 52.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 60
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 82
m_Y: 102
m_Width: 53
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 76
m_Metrics:
m_Width: 7.5
m_Height: 67.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 60
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 10
m_Y: 131
m_Width: 8
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 68
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 282
m_Y: 10
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 79
m_Metrics:
m_Width: 7.5
m_Height: 75
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 37
m_Y: 131
m_Width: 8
m_Height: 76
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 82
m_Metrics:
m_Width: 37.5
m_Height: 45
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 339
m_Y: 10
m_Width: 38
m_Height: 46
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 74
m_Metrics:
m_Width: 37.5
m_Height: 67.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 37.5
m_HorizontalAdvance: 45
m_GlyphRect:
m_X: 396
m_Y: 10
m_Width: 38
m_Height: 68
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 14
m_Metrics:
m_Width: 52.5
m_Height: 52.5
m_HorizontalBearingX: 0
m_HorizontalBearingY: 52.5
m_HorizontalAdvance: 60
m_GlyphRect:
m_X: 195
m_Y: 75
m_Width: 53
m_Height: 53
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 3372
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 267
m_Y: 75
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 1029
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 154
m_Y: 147
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 7700
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 10
m_Y: 226
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 2393
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 453
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 1068
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 555
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 10016
m_Metrics:
m_Width: 22.5
m_Height: 22.5
m_HorizontalBearingX: 30
m_HorizontalBearingY: 30
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 112
m_Y: 189
m_Width: 23
m_Height: 23
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 4593
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 657
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 8404
m_Metrics:
m_Width: 82.5
m_Height: 82.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 67.5
m_HorizontalAdvance: 97.5
m_GlyphRect:
m_X: 759
m_Y: 10
m_Width: 83
m_Height: 83
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
- m_Index: 17
m_Metrics:
m_Width: 7.5
m_Height: 7.5
m_HorizontalBearingX: 7.5
m_HorizontalBearingY: 0
m_HorizontalAdvance: 30
m_GlyphRect:
m_X: 369
m_Y: 75
m_Width: 8
m_Height: 8
m_Scale: 1
m_AtlasIndex: 0
m_ClassDefinitionType: 0
m_CharacterTable:
- m_ElementType: 1
m_Unicode: 8230
m_GlyphIndex: 364
m_Scale: 1
- m_ElementType: 1
m_Unicode: 95
m_GlyphIndex: 66
m_Scale: 1
- m_ElementType: 1
m_Unicode: 124
m_GlyphIndex: 95
m_Scale: 1
- m_ElementType: 1
m_Unicode: 78
m_GlyphIndex: 49
m_Scale: 1
- m_ElementType: 1
m_Unicode: 101
m_GlyphIndex: 72
m_Scale: 1
- m_ElementType: 1
m_Unicode: 119
m_GlyphIndex: 90
m_Scale: 1
- m_ElementType: 1
m_Unicode: 32
m_GlyphIndex: 3
m_Scale: 1
- m_ElementType: 1
m_Unicode: 68
m_GlyphIndex: 39
m_Scale: 1
- m_ElementType: 1
m_Unicode: 105
m_GlyphIndex: 76
m_Scale: 1
- m_ElementType: 1
m_Unicode: 97
m_GlyphIndex: 68
m_Scale: 1
- m_ElementType: 1
m_Unicode: 108
m_GlyphIndex: 79
m_Scale: 1
- m_ElementType: 1
m_Unicode: 111
m_GlyphIndex: 82
m_Scale: 1
- m_ElementType: 1
m_Unicode: 103
m_GlyphIndex: 74
m_Scale: 1
- m_ElementType: 1
m_Unicode: 43
m_GlyphIndex: 14
m_Scale: 1
- m_ElementType: 1
m_Unicode: 25105
m_GlyphIndex: 3372
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20250
m_GlyphIndex: 1029
m_Scale: 1
- m_ElementType: 1
m_Unicode: 35270
m_GlyphIndex: 7700
m_Scale: 1
- m_ElementType: 1
m_Unicode: 22904
m_GlyphIndex: 2393
m_Scale: 1
- m_ElementType: 1
m_Unicode: 20320
m_GlyphIndex: 1068
m_Scale: 1
- m_ElementType: 1
m_Unicode: 65292
m_GlyphIndex: 10016
m_Scale: 1
- m_ElementType: 1
m_Unicode: 27704
m_GlyphIndex: 4593
m_Scale: 1
- m_ElementType: 1
m_Unicode: 36828
m_GlyphIndex: 8404
m_Scale: 1
- m_ElementType: 1
m_Unicode: 46
m_GlyphIndex: 17
m_Scale: 1
m_AtlasTextures:
- {fileID: 3747318023419488858}
m_AtlasTextureIndex: 0
m_IsMultiAtlasTexturesEnabled: 0
m_ClearDynamicDataOnBuild: 0
m_UsedGlyphRects:
- m_X: 0
m_Y: 0
m_Width: 94
m_Height: 34
- m_X: 94
m_Y: 0
m_Width: 64
m_Height: 27
- m_X: 158
m_Y: 0
m_Width: 27
m_Height: 102
- m_X: 0
m_Y: 34
m_Width: 72
m_Height: 87
- m_X: 94
m_Y: 27
m_Width: 57
m_Height: 65
- m_X: 185
m_Y: 0
m_Width: 87
m_Height: 65
- m_X: 72
m_Y: 92
m_Width: 72
m_Height: 87
- m_X: 0
m_Y: 121
m_Width: 27
m_Height: 87
- m_X: 272
m_Y: 0
m_Width: 57
m_Height: 65
- m_X: 27
m_Y: 121
m_Width: 27
m_Height: 95
- m_X: 329
m_Y: 0
m_Width: 57
m_Height: 65
- m_X: 386
m_Y: 0
m_Width: 57
m_Height: 87
- m_X: 185
m_Y: 65
m_Width: 72
m_Height: 72
- m_X: 257
m_Y: 65
m_Width: 102
m_Height: 102
- m_X: 144
m_Y: 137
m_Width: 102
m_Height: 102
- m_X: 0
m_Y: 216
m_Width: 102
m_Height: 102
- m_X: 443
m_Y: 0
m_Width: 102
m_Height: 102
- m_X: 545
m_Y: 0
m_Width: 102
m_Height: 102
- m_X: 102
m_Y: 179
m_Width: 42
m_Height: 42
- m_X: 647
m_Y: 0
m_Width: 102
m_Height: 102
- m_X: 749
m_Y: 0
m_Width: 102
m_Height: 102
- m_X: 359
m_Y: 65
m_Width: 27
m_Height: 27
m_FreeGlyphRects:
- m_X: 72
m_Y: 34
m_Width: 22
m_Height: 58
- m_X: 151
m_Y: 27
m_Width: 7
m_Height: 110
- m_X: 144
m_Y: 92
m_Width: 14
m_Height: 45
- m_X: 144
m_Y: 102
m_Width: 41
m_Height: 35
- m_X: 246
m_Y: 167
m_Width: 777
m_Height: 856
- m_X: 246
m_Y: 137
m_Width: 11
m_Height: 886
- m_X: 0
m_Y: 208
m_Width: 27
m_Height: 8
- m_X: 54
m_Y: 121
m_Width: 18
m_Height: 95
- m_X: 0
m_Y: 318
m_Width: 1023
m_Height: 705
- m_X: 102
m_Y: 239
m_Width: 921
m_Height: 784
- m_X: 359
m_Y: 102
m_Width: 664
m_Height: 921
- m_X: 54
m_Y: 179
m_Width: 48
m_Height: 37
- m_X: 102
m_Y: 221
m_Width: 42
m_Height: 802
- m_X: 851
m_Y: 0
m_Width: 172
m_Height: 1023
- m_X: 359
m_Y: 92
m_Width: 84
m_Height: 931
- m_X: 386
m_Y: 87
m_Width: 57
m_Height: 936
m_fontInfo:
Name:
PointSize: 0
Scale: 0
CharacterCount: 0
LineHeight: 0
Baseline: 0
Ascender: 0
CapHeight: 0
Descender: 0
CenterLine: 0
SuperscriptOffset: 0
SubscriptOffset: 0
SubSize: 0
Underline: 0
UnderlineThickness: 0
strikethrough: 0
strikethroughThickness: 0
TabWidth: 0
Padding: 0
AtlasWidth: 0
AtlasHeight: 0
atlas: {fileID: 0}
m_AtlasWidth: 1024
m_AtlasHeight: 1024
m_AtlasPadding: 9
m_AtlasRenderMode: 4165
m_glyphInfoList: []
m_KerningTable:
kerningPairs: []
m_FontFeatureTable:
m_GlyphPairAdjustmentRecords: []
fallbackFontAssets: []
m_FallbackFontAssetTable: []
m_CreationSettings:
sourceFontFileName:
sourceFontFileGUID: 91942d145a7996242b69fffc3c35d097
pointSizeSamplingMode: 0
pointSize: 90
padding: 9
packingMode: 0
atlasWidth: 1024
atlasHeight: 1024
characterSetSelectionMode: 7
characterSequence:
referencedFontAssetGUID:
referencedTextAssetGUID:
fontStyle: 0
fontStyleModifier: 0
renderMode: 4165
includeFontFeatures: 0
m_FontWeightTable:
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
- regularTypeface: {fileID: 0}
italicTypeface: {fileID: 0}
fontWeights: []
normalStyle: 0
normalSpacingOffset: 0
boldStyle: 0.75
boldSpacing: 7
italicStyle: 35
tabSize: 10
--- !u!28 &3747318023419488858
Texture2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Cubic_11_1.013_R Atlas
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 2
m_Width: 1024
m_Height: 1024
m_CompleteImageSize: 1048576
m_MipsStripped: 0
m_TextureFormat: 1
m_MipCount: 1
m_IsReadable: 1
m_IsPreProcessed: 0
m_IgnoreMipmapLimit: 0
m_MipmapLimitGroupName:
m_StreamingMipmaps: 0
m_StreamingMipmapsPriority: 0
m_VTOnly: 0
m_AlphaIsTransparency: 0
m_ImageCount: 1
m_TextureDimension: 2
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 1
m_MipBias: 0
m_WrapU: 0
m_WrapV: 0
m_WrapW: 0
m_LightmapFormat: 0
m_ColorSpace: 1
m_PlatformBlob:
image data: 1048576
_typelessdata: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a050000000000050a0f121313131313131313131313131313131313120f0a05000000000000000000050a0f121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a05000000000000000000050a0f1213131313131313130d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000002070a0c0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000000000000000000000000000000000407090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0a09070400000000000000000000000000000000000000000307090a0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0c0a0702000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313120f0a0500000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313130d0c0a070200000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050a0f1213131313131313131313131313131313131313131313130d0c0a070200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002070a0c0d1313131313131313120f0a050000000000000000000000000002070a0c0d1313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313120f0a05000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b1610090100010910161b1e20202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020201e1b161009010000000000010910161b1e20202020202020201a1916130d07000000000000000000000000000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b04000000000000000000000000070d1316191a1a1a1a1a1a1a161613100b0400000000000000000000000000000000000000000000000000000000000000040b101316161a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a161613100b0400000000000000000000000000000000040b10131616191919191919191919191919191919191919191919191916130d07000000000000000000000000000000000000000000000000070d1316191a20202020202020202020202020202020202020202020201e1b1610090100000000000000000000Line truncated
m_StreamData:
serializedVersion: 2
offset: 0
size: 0
path:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: faf204988c60a4c4fb8373d533153646
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
fileFormatVersion: 2
guid: 91942d145a7996242b69fffc3c35d097
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontNames:
- Cubic 11
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
shouldRoundAdvanceValue: 1
userData:
assetBundleName:
assetBundleVariant:
+17 -64
View File
@@ -38,7 +38,6 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@@ -783,8 +782,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 944706249}
- component: {fileID: 944706248}
- component: {fileID: 944706247}
- component: {fileID: 944706246}
- component: {fileID: 944706250}
- component: {fileID: 944706251}
@@ -818,56 +815,6 @@ CapsuleCollider:
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &944706247
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 944706245}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &944706248
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 944706245}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &944706249
Transform:
m_ObjectHideFlags: 0
@@ -1134,9 +1081,9 @@ Canvas:
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_Camera: {fileID: 963194227}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_PixelPerfect: 1
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
@@ -1159,9 +1106,9 @@ RectTransform:
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 675862482}
- {fileID: 1644802856}
- {fileID: 1157830469}
- {fileID: 675862482}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@@ -1203,7 +1150,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_SizeDelta: {x: 20, y: 5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1157830470
MonoBehaviour:
@@ -1219,6 +1166,12 @@ MonoBehaviour:
m_EditorClassIdentifier:
dialogsPath:
dialogJson:
typingSpeed: 0.5
IntroduceText:
textMeshPro: {fileID: 1644802857}
printTime: 0
maxPrintTime: 10
isTime2Break: 0
--- !u!1 &1306517519
GameObject:
m_ObjectHideFlags: 0
@@ -1336,7 +1289,7 @@ GameObject:
- component: {fileID: 1644802856}
- component: {fileID: 1644802858}
- component: {fileID: 1644802857}
m_Layer: 5
m_Layer: 6
m_Name: Arror
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -1384,8 +1337,8 @@ MonoBehaviour:
m_Calls: []
m_text: +
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontAsset: {fileID: 11400000, guid: faf204988c60a4c4fb8373d533153646, type: 2}
m_sharedMaterial: {fileID: -5877148221832478119, guid: faf204988c60a4c4fb8373d533153646, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
@@ -1409,10 +1362,10 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 44.75
m_fontSizeBase: 36
m_fontSize: 42.85
m_fontSizeBase: 42.85
m_fontWeight: 400
m_enableAutoSizing: 1
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
@@ -1425,7 +1378,7 @@ MonoBehaviour:
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_enableWordWrapping: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
+78 -4
View File
@@ -1,8 +1,11 @@
using System.Collections.Generic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using Event;
using Event.EventArgs;
using Newtonsoft.Json;
using TMPro;
using UnityEngine;
namespace UI
@@ -13,6 +16,17 @@ namespace UI
[SerializeField] private string dialogJson;
private Dictionary<int, string> _dialogsMap = new();
public float typingSpeed = 0.05f;
public string IntroduceText;
private string _currentText = "";
private float _timer;
private int _currentIndex;
private bool _start;
private bool _isBlinking;
public TMP_Text textMeshPro;
public float printTime;
public float maxPrintTime=10;
public bool isTime2Break;
private void Awake()
{
dialogsPath = Application.persistentDataPath + "/" + "Dialogs.json";
@@ -24,20 +38,80 @@ namespace UI
}
else
{
_dialogsMap.Add(0, "New Dialog");
_dialogsMap.Add(0, "我会视奸你,永远...永远......");
dialogJson = JsonConvert.SerializeObject(_dialogsMap, Formatting.Indented);
File.WriteAllText(dialogsPath, dialogJson);
}
}
private void Update()
{
if (!_start) return;
printTime += Time.deltaTime;
if (printTime > maxPrintTime)
{
isTime2Break = true;
}
if (_currentText == IntroduceText) return;
_timer += Time.deltaTime;
if (!(_timer >= typingSpeed)) return;
_timer = 0f;
_currentText += IntroduceText[_currentIndex];
textMeshPro.text = _currentText;
_currentIndex++;
}
private void Start()
{
EventManager.Instance.DialogPop += OpenDialog;
EventManager.Instance.DialogPop += StartPrinting;
}
public void OpenDialog(DialogPopArgs e)
/*public void OpenDialog(DialogPopArgs e)
{
Debug.Log(_dialogsMap[e.Index]);
}*/
//闪烁光标
private IEnumerator BlinkCursor()
{
while (true)
{
if (isTime2Break)
{
_start = false;
printTime = 0;
isTime2Break = false;
textMeshPro.fontSize = 48.7f;
textMeshPro.text = "+";
break;
}
if (!_isBlinking)
{
textMeshPro.text += "|";
_isBlinking = true;
}
else
{
textMeshPro.text = textMeshPro.text[..^1];
_isBlinking = false;
}
yield return new WaitForSeconds(0.3f); // 闪烁速度
}
}
// 调用此方法开始打印文字
private void StartPrinting(DialogPopArgs e)
{
if(printTime != 0) return;
_start = true;
_currentText = "";
IntroduceText = _dialogsMap[e.Index];
_currentIndex = 0;
_timer = 0f;
textMeshPro.fontSize = 80;
StartCoroutine(BlinkCursor());
}
}
}
Whitespace-only changes.
Whitespace-only changes.