From bbdd46c6df26dd56b39ce7b64dd08dc894a880b2 Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Wed, 18 Dec 2024 21:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E6=80=A5=E6=BC=94=E7=BB=83=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=AF=BB=E5=8F=96=E4=BB=A5=E5=8F=8A=E4=B8=89=E7=BA=A7?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/itemPrefabs/btnDutyChoose.prefab | 3 +- xiaofang/Assets/Resources/UIImage.meta | 8 ++ .../Assets/Resources/UIImage/Vocational.meta | 8 ++ .../UIImage/Vocational/icn_commander.png | Bin 0 -> 2568 bytes .../UIImage/Vocational/icn_commander.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_dedicalrescue.png | Bin 0 -> 1705 bytes .../Vocational/icn_dedicalrescue.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_doormhead.png | Bin 0 -> 1485 bytes .../UIImage/Vocational/icn_doormhead.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_guidance01.png | Bin 0 -> 1253 bytes .../Vocational/icn_guidance01.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_guidance02.png | Bin 0 -> 1479 bytes .../Vocational/icn_guidance02.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_redcue.png | Bin 0 -> 2248 bytes .../UIImage/Vocational/icn_redcue.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_search.png | Bin 0 -> 1564 bytes .../UIImage/Vocational/icn_search.png.meta | 123 ++++++++++++++++++ .../UIImage/Vocational/icn_support.png | Bin 0 -> 2691 bytes .../UIImage/Vocational/icn_support.png.meta | 123 ++++++++++++++++++ xiaofang/Assets/Script/Scheduled_03/Panel.cs | 1 + .../Script/UI/PanelUI/EvacuationPanel.cs | 12 +- .../Assets/Script/UI/PanelUI/ManagerPanel.cs | 10 +- .../Script/UI/PanelUI/PersonnelPanel.cs | 3 +- .../Assets/Script/loginScripts/LoginPanel.cs | 3 +- 24 files changed, 1022 insertions(+), 10 deletions(-) create mode 100644 xiaofang/Assets/Resources/UIImage.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_commander.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_commander.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_dedicalrescue.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_dedicalrescue.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_doormhead.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_doormhead.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance01.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance01.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance02.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance02.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_redcue.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_redcue.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_search.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_search.png.meta create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_support.png create mode 100644 xiaofang/Assets/Resources/UIImage/Vocational/icn_support.png.meta diff --git a/xiaofang/Assets/Prefabs/itemPrefabs/btnDutyChoose.prefab b/xiaofang/Assets/Prefabs/itemPrefabs/btnDutyChoose.prefab index 67f8ee0f..3bf6a3d3 100644 --- a/xiaofang/Assets/Prefabs/itemPrefabs/btnDutyChoose.prefab +++ b/xiaofang/Assets/Prefabs/itemPrefabs/btnDutyChoose.prefab @@ -59,7 +59,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.29411766} + m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -268,6 +268,7 @@ MonoBehaviour: dutyNameText: {fileID: 3344224971532102837} button: {fileID: 3344224971532102794} leader: 0 + dutyId: 0 defaultColor: {r: 1, g: 1, b: 1, a: 1} addedColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} selectedColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1} diff --git a/xiaofang/Assets/Resources/UIImage.meta b/xiaofang/Assets/Resources/UIImage.meta new file mode 100644 index 00000000..99f26af0 --- /dev/null +++ b/xiaofang/Assets/Resources/UIImage.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 547bef451f1f4e040977e3644ba56ec6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/Resources/UIImage/Vocational.meta b/xiaofang/Assets/Resources/UIImage/Vocational.meta new file mode 100644 index 00000000..76dc53b8 --- /dev/null +++ b/xiaofang/Assets/Resources/UIImage/Vocational.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 71b5184d50e0b574d89a0ede4558000f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_commander.png b/xiaofang/Assets/Resources/UIImage/Vocational/icn_commander.png new file mode 100644 index 0000000000000000000000000000000000000000..85719a15f05210169841b40aee9a8b7a8a8c1221 GIT binary patch literal 2568 zcmV+j3itJiP)Px;!bwCyR9Hu?mkUr-*BQtE_p!^eZ+2M_d8v!0L8B%Slb})4+8S*;nO3Efv~ijk z1dXIYB{r!|w@o^vP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NA$QyVzC&+=%h)LVg?5X%TiKOrllmS(bm?1rsn25(b3VS{{H@+v35c% z7ISK~x+N_w?YhloWBv02bAnQ-R69C5J54+w8*3q=zysh|7Fw+qb5c{#>U5&9u?ZrP z7!>7uK90UerBZ$2bUI5PErk&Xg+j5uumAoJdHDt`%G85+9ZJ0HF#c({0L$0ah>4Cy zQj!w4ySj1j-aTwAD8hn;i$P1609AtIGef{H{`CiHEMGzy&(a3a2R;dkG;E!;c~SK>LQ8)&-22Vo~T4w#W#qFi4~kA^8t>`0^oCs zVIs&(^sf9it}i9`?ug@kxT79}2yhKg)4 z$B}2j!aoA02rNGeER)Hx-y8P31cYXcn&& z^o-X~US1BRQi(l#_MoB3J_6Bs(}kNIE}% z$kM^T6ScLqFmBw06>*bMJJ5$iM~)ynI~%2?rD$xvIvNfU;1PPvlMpf~1FwgLTpkqx zM8Hn;_4T2mq5}2x^~lJ`!1nFi$@u|`#ez!>Ey&5;43f-4LxUI`xF51@%b$xvR8%yi z(lARja3^web73}{F)%P7jM&&%Bqb$b%a$z|_IlB9#R-Oq0n2*vqwPEVR`*ND#7vkv z4F?W>3y$R@+liv00_gR6tX{nu;Lr%`yC@3fpIwC1kQi9|tC+{>(qq4FRt*%=mIU%&*M}5Ut zA*=vIk+v;#%?L_V!Z29B=5_GwFcK3-u91QP0^^sCjtH@p_Kq76^9y3UP69U&Y2JY^|(5is_0M z!a4^coT$GllZY&bxHfS_snUf!17LQj00000NkvXXu0mjfciFLH literal 0 HcmV?d00001 diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_doormhead.png.meta b/xiaofang/Assets/Resources/UIImage/Vocational/icn_doormhead.png.meta new file mode 100644 index 00000000..19a612da --- /dev/null +++ b/xiaofang/Assets/Resources/UIImage/Vocational/icn_doormhead.png.meta @@ -0,0 +1,123 @@ +fileFormatVersion: 2 +guid: ae080296258ddf44d99ed1e8f1e7fc99 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + 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 + ignoreMasterTextureLimit: 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: 0 + 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 + cookieLightType: 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: Standalone + 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: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance01.png b/xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance01.png new file mode 100644 index 0000000000000000000000000000000000000000..229859d8e1374d2c828943e35286bd731f8a04cf GIT binary patch literal 1253 zcmVPx(pGibPR7gv;mVIbdbr{D#zx#6Tc3-yL$u4THQYZ{Zno0^{VumwIvKnUUB1?@; zG+zjd8Qf?=iG(5!iXx%@i2buLP)c-QV*Vj4#FvIzZoaH-x=rW3-h0oz=ZW9lJ$9z9 zZR&n-IQP6gpYwfQzUL}NaEXZe6tkgGiW*Na*9Y?hZe|61 zoU>BYY+0+$JalN?ZxU`kPo));6$KtO!9a?=qLd`*z1B_jmr?b@LxD!?#YhGzOeT0I z*(=orF7;@@18wyfu#C2eXX;TW8nZVMmMUS0ipZOimxHUt2g6BLn+3GEW9ogWe3j! zb-+w6r4F^(l%~K+K^}0uhfM4SAMDu5PNkI94;nos#<>XNLmuWQ(ya6flS39R9VA;T zJAJuha-i%BIO-`nt*O3Dxoq1OEDG; zXumo-fjXr*sE*Oy1zlZyxA;H*SBY3jB4LZES8rP7shG@4#TZv&!81WO5$&frwRZjN zy-smH5W4|A-5e@OP#%ryyYF8A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rKcjEi-7m0(D#<)d~cZ$UHE|#i_d2F~rd1j%A z@G>ey0flpl{Q{Cfh+G!DoN^Ny&Ok{__Skz>jp8uMIHCRSmaw$k%alm1C<&qaP&YG-B6=z6)b$h$g98A(K+B4l+&mY z&HD8AvT%zLpV-d4XDnE29oUW!3)K2m9fF1^l;m*YdtWr|*Gq_chYaoefNZUz_>sv+ zMeOr@avt(MzFt6b{wATK8SLy-s4u^2g?^%bUfwVq?)2^9x307KKl2Owdco!y&?%Tc zG5{MI8leh<)UTI#>ZZkxbK!RT4(XKnv$@$k6zSa7fW+1?EZv8ykj0Y($0@a0djgdyo)9}d_YZV^nMYPcLZ!D-WfY1~!H+FalvS(saI}A$+|)96nqIl? zo7nN9zmVRagfdBm4kO#2D(Xpz&x7&yXfwQXQNLj@Xv+*1K&_~APR8lOi}2QkVDJzO zG=T(x|GSa#rBluPvxDt1Bu{gLgzb!n#`B2Wzb1?^F`q*2}x9 z-r%9V@#u_GNPT7rZG0OT;>6F)By;^MX8ys!R1Wy&Fwn!b;*#@gymM2dz-C68T?+k^ zrI!810t$EBH>lirM_W_TQ7!XQjH#uwbZ6IQUU0bYnK=-A$esq9$wOjqTbtcILgV8R h?ye?s??k0s^B-H~=&jGIAPN8g002ovPDHLkV1kV?&+GsI literal 0 HcmV?d00001 diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance02.png.meta b/xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance02.png.meta new file mode 100644 index 00000000..c61ad018 --- /dev/null +++ b/xiaofang/Assets/Resources/UIImage/Vocational/icn_guidance02.png.meta @@ -0,0 +1,123 @@ +fileFormatVersion: 2 +guid: f31b78939b9efc743977d924ef17f138 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + 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 + ignoreMasterTextureLimit: 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: 0 + 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 + cookieLightType: 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: Standalone + 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: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_redcue.png b/xiaofang/Assets/Resources/UIImage/Vocational/icn_redcue.png new file mode 100644 index 0000000000000000000000000000000000000000..1507a70cfb8e9418f945d35d0941dc9c69fccf26 GIT binary patch literal 2248 zcmV;(2sihMP)X1^@s6N;AwK00001b5ch_0Itp) z=>Px-f=NU{R9HvVmV0ni)g8xwzjN>1d$X@RNU|XYc}YSOGU&w60C8${iXbhIF;he- zB52S`D^sUdbhPW}l(9Ywl(y;AN;*R;P)a+&2RO>u*xK-@wj?3RD&>*al5Db@-Mx43 zz32SeyM&aQM3DB6dj7e0_WbTSpZ)&6zu!3spR<9VGhX<=0q%J1y1c^tsgrDyWdGz! z6Z0SbU@S5J1Nca7t>SNKzXjuoauS>Y0}vKR)vej7q#;X+BDiHSMRRe%IdY3LNs$EE z0u@ye$(#vIrSq%a!C+8)mdp_aS^RJDQZ7DP=yF|kDm8e*oAR<<1+xz%KDo{aFahB| zrj!ND_`v%Vi%-4~=ma>sGXS9B=LH&P&iQTR>5^MqPi(q*%EJ%$;`yn|8fVVz%9s$Y zU&!>o-0!03e0{>22d!k+v8?MGj*SAQU{G$~yY~(_+kHD)wwna20xs0c+UXNP1e9PI z>Jctu+&!o2`;+(YJ9;D-bc;iW{H&-L)s7E^vTBv&+P9DElS(krbQoCmbtulBrGgum zdWydC=zgR~$=Uv|e@p3JysKdK>hLJw&E=KTzSe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EX{ z48zTkluu(VD3GMF4}wZ{YW`o(zxCyB{qG*}oSsl0K5RYzkDDKA@{a$R%qUbjMBqSJ zrFU{QvM>j`P{8!^$TS32I=NX(TsjExfB8e)@~bGLjF@dh$s+N`nI5itqVAe6{!!zG zt&?vFkpB79Egx#h4emQos-K*f?r#~wvC(>NJ=DZh)yK`}$ki2bUGMd#L>OeU7I7Fd z-1Qo_wY)@ezJl2<;-&yW)-D(>j;Ft+=82+jZ~6FXHPis>5|;l7oxR$Z%k_a(azee!(Aw6_It;M1SB4|($D z_8;u~`|;6Hm9E}(b2Ali9Fi#FWN&|T$9tPTUv#-=!|i)#IQ|`Z;Ov|4y6dZd{=kFZ z_~zKyr0Jv{aB?_l2$ZPhfiwhB7}3?)RlWVoJKC@uJhQTD)vCVj+qa)NfWDOy{|%O^O<-FEr$hh%002ovPDHLkV1jvqKvMt! literal 0 HcmV?d00001 diff --git a/xiaofang/Assets/Resources/UIImage/Vocational/icn_support.png.meta b/xiaofang/Assets/Resources/UIImage/Vocational/icn_support.png.meta new file mode 100644 index 00000000..639e64cd --- /dev/null +++ b/xiaofang/Assets/Resources/UIImage/Vocational/icn_support.png.meta @@ -0,0 +1,123 @@ +fileFormatVersion: 2 +guid: 536f0c9cec77bb043becc4ccaf7d2c00 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + 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 + ignoreMasterTextureLimit: 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: 0 + 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 + cookieLightType: 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: Standalone + 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: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index 6c2e8c28..90740cae 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -186,6 +186,7 @@ public class Panel : MonoBehaviour dutyItem.dutyNameText.text = showText; dutyItem.leader = npcData.GroupLeader; dutyItem.dutyId = npcData.ID; + //dutyItem.dutyImage.sprite = Resources.Load("UIImage/Vocational/icn_commander"); peopleList.Add(item); } } diff --git a/xiaofang/Assets/Script/UI/PanelUI/EvacuationPanel.cs b/xiaofang/Assets/Script/UI/PanelUI/EvacuationPanel.cs index 8f21e2fb..cb6ae6cc 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/EvacuationPanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/EvacuationPanel.cs @@ -242,20 +242,27 @@ public class EvacuationPanel : MonoBehaviour { // 标记当前选择的区域 OnSceneItemClicked(sceneitem, Color.yellow, selectedScene); + // 如果被点击的区域已经有人员 if (personnelItem.NpcNum > 0) { - redistributeBtn.interactable=true; + redistributeBtn.interactable = true; ChangeImage(redistributeBtn.interactable); redistributeBtn.transform.GetComponent().sprite = showImage[1]; + + // 清除所有之前的监听器,确保只有最新的事件被执行 + redistributeBtn.onClick.RemoveAllListeners(); + + // 添加最新的监听器 redistributeBtn.onClick.AddListener(() => { // 清除选定区域的人员数据 RedistributeLogic(personnelItem.sceneId, personnelItem.NpcNum); - redistributeBtn.interactable = false ; + redistributeBtn.interactable = false; ChangeImage(redistributeBtn.interactable); }); } + // 清空现有场景下的所有人员UI foreach (Transform child in sceneCount) { @@ -414,7 +421,6 @@ public class EvacuationPanel : MonoBehaviour } } - //设置文字颜色 public void OnSceneItemClicked(GameObject clickedItem, Color color, GameObject select) { diff --git a/xiaofang/Assets/Script/UI/PanelUI/ManagerPanel.cs b/xiaofang/Assets/Script/UI/PanelUI/ManagerPanel.cs index 6041c1f1..68c7f086 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/ManagerPanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/ManagerPanel.cs @@ -114,16 +114,16 @@ public class ManagerPanel : MonoBehaviour public void OnClickPeopleWindows() { peopleWindowsPrefab.gameObject.SetActive(true); - foreach (Transform child in personnelPanelCount) { Destroy(child.gameObject); } + CreateFirstLable(); foreach (var sceneEntry in panelInfo.sceneDataDictionary) { GameObject managerPanelInstance = Instantiate(personnelPanel, personnelPanelCount); PersonnelPanel scenetext = managerPanelInstance.GetComponent(); - foreach(var item in panelInfo.peopleList) + //foreach(var item in panelInfo.peopleList) scenetext.personelPanelText.text = sceneEntry.Key; scenetext.personelNumText.text = sceneEntry.Value.Count.ToString(); scenetext.CreatePeopleItem(sceneEntry.Value); @@ -136,5 +136,9 @@ public class ManagerPanel : MonoBehaviour { peopleWindowsPrefab.gameObject.SetActive(false); } - + public void CreateFirstLable() + { + GameObject fistLable = Instantiate(personnelPanel, personnelPanelCount); + PersonnelInfo personnelItem = fistLable.GetComponent(); + } } \ No newline at end of file diff --git a/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs b/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs index 0e8626a2..7c475958 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/PersonnelPanel.cs @@ -2,14 +2,15 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; +using static UnityEditor.Progress; public class PersonnelPanel : MonoBehaviour { public Text personelPanelText; public Text personelNumText; public Transform personelContent; - public Panel panelInfo; public GameObject personelItem; + public GameObject firstLablePrefab; // Start is called before the first frame update void Start() { diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index 1401ec2e..a25f4157 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -54,7 +54,7 @@ public class LoginPanel : MonoBehaviour Debug.Log("登陆入参"+ JsonUtility.ToJson(loginBody)); string response = await web.SendRequest(web.URL + "/auth/login", "POST", JsonUtility.ToJson(loginBody)); Debug.Log("登录" + response); - + // 解析服务器返回的数据 loginResponse serverData = JsonConvert.DeserializeObject(response); @@ -63,7 +63,6 @@ public class LoginPanel : MonoBehaviour // 打印 access_token Debug.Log(serverData.data.access_token); - // 跳转场景 SceneManager.LoadScene(1); }