From 494852cadb1988bf26e4728c3a37f46f14bd7bb4 Mon Sep 17 00:00:00 2001 From: chenxi Date: Thu, 20 Apr 2023 18:08:11 +0800 Subject: [PATCH] toast --- Assets/arts/atlas/ui/common.spriteatlas | 2 + .../textures/ui/common/common_toast_1.png | Bin 0 -> 566 bytes .../ui/common/common_toast_1.png.meta | 132 ++++++++++++++++++ Assets/prefabs/ui/common/toast.prefab | 24 ++-- 4 files changed, 146 insertions(+), 12 deletions(-) create mode 100644 Assets/arts/textures/ui/common/common_toast_1.png create mode 100644 Assets/arts/textures/ui/common/common_toast_1.png.meta diff --git a/Assets/arts/atlas/ui/common.spriteatlas b/Assets/arts/atlas/ui/common.spriteatlas index 4fa795969..d16a5492e 100644 --- a/Assets/arts/atlas/ui/common.spriteatlas +++ b/Assets/arts/atlas/ui/common.spriteatlas @@ -80,6 +80,7 @@ SpriteAtlas: - {fileID: 21300000, guid: b8056a6868f41394c95a779ca9ccc217, type: 3} - {fileID: 21300000, guid: 1f0e6d68246796849961cb0680d4f226, type: 3} - {fileID: 21300000, guid: 7e9c0788fba4a824f9213b892c30a542, type: 3} + - {fileID: 21300000, guid: 56c233d89e320ac4891f34a6706ffc0c, type: 3} - {fileID: 21300000, guid: 7cc4f1e808d2d6c45a721ee91ea63866, type: 3} - {fileID: 21300000, guid: dd9f53f83308a3a4799e84f5ccc9fd79, type: 3} - {fileID: 21300000, guid: 1bf9c73960324d3439e0db7c0390d805, type: 3} @@ -124,6 +125,7 @@ SpriteAtlas: - common_title_5 - common_title_4 - common_dec_2 + - common_toast_1 - common_board_5 - common_board_4 - common_bg_2 diff --git a/Assets/arts/textures/ui/common/common_toast_1.png b/Assets/arts/textures/ui/common/common_toast_1.png new file mode 100644 index 0000000000000000000000000000000000000000..af69ee381e4a15bef3ff148c61f20cff43604f83 GIT binary patch literal 566 zcmeAS@N?(olHy`uVBq!ia0y~yU^)wA8*#7!$>k!?Qh=0XiEBhjaDG}zd16s2gJVj5 zQmTSyZen_BP-vreFk0)m)_f#Z5TOXN!W)1uMwed3|&z{jrTf8&=X=>zM$<;GM z-$eSlnMA&J{Py#Ejp6s-Re8^zJ$tkHhI#(G*|Xoz^gX7RuO_+K^8cMDAu|hq-94Lj ze*N#&pHqLoJ9GZ@|C~G{<&$r}mAns)oH$4Gx3v5o``tx63=Aq$(ij*5W-&52WCFu) zsU!mfRssC7ApN-Y!cE6&GF%pBHzij6kl)85!SHwX@-+Q}8y$cNfx*+&&t;ucLK6Uf CZ`cR` literal 0 HcmV?d00001 diff --git a/Assets/arts/textures/ui/common/common_toast_1.png.meta b/Assets/arts/textures/ui/common/common_toast_1.png.meta new file mode 100644 index 000000000..9008bb4e5 --- /dev/null +++ b/Assets/arts/textures/ui/common/common_toast_1.png.meta @@ -0,0 +1,132 @@ +fileFormatVersion: 2 +guid: 56c233d89e320ac4891f34a6706ffc0c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Android + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: 47 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 1 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: iPhone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: 50 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 1 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: 12 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 1 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/prefabs/ui/common/toast.prefab b/Assets/prefabs/ui/common/toast.prefab index f92f61184..5577b5270 100644 --- a/Assets/prefabs/ui/common/toast.prefab +++ b/Assets/prefabs/ui/common/toast.prefab @@ -143,13 +143,13 @@ MonoBehaviour: m_text: m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 9d1aadd9ebaf54ce2b217ab8427fa0db, type: 2} - m_sharedMaterial: {fileID: 2100000, guid: 09210edd46ea1463596717e00ea9e8be, type: 2} + m_sharedMaterial: {fileID: 2100000, guid: d9526b8cb4bc030488db413ef429c6f9, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] m_fontColor32: serializedVersion: 2 - rgba: 4288474879 + rgba: 4294967295 m_fontColor: {r: 1, g: 1, b: 1, a: 1} m_enableVertexGradient: 0 m_colorMode: 3 @@ -167,8 +167,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 30 - m_fontSizeBase: 30 + m_fontSize: 26 + m_fontSizeBase: 26 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -251,7 +251,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: 675, y: 54} + m_SizeDelta: {x: 717, y: 50} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7432493807546788155 CanvasRenderer: @@ -314,7 +314,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: a70289eca986ce142b027934f6cdd63c, type: 3} + m_Sprite: {fileID: 21300000, guid: 56c233d89e320ac4891f34a6706ffc0c, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -421,7 +421,7 @@ MonoBehaviour: m_text: m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 9d1aadd9ebaf54ce2b217ab8427fa0db, type: 2} - m_sharedMaterial: {fileID: 2100000, guid: 09210edd46ea1463596717e00ea9e8be, type: 2} + m_sharedMaterial: {fileID: 2100000, guid: d9526b8cb4bc030488db413ef429c6f9, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -445,8 +445,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 30 - m_fontSizeBase: 30 + m_fontSize: 26 + m_fontSizeBase: 26 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -555,7 +555,7 @@ MonoBehaviour: m_text: m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 9d1aadd9ebaf54ce2b217ab8427fa0db, type: 2} - m_sharedMaterial: {fileID: 2100000, guid: 09210edd46ea1463596717e00ea9e8be, type: 2} + m_sharedMaterial: {fileID: 2100000, guid: d9526b8cb4bc030488db413ef429c6f9, type: 2} m_fontSharedMaterials: [] m_fontMaterial: {fileID: 0} m_fontMaterials: [] @@ -579,8 +579,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 30 - m_fontSizeBase: 30 + m_fontSize: 26 + m_fontSizeBase: 26 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18