Ver código fonte

【FGUI】修改血条UI

大爷 2 anos atrás
pai
commit
68ac8cd270

+ 9 - 5
FGUIProject/assets/HUD/HUD.xml

@@ -3,19 +3,23 @@
   <displayList>
     <image id="n0_vcrv" name="bg_direction" src="vcrv8b" fileName="bg_direction.png" xy="4,1376" group="n5_vcrv" visible="false"/>
     <image id="n1_vcrv" name="img_direction" src="vcrv8c" fileName="img_direction.png" xy="73,1445" group="n5_vcrv" visible="false"/>
-    <group id="n5_vcrv" name="n5" xy="4,1376" size="218,218"/>
-    <image id="n13_uy5h" name="n13" src="uy5h8h" fileName="png_kpzlxbg.png" xy="1220,330" size="34,2000"/>
+    <group id="n5_vcrv" name="wheel" xy="4,1376" size="218,218"/>
     <component id="n8_pzlz" name="btn_skill2" src="pzlz8d" fileName="Button1.xml" xy="693,1354" group="n10_pzlz" visible="false"/>
     <component id="n9_pzlz" name="btn_skill1" src="pzlz8e" fileName="Button2.xml" xy="572,1410" group="n10_pzlz" visible="false"/>
     <group id="n10_pzlz" name="skillbtns" xy="572,1354" size="321,156"/>
-    <component id="n16_o3v3" name="btn_func1" src="o3v38i" fileName="Button3.xml" xy="1275,364" group="n14_o3v3"/>
-    <component id="n17_o3v3" name="btn_func2" src="o3v38i" fileName="Button3.xml" xy="1275,514" size="300,100" group="n14_o3v3"/>
+    <component id="n16_o3v3" name="btn_func1" src="o3v38i" fileName="Button3.xml" xy="1275,364" group="n14_o3v3">
+      <Button title="显/隐血条" titleColor="#000000"/>
+    </component>
+    <component id="n17_o3v3" name="btn_func2" src="o3v38i" fileName="Button3.xml" xy="1275,514" size="300,100" group="n14_o3v3">
+      <Button title="摇人"/>
+    </component>
     <component id="n18_o3v3" name="btn_func3" src="o3v38i" fileName="Button3.xml" xy="1275,664" size="300,100" group="n14_o3v3"/>
     <component id="n19_o3v3" name="btn_func4" src="o3v38i" fileName="Button3.xml" xy="1275,814" size="300,100" group="n14_o3v3"/>
     <component id="n20_icx3" name="btn_mute" src="icx38n" fileName="Button4.xml" xy="1268,160" group="n14_o3v3">
       <Button title="Mute"/>
     </component>
-    <group id="n14_o3v3" name="n14" xy="1268,160" size="307,754"/>
+    <group id="n14_o3v3" name="TestBtns" xy="1268,160" size="307,754"/>
+    <image id="n13_uy5h" name="n13" src="uy5h8h" fileName="png_kpzlxbg.png" xy="1220,330" size="34,2000"/>
   </displayList>
   <Button downEffect="dark" downEffectValue=".71"/>
 </component>

+ 0 - 9
FGUIProject/assets/HeadBar/Bar_HP.xml

@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<component size="111,11" extention="ProgressBar" bgColorEnabled="true" bgColor="#000000">
-  <displayList>
-    <image id="n1_u6tf" name="bar" src="u6tfg" fileName="HP.png" xy="0,0" size="111,11">
-      <relation target="" sidePair="width-width,height-height"/>
-    </image>
-  </displayList>
-  <ProgressBar/>
-</component>

+ 0 - 12
FGUIProject/assets/HeadBar/Bar_MP.xml

@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<component size="111,11" extention="ProgressBar">
-  <displayList>
-    <graph id="n0_u6tf" name="n0" xy="0,0" size="111,11" type="rect" lineSize="0" lineColor="#ffa0a0a0" fillColor="#ff000000">
-      <relation target="" sidePair="width-width,height-height"/>
-    </graph>
-    <image id="n1_u6tf" name="bar" src="u6tff" fileName="MP.png" xy="0,0" size="111,11">
-      <relation target="" sidePair="width-width,height-height"/>
-    </image>
-  </displayList>
-  <ProgressBar/>
-</component>

+ 0 - 16
FGUIProject/assets/HeadBar/HeadBar.xml

@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<component size="170,45" opaque="false">
-  <displayList>
-    <image id="n16_u6tf" name="n16" src="u6tfd" fileName="QQ截图20200118153803.png" xy="22,20" size="19,22"/>
-    <text id="n7_qrur" name="Tex_Level" xy="20,22" size="21,20" fontSize="10" color="#ffffff" align="center" autoSize="none" text="18"/>
-    <text id="n14_jdtl" name="Tex_PlayerName" xy="0,0" size="170,21" fontSize="12" color="#ffffff" align="center" vAlign="middle" autoSize="none" strokeColor="#000000" text="烟雨迷离半世殇"/>
-    <image id="n15_u6tf" name="n15" src="u6tfc" fileName="80668E524672C2EE_0.png" xy="18,16"/>
-    <component id="n17_u6tf" name="Bar_HP" src="u6tfi" fileName="Bar_HP.xml" xy="44,21" size="107,13">
-      <ProgressBar value="50" max="100"/>
-    </component>
-    <component id="n18_u6tf" name="Bar_MP" src="u6tfj" fileName="Bar_MP.xml" xy="44,36" size="106,3">
-      <ProgressBar value="50" max="100"/>
-    </component>
-    <image id="n26_ozv1" name="Img_Gap" src="u6tfd" fileName="QQ截图20200118153803.png" xy="44,21" size="107,13"/>
-  </displayList>
-</component>

+ 2 - 0
FGUIProject/assets/HeadBar/HeadBarRoot.xml

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="1600,2500"/>

+ 10 - 0
FGUIProject/assets/HeadBar/ProgressBar1.xml

@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="111,11" extention="ProgressBar">
+  <ProgressBar/>
+  <displayList>
+    <image id="n0_gb8x" src="u6tfh" name="n0" xy="0,0" size="111,11">
+      <relation target="" sidePair="width,height"/>
+    </image>
+    <image id="n1_gb8x" src="u6tfg" name="bar" xy="0,0" size="111,11"/>
+  </displayList>
+</component>

+ 0 - 0
FGUIProject/assets/HeadBar/QQ截图20200118153803.png → FGUIProject/assets/HeadBar/hpbarmask.png


+ 12 - 0
FGUIProject/assets/HeadBar/normalbar.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="180,56" pivot="0.5,1" anchor="true" opaque="false" designImageAlpha="34">
+  <displayList>
+    <text id="n27_n0ac" name="text_name" xy="0,0" size="180,40" fontSize="28" align="center" autoSize="none" text="这是我的名字"/>
+    <component id="n28_gb8x" name="bar_hp" src="gb8xl" fileName="ProgressBar1.xml" xy="0,45" size="180,11">
+      <ProgressBar value="50" max="100"/>
+    </component>
+    <component id="n29_gb8x" name="bar_mp" src="gb8xl" fileName="ProgressBar1.xml" xy="31,35" visible="false">
+      <ProgressBar value="50" max="100"/>
+    </component>
+  </displayList>
+</component>

+ 4 - 4
FGUIProject/assets/HeadBar/package.xml

@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packageDescription id="ny5r4rwc">
   <resources>
-    <component id="qrur4" name="HeadBar.xml" path="/" exported="true"/>
+    <component id="qrur4" name="normalbar.xml" path="/" exported="true"/>
     <image id="u6tfc" name="80668E524672C2EE_0.png" path="/"/>
-    <image id="u6tfd" name="QQ截图20200118153803.png" path="/" scale9grid="4,5,8,10"/>
+    <image id="u6tfd" name="hpbarmask.png" path="/" scale9grid="4,5,8,10"/>
     <image id="u6tff" name="MP.png" path="/"/>
     <image id="u6tfg" name="HP.png" path="/"/>
     <image id="u6tfh" name="BarBackGround.png" path="/"/>
-    <component id="u6tfi" name="Bar_HP.xml" path="/"/>
-    <component id="u6tfj" name="Bar_MP.xml" path="/"/>
+    <component id="gb8xk" name="HeadBarRoot.xml" path="/" exported="true"/>
+    <component id="gb8xl" name="ProgressBar1.xml" path="/"/>
   </resources>
   <publish name=""/>
 </packageDescription>

BIN
Unity/Assets/Res/FGUI/HUD_fui.bytes


BIN
Unity/Assets/Res/FGUI/HeadBar_atlas0.png


+ 135 - 0
Unity/Assets/Res/FGUI/HeadBar_atlas0.png.meta

@@ -0,0 +1,135 @@
+fileFormatVersion: 2
+guid: b470eb48bb30fbf4c8f25ee1a64623e2
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 12
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 1
+    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: 0
+    wrapV: 0
+    wrapW: 0
+  nPOTScale: 1
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 0
+  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: 0
+  spriteTessellationDetail: -1
+  textureType: 0
+  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: Server
+    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: 
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+    nameFileIdTable: {}
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Unity/Assets/Res/FGUI/HeadBar_fui.bytes


+ 7 - 0
Unity/Assets/Res/FGUI/HeadBar_fui.bytes.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: ad588c0f9479d614e8197107b50b9565
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: