zhaoyang il y a 2 ans
Parent
commit
8497ce0012

+ 6 - 4
FGUIProject/assets/Studio/StudioFilingNpcUI.xml

@@ -1,12 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920">
   <displayList>
-    <component id="n6_orst" name="btnback" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="10,60" group="n8_orst">
+    <graph id="n9_dhoa" name="loaBg" xy="0,0" size="1080,1920" alpha="0.6" type="rect" lineSize="0" fillColor="#ff000000">
+      <relation target="" sidePair="width-width,height-height"/>
+    </graph>
+    <component id="n6_orst" name="btnback" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="35,80" group="n8_orst">
       <relation target="" sidePair="left-left,top-top"/>
-      <Button icon="ui://eg2y0ldpsi5zti5"/>
     </component>
-    <image id="n7_orst" name="n7" src="orst1z" fileName="images/dndn_zi.png" xy="159,80" group="n8_orst"/>
-    <group id="n8_orst" name="n8" xy="10,60" size="257,95"/>
+    <image id="n7_orst" name="n7" src="orst1z" fileName="images/dndn_zi.png" xy="159,100" group="n8_orst"/>
+    <group id="n8_orst" name="n8" xy="35,80" size="232,90"/>
     <list id="n1_hbio" name="list" xy="0,500" size="1080,919" layout="row" overflow="scroll" scroll="horizontal" defaultItem="ui://xz8kxrechbio1u">
       <relation target="" sidePair="middle-middle"/>
       <item/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Studio/UI_StudioFilingNpcUI.cs

@@ -7,6 +7,7 @@ namespace UI.Studio
     public partial class UI_StudioFilingNpcUI
     {
         public GComponent target;
+        public GGraph m_loaBg;
         public GButton m_btnback;
         public GList m_list;
         public const string URL = "ui://xz8kxrecrqo41j";
@@ -56,11 +57,13 @@ namespace UI.Studio
 
         private void Init(GComponent comp)
         {
+            m_loaBg = (GGraph)comp.GetChild("loaBg");
             m_btnback = (GButton)comp.GetChild("btnback");
             m_list = (GList)comp.GetChild("list");
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_loaBg = null;
             m_btnback = null;
             m_list = null;
             if(disposeTarget && target != null)

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/Studio/StudioFilingNpcView.cs

@@ -33,9 +33,9 @@ namespace GFGGame
             this.viewCom = _ui.target;
             isfullScreen = true;
             // this.viewCom.Center();
-            this.modal = true;
+            // this.modal = true;
             viewAnimationType = EnumViewAnimationType.None;
-            this.clickBlankToClose = false;
+            this.clickBlankToClose = true;
 
             _comSelect = new GComponent();
             _comSelect = UIPackage.CreateObject(UI_StudioFilingNpcUI.PACKAGE_NAME, "ComNpcItemSelect").asCom;
@@ -44,6 +44,7 @@ namespace GFGGame
             _ui.m_list.itemRenderer = RenderListItem;
             _ui.m_list.onClickItem.Add(OnListItemClick);
             _ui.m_btnback.onClick.Add(this.Hide);
+            _ui.m_loaBg.onClick.Add(this.Hide);
 
         }
         protected override void AddEventListener()

BIN
GameClient/Assets/ResIn/UI/Studio/Studio_fui.bytes