user-taggable fonts in textboxes
This commit is contained in:
parent
0e646dccbc
commit
300ea27643
|
|
@ -57,7 +57,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: AboutFriendExtended SDF
|
||||
m_Name: About Friend
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: 292566377
|
||||
material: {fileID: 257945094220203448}
|
||||
|
|
@ -57,7 +57,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: A-OTF_Kanteiryu_Std_Ultra SDF
|
||||
m_Name: Kanteiryu
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: 1204775328
|
||||
material: {fileID: 5450628194481860327}
|
||||
3412
Assets/Resources/Fonts/Kurokane.asset
Normal file
3412
Assets/Resources/Fonts/Kurokane.asset
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -165,7 +165,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: Roboto-Regular
|
||||
m_Name: Roboto
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: 2018147868
|
||||
material: {fileID: -5829441969153149921}
|
||||
|
|
@ -115,7 +115,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: FOT-Rodin Pro DB SDF
|
||||
m_Name: Rodin DB
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: 34507188
|
||||
material: {fileID: -6562250930271150993}
|
||||
|
|
@ -83,8 +83,8 @@ Material:
|
|||
- _StencilOp: 0
|
||||
- _StencilReadMask: 255
|
||||
- _StencilWriteMask: 255
|
||||
- _TextureHeight: 1024
|
||||
- _TextureWidth: 1024
|
||||
- _TextureHeight: 2048
|
||||
- _TextureWidth: 2048
|
||||
- _UnderlayDilate: 0
|
||||
- _UnderlayOffsetX: 0
|
||||
- _UnderlayOffsetY: 0
|
||||
|
|
|
|||
|
|
@ -83,8 +83,8 @@ Material:
|
|||
- _StencilOp: 0
|
||||
- _StencilReadMask: 255
|
||||
- _StencilWriteMask: 255
|
||||
- _TextureHeight: 1024
|
||||
- _TextureWidth: 1024
|
||||
- _TextureHeight: 2048
|
||||
- _TextureWidth: 2048
|
||||
- _UnderlayDilate: 0
|
||||
- _UnderlayOffsetX: 0
|
||||
- _UnderlayOffsetY: 0
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -113,7 +113,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: Roboto-Bold SDF
|
||||
m_Name: Roboto Bold
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: -635320526
|
||||
material: {fileID: -212896991529246517}
|
||||
|
|
@ -10,7 +10,7 @@ MonoBehaviour:
|
|||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: Roboto-Medium
|
||||
m_Name: Roboto Medium
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: -724225253
|
||||
material: {fileID: 5250768452915780979}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -110,7 +110,7 @@ AnimationClip:
|
|||
- serializedVersion: 3
|
||||
time: 7
|
||||
value: {x: 1.05, y: 1.05, z: 1.05}
|
||||
inSlope: {x: 0.007499993, y: 0.007499993, z: 0.007499993}
|
||||
inSlope: {x: 0, y: 0, z: 0}
|
||||
outSlope: {x: 0, y: 0, z: 0}
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
|
|
@ -649,7 +649,7 @@ AnimationClip:
|
|||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 2.5
|
||||
value: 1
|
||||
value: 0
|
||||
inSlope: Infinity
|
||||
outSlope: Infinity
|
||||
tangentMode: 103
|
||||
|
|
@ -903,16 +903,16 @@ AnimationClip:
|
|||
value: 1
|
||||
inSlope: -0
|
||||
outSlope: 0.007499993
|
||||
tangentMode: 69
|
||||
tangentMode: 1
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 7
|
||||
value: 1.05
|
||||
inSlope: 0.007499993
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 69
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
|
|
@ -940,16 +940,16 @@ AnimationClip:
|
|||
value: 1
|
||||
inSlope: -0
|
||||
outSlope: 0.007499993
|
||||
tangentMode: 69
|
||||
tangentMode: 5
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 7
|
||||
value: 1.05
|
||||
inSlope: 0.007499993
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 69
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
|
|
@ -977,16 +977,16 @@ AnimationClip:
|
|||
value: 1
|
||||
inSlope: -0
|
||||
outSlope: 0.007499993
|
||||
tangentMode: 69
|
||||
tangentMode: 5
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 7
|
||||
value: 1.05
|
||||
inSlope: 0.007499993
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 69
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
|
|
@ -1838,7 +1838,7 @@ AnimationClip:
|
|||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 2.5
|
||||
value: 1
|
||||
value: 0
|
||||
inSlope: Infinity
|
||||
outSlope: Infinity
|
||||
tangentMode: 103
|
||||
|
|
|
|||
|
|
@ -0,0 +1,249 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &-8363303154257276663
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: hsEmoji Material
|
||||
m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _ColorMask: 15
|
||||
- _CullMode: 0
|
||||
- _Stencil: 0
|
||||
- _StencilComp: 8
|
||||
- _StencilOp: 0
|
||||
- _StencilReadMask: 255
|
||||
- _StencilWriteMask: 255
|
||||
- _UseUIAlphaClip: 0
|
||||
m_Colors:
|
||||
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
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: 84a92b25f83d49b9bc132d206b370281, type: 3}
|
||||
m_Name: hsEmoji
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 1.1.0
|
||||
m_FaceInfo:
|
||||
m_FaceIndex: 0
|
||||
m_FamilyName:
|
||||
m_StyleName:
|
||||
m_PointSize: 0
|
||||
m_Scale: 0
|
||||
m_UnitsPerEM: 0
|
||||
m_LineHeight: 0
|
||||
m_AscentLine: 0
|
||||
m_CapLine: 0
|
||||
m_MeanLine: 0
|
||||
m_Baseline: 0
|
||||
m_DescentLine: 0
|
||||
m_SuperscriptOffset: 0
|
||||
m_SuperscriptSize: 0
|
||||
m_SubscriptOffset: 0
|
||||
m_SubscriptSize: 0
|
||||
m_UnderlineOffset: 0
|
||||
m_UnderlineThickness: 0
|
||||
m_StrikethroughOffset: 0
|
||||
m_StrikethroughThickness: 0
|
||||
m_TabWidth: 0
|
||||
m_Material: {fileID: -8363303154257276663}
|
||||
spriteSheet: {fileID: 2800000, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
m_SpriteCharacterTable:
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 0
|
||||
m_Scale: 1
|
||||
m_Name: SpacemanPensive
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 1
|
||||
m_Scale: 1
|
||||
m_Name: TrollAlien
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 2
|
||||
m_Scale: 1
|
||||
m_Name: CosmicDisgust
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 3
|
||||
m_Scale: 1
|
||||
m_Name: MakoSurprise
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 4
|
||||
m_Scale: 1
|
||||
m_Name: MoaiCool
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 5
|
||||
m_Scale: 1
|
||||
m_Name: DjThumbsUp
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 6
|
||||
m_Scale: 1
|
||||
m_Name: LockstepNerd
|
||||
- m_ElementType: 2
|
||||
m_Unicode: 65534
|
||||
m_GlyphIndex: 7
|
||||
m_Scale: 1
|
||||
m_Name: MonkeySad
|
||||
m_GlyphTable:
|
||||
- m_Index: 0
|
||||
m_Metrics:
|
||||
m_Width: 128
|
||||
m_Height: 111
|
||||
m_HorizontalBearingX: -64
|
||||
m_HorizontalBearingY: 55.5
|
||||
m_HorizontalAdvance: 128
|
||||
m_GlyphRect:
|
||||
m_X: 389
|
||||
m_Y: 905
|
||||
m_Width: 128
|
||||
m_Height: 111
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: 696307254153927553, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 1
|
||||
m_Metrics:
|
||||
m_Width: 123
|
||||
m_Height: 128
|
||||
m_HorizontalBearingX: -61.5
|
||||
m_HorizontalBearingY: 64
|
||||
m_HorizontalAdvance: 123
|
||||
m_GlyphRect:
|
||||
m_X: 259
|
||||
m_Y: 895
|
||||
m_Width: 123
|
||||
m_Height: 128
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: 8520508767416187551, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 2
|
||||
m_Metrics:
|
||||
m_Width: 256
|
||||
m_Height: 256
|
||||
m_HorizontalBearingX: -128
|
||||
m_HorizontalBearingY: 128
|
||||
m_HorizontalAdvance: 256
|
||||
m_GlyphRect:
|
||||
m_X: 1
|
||||
m_Y: 767
|
||||
m_Width: 256
|
||||
m_Height: 256
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: -8499381173796814039, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 3
|
||||
m_Metrics:
|
||||
m_Width: 236
|
||||
m_Height: 256
|
||||
m_HorizontalBearingX: -118
|
||||
m_HorizontalBearingY: 128
|
||||
m_HorizontalAdvance: 236
|
||||
m_GlyphRect:
|
||||
m_X: 517
|
||||
m_Y: 767
|
||||
m_Width: 236
|
||||
m_Height: 256
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: -4264556394388760843, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 4
|
||||
m_Metrics:
|
||||
m_Width: 186
|
||||
m_Height: 256
|
||||
m_HorizontalBearingX: -93
|
||||
m_HorizontalBearingY: 128
|
||||
m_HorizontalAdvance: 186
|
||||
m_GlyphRect:
|
||||
m_X: 754
|
||||
m_Y: 767
|
||||
m_Width: 186
|
||||
m_Height: 256
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: 825579231639803812, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 5
|
||||
m_Metrics:
|
||||
m_Width: 128
|
||||
m_Height: 93
|
||||
m_HorizontalBearingX: -64
|
||||
m_HorizontalBearingY: 46.5
|
||||
m_HorizontalAdvance: 128
|
||||
m_GlyphRect:
|
||||
m_X: 713
|
||||
m_Y: 672
|
||||
m_Width: 128
|
||||
m_Height: 93
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: -2528918449702486434, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 6
|
||||
m_Metrics:
|
||||
m_Width: 256
|
||||
m_Height: 222
|
||||
m_HorizontalBearingX: -128
|
||||
m_HorizontalBearingY: 111
|
||||
m_HorizontalAdvance: 256
|
||||
m_GlyphRect:
|
||||
m_X: 259
|
||||
m_Y: 670
|
||||
m_Width: 256
|
||||
m_Height: 222
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: -8666286934846544496, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
- m_Index: 7
|
||||
m_Metrics:
|
||||
m_Width: 195
|
||||
m_Height: 128
|
||||
m_HorizontalBearingX: -97.5
|
||||
m_HorizontalBearingY: 64
|
||||
m_HorizontalAdvance: 195
|
||||
m_GlyphRect:
|
||||
m_X: 516
|
||||
m_Y: 638
|
||||
m_Width: 195
|
||||
m_Height: 128
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
sprite: {fileID: 5944629093363706705, guid: fb23f410a80c2f0439d7148fc9fe6932, type: 3}
|
||||
spriteInfoList: []
|
||||
fallbackSpriteAssets: []
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e2ad0e9127347de4f8d59ad9f502e2eb
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -18,6 +18,8 @@ namespace HeavenStudio
|
|||
[SerializeField] bool enableSecondDisclaimer;
|
||||
|
||||
bool fastBoot = false;
|
||||
float timer = 0;
|
||||
|
||||
void Start()
|
||||
{
|
||||
string[] args = System.Environment.GetCommandLineArgs();
|
||||
|
|
@ -77,15 +79,24 @@ namespace HeavenStudio
|
|||
}
|
||||
else
|
||||
{
|
||||
timer = 0;
|
||||
openingAnim.Play("FirstOpening", -1, 0);
|
||||
openingAudio.PlayScheduled(AudioSettings.dspTime + 0.5);
|
||||
StartCoroutine(WaitAndFinishOpening());
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!fastBoot)
|
||||
{
|
||||
timer += Time.deltaTime;
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator WaitAndFinishOpening()
|
||||
{
|
||||
WaitUntil wait = new WaitUntil(() => Input.anyKeyDown);
|
||||
WaitUntil wait = new WaitUntil(() => Input.anyKeyDown || (timer >= 8));
|
||||
yield return wait;
|
||||
OnFinishDisclaimer(0.35f);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ MonoBehaviour:
|
|||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3}
|
||||
m_Name: TMP Settings
|
||||
m_EditorClassIdentifier:
|
||||
m_EditorClassIdentifier:
|
||||
assetVersion: 1
|
||||
m_TextWrappingMode: 1
|
||||
m_enableKerning: 1
|
||||
m_ActiveFontFeatures: 00000000
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
m_enableTintAllSprites: 0
|
||||
m_enableParseEscapeCharacters: 1
|
||||
|
|
@ -24,8 +24,8 @@ MonoBehaviour:
|
|||
m_missingGlyphCharacter: 0
|
||||
m_ClearDynamicDataOnBuild: 1
|
||||
m_warningsDisabled: 0
|
||||
m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_defaultFontAssetPath: Fonts & Materials/
|
||||
m_defaultFontAsset: {fileID: 11400000, guid: 8597c35f18a008c428fc5870aec75766, type: 2}
|
||||
m_defaultFontAssetPath: Fonts/
|
||||
m_defaultFontSize: 36
|
||||
m_defaultAutoSizeMinRatio: 0.5
|
||||
m_defaultAutoSizeMaxRatio: 2
|
||||
|
|
@ -36,17 +36,14 @@ MonoBehaviour:
|
|||
m_fallbackFontAssets: []
|
||||
m_matchMaterialPreset: 1
|
||||
m_HideSubTextObjects: 0
|
||||
m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45,
|
||||
type: 2}
|
||||
m_defaultSpriteAssetPath: Sprite Assets/
|
||||
m_defaultSpriteAsset: {fileID: 11400000, guid: e2ad0e9127347de4f8d59ad9f502e2eb, type: 2}
|
||||
m_defaultSpriteAssetPath: Sprites/UI/Common/Textbox/TextboxExtras/
|
||||
m_enableEmojiSupport: 1
|
||||
m_MissingCharacterSpriteUnicode: 0
|
||||
m_EmojiFallbackTextAssets: []
|
||||
m_defaultColorGradientPresetsPath: Color Gradient Presets/
|
||||
m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e,
|
||||
type: 2}
|
||||
m_StyleSheetsResourcePath:
|
||||
m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, type: 2}
|
||||
m_StyleSheetsResourcePath:
|
||||
m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3}
|
||||
m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b,
|
||||
type: 3}
|
||||
m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, type: 3}
|
||||
m_UseModernHangulLineBreakingRules: 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue