Browse Source

修改HUD为主播UI

大爷 1 year ago
parent
commit
beb22a0286

+ 11 - 0
FGUIProject/assets/HUD/Button3.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<component size="300,100" pivot="0.5,0.5" extention="Button">
+  <controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
+  <displayList>
+    <image id="n2_o3v3" name="n2" src="o3v38j" fileName="shcj_sxxlbtn01_sel.png" xy="0,0" size="300,100"/>
+    <text id="n1_o3v3" name="title" xy="0,0" size="300,100" fontSize="54" align="center" vAlign="middle" autoSize="none" singleLine="true" text="测试按扭">
+      <relation target="" sidePair="width-width,height-height"/>
+    </text>
+  </displayList>
+  <Button downEffect="scale" downEffectValue=".8"/>
+</component>

+ 11 - 4
FGUIProject/assets/HUD/HUD.xml

@@ -1,11 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="900,1600">
+<component size="1600,2560" opaque="false" extention="Button">
   <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"/>
-    <component id="n8_pzlz" name="btn_skill2" src="pzlz8d" fileName="Button1.xml" xy="693,1354" group="n10_pzlz"/>
-    <component id="n9_pzlz" name="btn_skill1" src="pzlz8e" fileName="Button2.xml" xy="572,1410" group="n10_pzlz"/>
-    <group id="n10_pzlz" name="n10" xy="572,1354" size="321,156"/>
+    <image id="n13_uy5h" name="n13" src="uy5h8h" fileName="png_kpzlxbg.png" xy="1220,330" size="34,2000"/>
+    <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="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"/>
+    <group id="n14_o3v3" name="n14" xy="1275,364" size="300,550"/>
   </displayList>
+  <Button downEffect="dark" downEffectValue=".71"/>
 </component>

BIN
FGUIProject/assets/HUD/btn_kpxqqh_nor.png


+ 5 - 0
FGUIProject/assets/HUD/package.xml

@@ -8,6 +8,11 @@
     <image id="vcrv8a" name="skillicon2.png" path="/"/>
     <component id="pzlz8d" name="Button1.xml" path="/"/>
     <component id="pzlz8e" name="Button2.xml" path="/"/>
+    <image id="uy5h8g" name="btn_kpxqqh_nor.png" path="/"/>
+    <image id="uy5h8h" name="png_kpzlxbg.png" path="/"/>
+    <component id="o3v38i" name="Button3.xml" path="/"/>
+    <image id="o3v38j" name="shcj_sxxlbtn01_sel.png" path="/"/>
+    <image id="icx38k" name="shcj_btn_nor.png" path="/"/>
   </resources>
   <publish name=""/>
 </packageDescription>

BIN
FGUIProject/assets/HUD/png_kpzlxbg.png


BIN
FGUIProject/assets/HUD/shcj_btn_nor.png


BIN
FGUIProject/assets/HUD/shcj_sxxlbtn01_sel.png


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


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


+ 2 - 2
Unity/Assets/Scenes/Init.unity

@@ -549,8 +549,8 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   scaleMode: 1
   screenMatchMode: 0
-  designResolutionX: 900
-  designResolutionY: 1600
+  designResolutionX: 1600
+  designResolutionY: 2500
   fallbackScreenDPI: 96
   defaultSpriteDPI: 96
   constantScaleFactor: 1