本地化基础表
This commit is contained in:
@@ -15,7 +15,7 @@ MonoBehaviour:
|
||||
m_DefaultGroup: 09546aca93a801441859af2a811fe53b
|
||||
m_currentHash:
|
||||
serializedVersion: 2
|
||||
Hash: 02a95f5e83110acfbe55bde61cc5700a
|
||||
Hash: 11cc247bd4531f29396bdf6509d334ed
|
||||
m_OptimizeCatalogSize: 0
|
||||
m_BuildRemoteCatalog: 0
|
||||
m_BundleLocalCatalog: 0
|
||||
@@ -46,6 +46,10 @@ MonoBehaviour:
|
||||
m_GroupAssets:
|
||||
- {fileID: 11400000, guid: ac71ee7888fd1754bb3280725ad0076b, type: 2}
|
||||
- {fileID: 11400000, guid: b9026802c7966cf4799a8df997d603e3, type: 2}
|
||||
- {fileID: 11400000, guid: d582f9080605ab34cbcde3249c980030, type: 2}
|
||||
- {fileID: 11400000, guid: 54799118a585dda439cab043d56ec68c, type: 2}
|
||||
- {fileID: 11400000, guid: 7ef6dfbb568739341818a3c18623ef6a, type: 2}
|
||||
- {fileID: 11400000, guid: b593dc98ea11a484995123de77d9bf1a, type: 2}
|
||||
m_BuildSettings:
|
||||
m_CompileScriptsInVirtualMode: 0
|
||||
m_CleanupStreamingAssetsAfterBuilds: 1
|
||||
@@ -87,6 +91,9 @@ MonoBehaviour:
|
||||
m_LabelTable:
|
||||
m_LabelNames:
|
||||
- default
|
||||
- Locale
|
||||
- Locale-zh-CN
|
||||
- Locale-en
|
||||
m_SchemaTemplates: []
|
||||
m_GroupTemplateObjects:
|
||||
- {fileID: 11400000, guid: 0c158052680a3e94184c450d00291514, type: 2}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||
m_Name: Localization-Assets-Shared
|
||||
m_EditorClassIdentifier:
|
||||
m_GroupName: Localization-Assets-Shared
|
||||
m_Data:
|
||||
m_SerializedData: []
|
||||
m_GUID: a3fb8f273b1aecf48be817aedc5e5f03
|
||||
m_SerializeEntries:
|
||||
- m_GUID: 994c69bf4b2403043bc9562f2d24ee56
|
||||
m_Address: Assets/UIText Shared Data.asset
|
||||
m_ReadOnly: 1
|
||||
m_SerializedLabels: []
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
m_ReadOnly: 1
|
||||
m_Settings: {fileID: 11400000, guid: 77169ce22e430f64fb36c771815a4a7b, type: 2}
|
||||
m_SchemaSet:
|
||||
m_Schemas:
|
||||
- {fileID: 11400000, guid: 259a521603be7cc459f64906f6273d1b, type: 2}
|
||||
- {fileID: 11400000, guid: b0941afd9534fa9499b880906c4fa3a4, type: 2}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54799118a585dda439cab043d56ec68c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,37 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||
m_Name: Localization-Locales
|
||||
m_EditorClassIdentifier:
|
||||
m_GroupName: Localization-Locales
|
||||
m_Data:
|
||||
m_SerializedData: []
|
||||
m_GUID: 086861d6bd79a9c4d9e11016dad8b073
|
||||
m_SerializeEntries:
|
||||
- m_GUID: f7a48ca464fe5b546acd4cf8d1bffd1e
|
||||
m_Address: English (en)
|
||||
m_ReadOnly: 1
|
||||
m_SerializedLabels:
|
||||
- Locale
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
- m_GUID: 9193126c9acb1844fad438632c97c945
|
||||
m_Address: Chinese (Simplified) (zh-CN)
|
||||
m_ReadOnly: 1
|
||||
m_SerializedLabels:
|
||||
- Locale
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
m_ReadOnly: 1
|
||||
m_Settings: {fileID: 11400000, guid: 77169ce22e430f64fb36c771815a4a7b, type: 2}
|
||||
m_SchemaSet:
|
||||
m_Schemas:
|
||||
- {fileID: 11400000, guid: 093ef34709a49b5469813c8ebba19b03, type: 2}
|
||||
- {fileID: 11400000, guid: bba6abba9ebf0b249877d4e79a03dec0, type: 2}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d582f9080605ab34cbcde3249c980030
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||
m_Name: Localization-String-Tables-Chinese (Simplified) (zh-CN)
|
||||
m_EditorClassIdentifier:
|
||||
m_GroupName: Localization-String-Tables-Chinese (Simplified) (zh-CN)
|
||||
m_Data:
|
||||
m_SerializedData: []
|
||||
m_GUID: 1286725e540dd7f498d254a37fce2a41
|
||||
m_SerializeEntries:
|
||||
- m_GUID: b997afa69f2e7d04dbbeebc97247c560
|
||||
m_Address: UIText_zh-CN
|
||||
m_ReadOnly: 1
|
||||
m_SerializedLabels:
|
||||
- Locale-zh-CN
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
m_ReadOnly: 1
|
||||
m_Settings: {fileID: 11400000, guid: 77169ce22e430f64fb36c771815a4a7b, type: 2}
|
||||
m_SchemaSet:
|
||||
m_Schemas:
|
||||
- {fileID: 11400000, guid: e6fa94631f87f64439fc98bbce5af43e, type: 2}
|
||||
- {fileID: 11400000, guid: 462b87e9eedc0ed47a704ccb15bc9561, type: 2}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ef6dfbb568739341818a3c18623ef6a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
|
||||
m_Name: Localization-String-Tables-English (en)
|
||||
m_EditorClassIdentifier:
|
||||
m_GroupName: Localization-String-Tables-English (en)
|
||||
m_Data:
|
||||
m_SerializedData: []
|
||||
m_GUID: 07cbd541cfe4be840b58b06b7bfb45bb
|
||||
m_SerializeEntries:
|
||||
- m_GUID: f3e7269fc46911b4dbe7ea36aa77aa90
|
||||
m_Address: UIText_en
|
||||
m_ReadOnly: 1
|
||||
m_SerializedLabels:
|
||||
- Locale-en
|
||||
FlaggedDuringContentUpdateRestriction: 0
|
||||
m_ReadOnly: 1
|
||||
m_Settings: {fileID: 11400000, guid: 77169ce22e430f64fb36c771815a4a7b, type: 2}
|
||||
m_SchemaSet:
|
||||
m_Schemas:
|
||||
- {fileID: 11400000, guid: 06c91dcc9476e154b839f2fbfe2b1167, type: 2}
|
||||
- {fileID: 11400000, guid: d204fc1bd8003c34fab73a0a7f7f2bce, type: 2}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b593dc98ea11a484995123de77d9bf1a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||
m_Name: Localization-Assets-Shared_BundledAssetGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: 54799118a585dda439cab043d56ec68c, type: 2}
|
||||
m_InternalBundleIdMode: 1
|
||||
m_Compression: 1
|
||||
m_IncludeAddressInCatalog: 1
|
||||
m_IncludeGUIDInCatalog: 1
|
||||
m_IncludeLabelsInCatalog: 1
|
||||
m_InternalIdNamingMode: 0
|
||||
m_CacheClearBehavior: 0
|
||||
m_IncludeInBuild: 1
|
||||
m_BundledAssetProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
||||
m_ForceUniqueProvider: 0
|
||||
m_UseAssetBundleCache: 1
|
||||
m_UseAssetBundleCrc: 1
|
||||
m_UseAssetBundleCrcForCachedBundles: 1
|
||||
m_UseUWRForLocalBundles: 0
|
||||
m_Timeout: 0
|
||||
m_ChunkedTransfer: 0
|
||||
m_RedirectLimit: -1
|
||||
m_RetryCount: 0
|
||||
m_BuildPath:
|
||||
m_Id: 2ae6a7549097a9b4caefe44b61b1fcc5
|
||||
m_LoadPath:
|
||||
m_Id: 631ec5c677ab8084fb9be9b9ee39c6ef
|
||||
m_BundleMode: 0
|
||||
m_AssetBundleProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
||||
m_BundleNaming: 1
|
||||
m_AssetLoadMode: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 259a521603be7cc459f64906f6273d1b
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||
m_Name: Localization-Assets-Shared_ContentUpdateGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: 54799118a585dda439cab043d56ec68c, type: 2}
|
||||
m_StaticContent: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b0941afd9534fa9499b880906c4fa3a4
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||
m_Name: Localization-Locales_BundledAssetGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: d582f9080605ab34cbcde3249c980030, type: 2}
|
||||
m_InternalBundleIdMode: 1
|
||||
m_Compression: 1
|
||||
m_IncludeAddressInCatalog: 1
|
||||
m_IncludeGUIDInCatalog: 1
|
||||
m_IncludeLabelsInCatalog: 1
|
||||
m_InternalIdNamingMode: 0
|
||||
m_CacheClearBehavior: 0
|
||||
m_IncludeInBuild: 1
|
||||
m_BundledAssetProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
||||
m_ForceUniqueProvider: 0
|
||||
m_UseAssetBundleCache: 1
|
||||
m_UseAssetBundleCrc: 1
|
||||
m_UseAssetBundleCrcForCachedBundles: 1
|
||||
m_UseUWRForLocalBundles: 0
|
||||
m_Timeout: 0
|
||||
m_ChunkedTransfer: 0
|
||||
m_RedirectLimit: -1
|
||||
m_RetryCount: 0
|
||||
m_BuildPath:
|
||||
m_Id: 2ae6a7549097a9b4caefe44b61b1fcc5
|
||||
m_LoadPath:
|
||||
m_Id: 631ec5c677ab8084fb9be9b9ee39c6ef
|
||||
m_BundleMode: 0
|
||||
m_AssetBundleProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
||||
m_BundleNaming: 1
|
||||
m_AssetLoadMode: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 093ef34709a49b5469813c8ebba19b03
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||
m_Name: Localization-Locales_ContentUpdateGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: d582f9080605ab34cbcde3249c980030, type: 2}
|
||||
m_StaticContent: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bba6abba9ebf0b249877d4e79a03dec0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||
m_Name: Localization-String-Tables-Chinese (Simplified) (zh-CN)_BundledAssetGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: 7ef6dfbb568739341818a3c18623ef6a, type: 2}
|
||||
m_InternalBundleIdMode: 1
|
||||
m_Compression: 1
|
||||
m_IncludeAddressInCatalog: 1
|
||||
m_IncludeGUIDInCatalog: 1
|
||||
m_IncludeLabelsInCatalog: 1
|
||||
m_InternalIdNamingMode: 0
|
||||
m_CacheClearBehavior: 0
|
||||
m_IncludeInBuild: 1
|
||||
m_BundledAssetProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
||||
m_ForceUniqueProvider: 0
|
||||
m_UseAssetBundleCache: 1
|
||||
m_UseAssetBundleCrc: 1
|
||||
m_UseAssetBundleCrcForCachedBundles: 1
|
||||
m_UseUWRForLocalBundles: 0
|
||||
m_Timeout: 0
|
||||
m_ChunkedTransfer: 0
|
||||
m_RedirectLimit: -1
|
||||
m_RetryCount: 0
|
||||
m_BuildPath:
|
||||
m_Id: 2ae6a7549097a9b4caefe44b61b1fcc5
|
||||
m_LoadPath:
|
||||
m_Id: 631ec5c677ab8084fb9be9b9ee39c6ef
|
||||
m_BundleMode: 0
|
||||
m_AssetBundleProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
||||
m_BundleNaming: 1
|
||||
m_AssetLoadMode: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6fa94631f87f64439fc98bbce5af43e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||
m_Name: Localization-String-Tables-Chinese (Simplified) (zh-CN)_ContentUpdateGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: 7ef6dfbb568739341818a3c18623ef6a, type: 2}
|
||||
m_StaticContent: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 462b87e9eedc0ed47a704ccb15bc9561
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e5d17a21594effb4e9591490b009e7aa, type: 3}
|
||||
m_Name: Localization-String-Tables-English (en)_BundledAssetGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: b593dc98ea11a484995123de77d9bf1a, type: 2}
|
||||
m_InternalBundleIdMode: 1
|
||||
m_Compression: 1
|
||||
m_IncludeAddressInCatalog: 1
|
||||
m_IncludeGUIDInCatalog: 1
|
||||
m_IncludeLabelsInCatalog: 1
|
||||
m_InternalIdNamingMode: 0
|
||||
m_CacheClearBehavior: 0
|
||||
m_IncludeInBuild: 1
|
||||
m_BundledAssetProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
|
||||
m_ForceUniqueProvider: 0
|
||||
m_UseAssetBundleCache: 1
|
||||
m_UseAssetBundleCrc: 1
|
||||
m_UseAssetBundleCrcForCachedBundles: 1
|
||||
m_UseUWRForLocalBundles: 0
|
||||
m_Timeout: 0
|
||||
m_ChunkedTransfer: 0
|
||||
m_RedirectLimit: -1
|
||||
m_RetryCount: 0
|
||||
m_BuildPath:
|
||||
m_Id: 2ae6a7549097a9b4caefe44b61b1fcc5
|
||||
m_LoadPath:
|
||||
m_Id: 631ec5c677ab8084fb9be9b9ee39c6ef
|
||||
m_BundleMode: 0
|
||||
m_AssetBundleProviderType:
|
||||
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
|
||||
m_BundleNaming: 1
|
||||
m_AssetLoadMode: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06c91dcc9476e154b839f2fbfe2b1167
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5834b5087d578d24c926ce20cd31e6d6, type: 3}
|
||||
m_Name: Localization-String-Tables-English (en)_ContentUpdateGroupSchema
|
||||
m_EditorClassIdentifier:
|
||||
m_Group: {fileID: 11400000, guid: b593dc98ea11a484995123de77d9bf1a, type: 2}
|
||||
m_StaticContent: 0
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d204fc1bd8003c34fab73a0a7f7f2bce
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7366aa7df229d049b751ff52e8f2bd6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f4f6dc3d580ac24e8e5aed837e8c8f7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 1bb1838fe8befb0429646b938e757ff3, type: 3}
|
||||
m_Name: Chinese (Simplified) (zh-CN)
|
||||
m_EditorClassIdentifier:
|
||||
m_Identifier:
|
||||
m_Code: zh-CN
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
m_LocaleName: Chinese (Simplified) (zh-CN)
|
||||
m_CustomFormatCultureCode:
|
||||
m_UseCustomFormatter: 0
|
||||
m_SortOrder: 10000
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9193126c9acb1844fad438632c97c945
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,25 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 1bb1838fe8befb0429646b938e757ff3, type: 3}
|
||||
m_Name: English (en)
|
||||
m_EditorClassIdentifier:
|
||||
m_Identifier:
|
||||
m_Code: en
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
m_LocaleName: English (en)
|
||||
m_CustomFormatCultureCode:
|
||||
m_UseCustomFormatter: 0
|
||||
m_SortOrder: 10000
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7a48ca464fe5b546acd4cf8d1bffd1e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,205 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: a07b5cd0b1b829245bc8c4b6978793e8, type: 3}
|
||||
m_Name: Localization Settings
|
||||
m_EditorClassIdentifier:
|
||||
m_StartupSelectors:
|
||||
- rid: 7917695907823353917
|
||||
- rid: 7917695907823353919
|
||||
- rid: 7917695907823353918
|
||||
m_AvailableLocales:
|
||||
rid: 7917695907823353920
|
||||
m_AssetDatabase:
|
||||
rid: 7917695907823353921
|
||||
m_StringDatabase:
|
||||
rid: 7917695907823353922
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
m_ProjectLocaleIdentifier:
|
||||
m_Code: zh-CN
|
||||
m_PreloadBehavior: 1
|
||||
m_InitializeSynchronously: 0
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: -2
|
||||
type: {class: , ns: , asm: }
|
||||
- rid: 7917695907823353917
|
||||
type: {class: CommandLineLocaleSelector, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
m_CommandLineArgument: -language=
|
||||
- rid: 7917695907823353918
|
||||
type: {class: SystemLocaleSelector, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353919
|
||||
type: {class: SpecificLocaleSelector, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
m_LocaleId:
|
||||
m_Code: zh-CN
|
||||
- rid: 7917695907823353920
|
||||
type: {class: LocalesProvider, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353921
|
||||
type: {class: LocalizedAssetDatabase, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
m_DefaultTableReference:
|
||||
m_TableCollectionName:
|
||||
m_CustomTableProvider:
|
||||
rid: -2
|
||||
m_CustomTablePostprocessor:
|
||||
rid: -2
|
||||
m_UseFallback: 0
|
||||
- rid: 7917695907823353922
|
||||
type: {class: LocalizedStringDatabase, ns: UnityEngine.Localization.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
m_DefaultTableReference:
|
||||
m_TableCollectionName:
|
||||
m_CustomTableProvider:
|
||||
rid: -2
|
||||
m_CustomTablePostprocessor:
|
||||
rid: -2
|
||||
m_UseFallback: 0
|
||||
m_MissingTranslationState: 1
|
||||
m_NoTranslationFoundMessage: No translation found for '{key}' in {table.TableCollectionName}
|
||||
m_SmartFormat:
|
||||
rid: 7917695907823353923
|
||||
- rid: 7917695907823353923
|
||||
type: {class: SmartFormatter, ns: UnityEngine.Localization.SmartFormat, asm: Unity.Localization}
|
||||
data:
|
||||
m_Settings:
|
||||
rid: 7917695907823353924
|
||||
m_Parser:
|
||||
rid: 7917695907823353925
|
||||
m_Sources:
|
||||
- rid: 7917695907823353926
|
||||
- rid: 7917695907823353927
|
||||
- rid: 7917695907823353928
|
||||
- rid: 7917695907823353929
|
||||
- rid: 7917695907823353930
|
||||
- rid: 7917695907823353931
|
||||
- rid: 7917695907823353932
|
||||
m_Formatters:
|
||||
- rid: 7917695907823353926
|
||||
- rid: 7917695907823353933
|
||||
- rid: 7917695907823353934
|
||||
- rid: 7917695907823353935
|
||||
- rid: 7917695907823353936
|
||||
- rid: 7917695907823353937
|
||||
- rid: 7917695907823353938
|
||||
- rid: 7917695907823353939
|
||||
- rid: 7917695907823353940
|
||||
- rid: 7917695907823353924
|
||||
type: {class: SmartSettings, ns: UnityEngine.Localization.SmartFormat.Core.Settings, asm: Unity.Localization}
|
||||
data:
|
||||
m_FormatErrorAction: 0
|
||||
m_ParseErrorAction: 0
|
||||
m_CaseSensitivity: 0
|
||||
m_ConvertCharacterStringLiterals: 1
|
||||
- rid: 7917695907823353925
|
||||
type: {class: Parser, ns: UnityEngine.Localization.SmartFormat.Core.Parsing, asm: Unity.Localization}
|
||||
data:
|
||||
m_OpeningBrace: 123
|
||||
m_ClosingBrace: 125
|
||||
m_Settings:
|
||||
rid: 7917695907823353924
|
||||
m_AlphanumericSelectors: 1
|
||||
m_AllowedSelectorChars: _-
|
||||
m_Operators: '[]().,'
|
||||
m_AlternativeEscaping: 0
|
||||
m_AlternativeEscapeChar: 92
|
||||
- rid: 7917695907823353926
|
||||
type: {class: ListFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- list
|
||||
- l
|
||||
-
|
||||
m_SmartSettings:
|
||||
rid: 7917695907823353924
|
||||
- rid: 7917695907823353927
|
||||
type: {class: PersistentVariablesSource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Groups: []
|
||||
- rid: 7917695907823353928
|
||||
type: {class: DictionarySource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353929
|
||||
type: {class: ValueTupleSource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353930
|
||||
type: {class: XmlSource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353931
|
||||
type: {class: ReflectionSource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353932
|
||||
type: {class: DefaultSource, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
- rid: 7917695907823353933
|
||||
type: {class: PluralLocalizationFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- plural
|
||||
- p
|
||||
-
|
||||
m_DefaultTwoLetterISOLanguageName: en
|
||||
- rid: 7917695907823353934
|
||||
type: {class: ConditionalFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- conditional
|
||||
- cond
|
||||
-
|
||||
- rid: 7917695907823353935
|
||||
type: {class: TimeFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- timespan
|
||||
- time
|
||||
- t
|
||||
-
|
||||
m_DefaultFormatOptions: 4646
|
||||
- rid: 7917695907823353936
|
||||
type: {class: XElementFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- xelement
|
||||
- xml
|
||||
- x
|
||||
-
|
||||
- rid: 7917695907823353937
|
||||
type: {class: ChooseFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- choose
|
||||
- c
|
||||
m_SplitChar: 124
|
||||
- rid: 7917695907823353938
|
||||
type: {class: SubStringFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- substr
|
||||
m_ParameterDelimiter: 44
|
||||
m_NullDisplayString: (null)
|
||||
m_OutOfRangeBehavior: 0
|
||||
- rid: 7917695907823353939
|
||||
type: {class: IsMatchFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- ismatch
|
||||
- rid: 7917695907823353940
|
||||
type: {class: DefaultFormatter, ns: UnityEngine.Localization.SmartFormat.Extensions, asm: Unity.Localization}
|
||||
data:
|
||||
m_Names:
|
||||
- default
|
||||
- d
|
||||
-
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0fb2bc2476953fc43a74f0ab8879077c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4dad552e88835db4fbeafedd03964353
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,128 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5b11a58205ec3474ca216360e9fa74a8, type: 3}
|
||||
m_Name: UIText Shared Data
|
||||
m_EditorClassIdentifier:
|
||||
m_TableCollectionName: UIText
|
||||
m_TableCollectionNameGuidString: 994c69bf4b2403043bc9562f2d24ee56
|
||||
m_Entries:
|
||||
- m_Id: 3350325104640
|
||||
m_Key: start_newGame
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296654778368
|
||||
m_Key: start_title
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296671555584
|
||||
m_Key: start_selcetLevel
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296671555585
|
||||
m_Key: start_Load
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749888
|
||||
m_Key: start_quit
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749889
|
||||
m_Key: start_survey
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749890
|
||||
m_Key: start_follow
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749891
|
||||
m_Key: record_title
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 26730768109568
|
||||
m_Key: record_continue
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749892
|
||||
m_Key: main_setting
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749893
|
||||
m_Key: main_record
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749894
|
||||
m_Key: main_auto
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749895
|
||||
m_Key: main_fast
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749896
|
||||
m_Key: setting_title
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749897
|
||||
m_Key: setting_volume
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749898
|
||||
m_Key: setting_textSpeed
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749899
|
||||
m_Key: setting_language
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749900
|
||||
m_Key: setting_window
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749901
|
||||
m_Key: setting_resolution
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749902
|
||||
m_Key: setting_continue
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749903
|
||||
m_Key: setting_mainMenu
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749904
|
||||
m_Key: setting_quit
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749905
|
||||
m_Key: end_mainMenu
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749906
|
||||
m_Key: end_survey
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749907
|
||||
m_Key: end_bug
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
m_KeyGenerator:
|
||||
rid: 7917695907823353941
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: 7917695907823353941
|
||||
type: {class: DistributedUIDGenerator, ns: UnityEngine.Localization.Tables, asm: Unity.Localization}
|
||||
data:
|
||||
m_CustomEpoch: 1745392849440
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 994c69bf4b2403043bc9562f2d24ee56
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,23 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: 5be51871efa6c3e4eae1703925c8f5ac, type: 3}
|
||||
m_Name: UIText
|
||||
m_EditorClassIdentifier:
|
||||
m_SharedTableData: {fileID: 11400000, guid: 994c69bf4b2403043bc9562f2d24ee56, type: 2}
|
||||
m_Tables:
|
||||
- {fileID: 11400000, guid: b997afa69f2e7d04dbbeebc97247c560, type: 2}
|
||||
- {fileID: 11400000, guid: f3e7269fc46911b4dbe7ea36aa77aa90, type: 2}
|
||||
m_Extensions: []
|
||||
m_Group: String Table
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c84b58e69bcaaae4d9a973a859c4ddbf
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,129 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e9620f8c34305754d8cc9a7e49e852d9, type: 3}
|
||||
m_Name: UIText_en
|
||||
m_EditorClassIdentifier:
|
||||
m_LocaleId:
|
||||
m_Code: en
|
||||
m_SharedData: {fileID: 11400000, guid: 994c69bf4b2403043bc9562f2d24ee56, type: 2}
|
||||
m_Metadata:
|
||||
m_Items:
|
||||
- rid: 7917695930343620616
|
||||
m_TableData:
|
||||
- m_Id: 3350325104640
|
||||
m_Localized: New Game
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296654778368
|
||||
m_Localized: Love&\nRobot Repair
|
||||
m_Metadata:
|
||||
m_Items:
|
||||
- rid: 7917695930343620616
|
||||
- m_Id: 22296671555584
|
||||
m_Localized: Select Level
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296671555585
|
||||
m_Localized: Load Game
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749888
|
||||
m_Localized: Quit
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749889
|
||||
m_Localized: Survey
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749890
|
||||
m_Localized: Follow Us
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749891
|
||||
m_Localized: Treatment History
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749892
|
||||
m_Localized: SETTING
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749893
|
||||
m_Localized: HISTORY
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749894
|
||||
m_Localized: AUTO
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749895
|
||||
m_Localized: FFWD
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749896
|
||||
m_Localized: SETTING
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749897
|
||||
m_Localized: Volume
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749898
|
||||
m_Localized: Text Speed
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749899
|
||||
m_Localized: Language
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749900
|
||||
m_Localized: Window Mode
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749901
|
||||
m_Localized: Resolution
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749902
|
||||
m_Localized: Resume
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749903
|
||||
m_Localized: Main Menu
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749904
|
||||
m_Localized: Quit
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749905
|
||||
m_Localized: Main Menu
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749906
|
||||
m_Localized: Survey
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749907
|
||||
m_Localized: Bug Report
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 26730768109568
|
||||
m_Localized: Resume
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: 7917695930343620616
|
||||
type: {class: SmartFormatTag, ns: UnityEngine.Localization.Metadata, asm: Unity.Localization}
|
||||
data:
|
||||
m_Entries: 0010305847140000
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f3e7269fc46911b4dbe7ea36aa77aa90
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,129 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !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: e9620f8c34305754d8cc9a7e49e852d9, type: 3}
|
||||
m_Name: UIText_zh-CN
|
||||
m_EditorClassIdentifier:
|
||||
m_LocaleId:
|
||||
m_Code: zh-CN
|
||||
m_SharedData: {fileID: 11400000, guid: 994c69bf4b2403043bc9562f2d24ee56, type: 2}
|
||||
m_Metadata:
|
||||
m_Items:
|
||||
- rid: 7917695930343620615
|
||||
m_TableData:
|
||||
- m_Id: 3350325104640
|
||||
m_Localized: "\u5F00\u59CB\u6E38\u620F"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296654778368
|
||||
m_Localized: "\u7231&\u673A\u5668\u4EBA\\n\u7EF4\u4FEE\u6280\u672F"
|
||||
m_Metadata:
|
||||
m_Items:
|
||||
- rid: 7917695930343620615
|
||||
- m_Id: 22296671555584
|
||||
m_Localized: "\u9009\u62E9\u5173\u5361"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296671555585
|
||||
m_Localized: "\u52A0\u8F7D\u5B58\u6863"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749888
|
||||
m_Localized: "\u9000\u51FA"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749889
|
||||
m_Localized: "\u95EE\u5377"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749890
|
||||
m_Localized: "\u5173\u6CE8\u6211\u4EEC"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749891
|
||||
m_Localized: "\u8BCA\u7597\u8BB0\u5F55"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749892
|
||||
m_Localized: "\u8BBE\u7F6E"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749893
|
||||
m_Localized: "\u8BB0\u5F55"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749894
|
||||
m_Localized: "\u81EA\u52A8"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749895
|
||||
m_Localized: "\u5FEB\u8FDB"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749896
|
||||
m_Localized: "\u8BBE\u7F6E"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749897
|
||||
m_Localized: "\u97F3\u91CF"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749898
|
||||
m_Localized: "\u6587\u5B57\u901F\u5EA6"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749899
|
||||
m_Localized: "\u8BED\u8A00"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749900
|
||||
m_Localized: "\u7A97\u53E3\u6A21\u5F0F"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749901
|
||||
m_Localized: "\u5206\u8FA8\u7387"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749902
|
||||
m_Localized: "\u7EE7\u7EED\u6E38\u620F"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749903
|
||||
m_Localized: "\u8FD4\u56DE\u4E3B\u83DC\u5355"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749904
|
||||
m_Localized: "\u9000\u51FA\u6E38\u620F"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749905
|
||||
m_Localized: "\u8FD4\u56DE\u4E3B\u83DC\u5355"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749906
|
||||
m_Localized: "\u586B\u5199\u95EE\u5377"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 22296675749907
|
||||
m_Localized: "Bug\u53CD\u9988"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
- m_Id: 26730768109568
|
||||
m_Localized: "\u8FD4\u56DE"
|
||||
m_Metadata:
|
||||
m_Items: []
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: 7917695930343620615
|
||||
type: {class: SmartFormatTag, ns: UnityEngine.Localization.Metadata, asm: Unity.Localization}
|
||||
data:
|
||||
m_Entries: 0010305847140000
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b997afa69f2e7d04dbbeebc97247c560
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -513,19 +513,15 @@ MonoBehaviour:
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
_filter:
|
||||
- 0.0048309183
|
||||
- 0.016401261
|
||||
- 0.04532712
|
||||
- 0.08293076
|
||||
- 0.12053438
|
||||
- 0.14946026
|
||||
- 0.1610306
|
||||
- 0.14946026
|
||||
- 0.12053438
|
||||
- 0.08293076
|
||||
- 0.04532712
|
||||
- 0.016401261
|
||||
- 0.0048309183
|
||||
- 0.007228916
|
||||
- 0.043749984
|
||||
- 0.12409639
|
||||
- 0.20444278
|
||||
- 0.24096388
|
||||
- 0.20444278
|
||||
- 0.12409639
|
||||
- 0.043749984
|
||||
- 0.007228916
|
||||
--- !u!114 &-6086986437317696584
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 3
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 479f5acf6e7f00c4a869819b47281fdd
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 479f5acf6e7f00c4a869819b47281fdd
|
||||
guid: e45f5fd66e7512444a9a27161cf51b7f
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
||||
@@ -162,6 +162,7 @@ GameObject:
|
||||
- component: {fileID: 7616446508434232365}
|
||||
- component: {fileID: 6338673825785440556}
|
||||
- component: {fileID: 3796203325540427147}
|
||||
- component: {fileID: 6550843177228825060}
|
||||
m_Layer: 5
|
||||
m_Name: Label
|
||||
m_TagString: Untagged
|
||||
@@ -216,7 +217,7 @@ MonoBehaviour:
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\u4E3B\u97F3\u91CF"
|
||||
m_text: "\u97F3\u91CF"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: f242fb3dde1933640859f1c54591c9c8, type: 2}
|
||||
m_sharedMaterial: {fileID: -6659093157667844055, guid: f242fb3dde1933640859f1c54591c9c8, type: 2}
|
||||
@@ -299,6 +300,46 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 2
|
||||
m_VerticalFit: 0
|
||||
--- !u!114 &6550843177228825060
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2721427419101969262}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 56eb0353ae6e5124bb35b17aff880f16, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_StringReference:
|
||||
m_TableReference:
|
||||
m_TableCollectionName: GUID:994c69bf4b2403043bc9562f2d24ee56
|
||||
m_TableEntryReference:
|
||||
m_KeyId: 0
|
||||
m_Key:
|
||||
m_FallbackState: 0
|
||||
m_WaitForCompletion: 0
|
||||
m_LocalVariables: []
|
||||
m_FormatArguments: []
|
||||
m_UpdateString:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 6338673825785440556}
|
||||
m_TargetAssemblyTypeName: TMPro.TMP_Text, Unity.TextMeshPro
|
||||
m_MethodName: set_text
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName:
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 1
|
||||
references:
|
||||
version: 2
|
||||
RefIds: []
|
||||
--- !u!1 &2949357837247552342
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -349,8 +390,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 6cb985d5e95047f88ddec878de7972a2, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
prop: MainVolume
|
||||
label: "\u4E3B\u97F3\u91CF"
|
||||
prop: Volume
|
||||
label: setting_volume
|
||||
OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
|
||||
+1578
-286
File diff suppressed because it is too large
Load Diff
@@ -123,7 +123,7 @@ namespace AibisDream.Kit
|
||||
|
||||
private void InitAmb()
|
||||
{
|
||||
_ambInstance = RuntimeManager.CreateInstance("event:/Amb/amb");
|
||||
_ambInstance = RuntimeManager.CreateInstance(ambEvent);
|
||||
_ambInstance.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Localization.Settings;
|
||||
|
||||
namespace AibisDream.Framework
|
||||
{
|
||||
public static class LocalizationKit
|
||||
{
|
||||
public static void SwitchLanguage(string localeCode)
|
||||
{
|
||||
var selectedLocale = LocalizationSettings.AvailableLocales.Locales.Find(locale => locale.Identifier.Code == localeCode);
|
||||
|
||||
if (selectedLocale)
|
||||
{
|
||||
LocalizationSettings.SelectedLocale = selectedLocale;
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"Locale with code {localeCode} not found.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bd25d4c834624b57984f2157197507e8
|
||||
timeCreated: 1745481747
|
||||
@@ -1,6 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using AibisDream.Framework;
|
||||
using AibisDream.Kit;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Localization.Settings;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
@@ -47,6 +49,7 @@ namespace AibisDream
|
||||
break;
|
||||
case "Language":
|
||||
// TODO 修改语言
|
||||
LocalizationKit.SwitchLanguage(value);
|
||||
break;
|
||||
default:
|
||||
Debug.Log($"{propName}未正确处理");
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using System;
|
||||
using TMPro;
|
||||
using AibisDream.Utility;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.Localization.Components;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace AibisDream
|
||||
|
||||
#region 索引部分
|
||||
|
||||
private TMP_Text _labelRef;
|
||||
private LocalizeStringEvent _labelRef;
|
||||
public UnityEvent<string, string> OnValueChanged;
|
||||
|
||||
#endregion
|
||||
@@ -36,8 +37,9 @@ namespace AibisDream
|
||||
private void InitItem()
|
||||
{
|
||||
// label设置
|
||||
_labelRef = transform.Find("Label").GetComponent<TMP_Text>();
|
||||
_labelRef.text = label;
|
||||
_labelRef = transform.Find("Label").GetComponent<LocalizeStringEvent>();
|
||||
_labelRef.SetTable(ConstRef.UITextTable);
|
||||
_labelRef.SetEntry(label);
|
||||
// field设置
|
||||
InitField();
|
||||
}
|
||||
@@ -51,6 +53,13 @@ namespace AibisDream
|
||||
Input,
|
||||
Slider,
|
||||
Select,
|
||||
Radio
|
||||
Dropdown
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct UIFormOption
|
||||
{
|
||||
public string prop;
|
||||
public string label;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
using TMPro;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class DropdownItem : AbsFormItem
|
||||
{
|
||||
public override FieldType FieldType => FieldType.Dropdown;
|
||||
|
||||
private TMP_Dropdown _dropdown;
|
||||
|
||||
protected override void InitField()
|
||||
{
|
||||
// 获取索引
|
||||
_dropdown = GetComponentInChildren<TMP_Dropdown>(true);
|
||||
// 注册事件
|
||||
_dropdown.onValueChanged.AddListener(OnSelectChanged);
|
||||
}
|
||||
|
||||
public override void SetValue(string value)
|
||||
{
|
||||
var target = _dropdown.options.FindIndex(item => item.text == value);
|
||||
_dropdown.value = target;
|
||||
}
|
||||
|
||||
private void OnSelectChanged(int value)
|
||||
{
|
||||
// 序号转字符串
|
||||
var strValue = _dropdown.options[value].text;
|
||||
OnValueChanged?.Invoke(prop, strValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39f0dc8bcf2641458cf3f8726add30f9
|
||||
timeCreated: 1744702543
|
||||
@@ -1,7 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace AibisDream
|
||||
namespace AibisDream
|
||||
{
|
||||
/// <summary>
|
||||
/// 表单接口。
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using AibisDream.Utility;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
public class LanguageItem : AbsFormItem
|
||||
{
|
||||
public override FieldType FieldType => FieldType.Select;
|
||||
|
||||
#region 索引
|
||||
|
||||
private TMP_Text _showText;
|
||||
private Button _leftBtn;
|
||||
private Button _rightBtn;
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数据
|
||||
|
||||
[Header("可选项")]
|
||||
public UIFormOption[] options;
|
||||
private int _curIdx;
|
||||
|
||||
#endregion
|
||||
|
||||
protected override void InitField()
|
||||
{
|
||||
var field = transform.Find("Field");
|
||||
_showText = field.Find("ShowText").GetComponent<TMP_Text>();
|
||||
_leftBtn = field.Find("Left Btn").GetComponent<Button>();
|
||||
_rightBtn = field.Find("Right Btn").GetComponent<Button>();
|
||||
|
||||
_leftBtn.onClick.AddListener(LeftRoll);
|
||||
_rightBtn.onClick.AddListener(RightRoll);
|
||||
}
|
||||
|
||||
public override void SetValue(string value)
|
||||
{
|
||||
var idx = Array.FindIndex(options, item => item.prop == value);
|
||||
if (idx < 0)
|
||||
{
|
||||
Debug.LogError($"{prop} setting value error");
|
||||
}
|
||||
|
||||
_curIdx = idx;
|
||||
_showText.text = options[idx].label;
|
||||
}
|
||||
|
||||
private void LeftRoll()
|
||||
{
|
||||
_curIdx = CommonUtil.LoopStep(_curIdx, 0, options.Length - 1);
|
||||
_showText.text = options[_curIdx].label;
|
||||
|
||||
OnValueChanged?.Invoke(prop, options[_curIdx].prop);
|
||||
}
|
||||
|
||||
private void RightRoll()
|
||||
{
|
||||
_curIdx = CommonUtil.LoopStep(_curIdx, 0, options.Length - 1, -1);
|
||||
_showText.text = options[_curIdx].label;
|
||||
|
||||
OnValueChanged?.Invoke(prop, options[_curIdx].prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae7f07f0b7da4a119b731f409ebbfeda
|
||||
timeCreated: 1745478466
|
||||
@@ -1,4 +1,8 @@
|
||||
using TMPro;
|
||||
using System;
|
||||
using AibisDream.Utility;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Localization.Components;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace AibisDream
|
||||
{
|
||||
@@ -6,27 +10,61 @@ namespace AibisDream
|
||||
{
|
||||
public override FieldType FieldType => FieldType.Select;
|
||||
|
||||
private TMP_Dropdown _dropdown;
|
||||
#region 索引
|
||||
|
||||
private LocalizeStringEvent _showText;
|
||||
private Button _leftBtn;
|
||||
private Button _rightBtn;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 数据
|
||||
|
||||
[Header("可选项")]
|
||||
public UIFormOption[] options;
|
||||
private int _curIdx;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
protected override void InitField()
|
||||
{
|
||||
// 获取索引
|
||||
_dropdown = GetComponentInChildren<TMP_Dropdown>(true);
|
||||
// 注册事件
|
||||
_dropdown.onValueChanged.AddListener(OnSelectChanged);
|
||||
var field = transform.Find("Field");
|
||||
_showText = field.Find("ShowText").GetComponent<LocalizeStringEvent>();
|
||||
_leftBtn = field.Find("Left Btn").GetComponent<Button>();
|
||||
_rightBtn = field.Find("Right Btn").GetComponent<Button>();
|
||||
|
||||
_leftBtn.onClick.AddListener(LeftRoll);
|
||||
_rightBtn.onClick.AddListener(RightRoll);
|
||||
}
|
||||
|
||||
public override void SetValue(string value)
|
||||
{
|
||||
var target = _dropdown.options.FindIndex(item => item.text == value);
|
||||
_dropdown.value = target;
|
||||
var idx = Array.FindIndex(options, item => item.prop == value);
|
||||
if (idx < 0)
|
||||
{
|
||||
Debug.LogError($"{prop} setting value error");
|
||||
}
|
||||
|
||||
_curIdx = idx;
|
||||
_showText.SetEntry(options[idx].label);
|
||||
}
|
||||
|
||||
private void OnSelectChanged(int value)
|
||||
private void LeftRoll()
|
||||
{
|
||||
// 序号转字符串
|
||||
var strValue = _dropdown.options[value].text;
|
||||
OnValueChanged?.Invoke(prop, strValue);
|
||||
_curIdx = CommonUtil.LoopStep(_curIdx, 0, options.Length - 1);
|
||||
_showText.SetEntry(options[_curIdx].label);
|
||||
|
||||
OnValueChanged?.Invoke(prop, options[_curIdx].prop);
|
||||
}
|
||||
|
||||
private void RightRoll()
|
||||
{
|
||||
_curIdx = CommonUtil.LoopStep(_curIdx, 0, options.Length - 1, -1);
|
||||
_showText.SetEntry(options[_curIdx].label);
|
||||
|
||||
OnValueChanged?.Invoke(prop, options[_curIdx].prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39f0dc8bcf2641458cf3f8726add30f9
|
||||
timeCreated: 1744702543
|
||||
guid: ef1de16c90b849ef86a4360768fc55f6
|
||||
timeCreated: 1745473121
|
||||
@@ -47,5 +47,10 @@ namespace AibisDream
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateFormData()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,40 @@ namespace AibisDream.Utility
|
||||
return target;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 步进循环
|
||||
/// </summary>
|
||||
/// <param name="target">操作数</param>
|
||||
/// <param name="min">最小值</param>
|
||||
/// <param name="max">最大值</param>
|
||||
/// <param name="step">步进</param>
|
||||
/// <returns></returns>
|
||||
/// <exception cref="ArgumentException">范围错误</exception>
|
||||
public static int LoopStep(int target, int min, int max, int step = 1)
|
||||
{
|
||||
if (min > max)
|
||||
{
|
||||
throw new ArgumentException("min should be less than or equal to max.");
|
||||
}
|
||||
|
||||
var range = max - min + 1;
|
||||
|
||||
// 计算新的目标值
|
||||
var newTarget = target + step;
|
||||
|
||||
// 计算结果在范围内的值
|
||||
if (newTarget > max)
|
||||
{
|
||||
newTarget = min + (newTarget - max - 1) % range;
|
||||
}
|
||||
else if (newTarget < min)
|
||||
{
|
||||
newTarget = max - (min - newTarget - 1) % range;
|
||||
}
|
||||
|
||||
return newTarget;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取鼠标在世界中的位置
|
||||
/// </summary>
|
||||
|
||||
@@ -13,5 +13,11 @@ namespace AibisDream.Utility
|
||||
public const string SurveyURL = "https://wj.qq.com/s2/15348910/3c8c/";
|
||||
|
||||
public static readonly string TestSaveFilePath = Application.streamingAssetsPath + "/TestSaveFiles";
|
||||
|
||||
#region 本地化索引
|
||||
|
||||
public const string UITextTable = "UIText";
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
{
|
||||
"Volume": 0.5
|
||||
"Volume": 0.5,
|
||||
"Language": "en"
|
||||
}
|
||||
@@ -10,3 +10,4 @@ EditorBuildSettings:
|
||||
guid: 314fe706818e1334abececa8eca15a16
|
||||
m_configObjects:
|
||||
com.unity.addressableassets: {fileID: 11400000, guid: 9f2d4043ffd19614f9cf906f9dd868b8, type: 2}
|
||||
com.unity.localization.settings: {fileID: 11400000, guid: 0fb2bc2476953fc43a74f0ab8879077c, type: 2}
|
||||
|
||||
Reference in New Issue
Block a user