Browse Source

剧情滤镜

zhaoyang 2 năm trước cách đây
mục cha
commit
106872d04b

+ 4 - 1
FGUIProject/assets/Main/StoryDialogUI.xml

@@ -2,6 +2,9 @@
 <component size="1080,1920">
   <controller name="c1" pages="0,,1," selected="0"/>
   <displayList>
+    <loader id="n20_o4m7" name="loaMask" xy="0,-240" size="1080,2400">
+      <relation target="" sidePair="width-width,height-height,center-center,middle-middle"/>
+    </loader>
     <graph id="n17_t8o1" name="btnNext" xy="0,0" size="1080,1920" alpha="0" type="rect" fillColor="#ffff0000">
       <relation target="" sidePair="center-center,middle-middle"/>
     </graph>
@@ -23,7 +26,7 @@
       <item/>
       <item/>
     </list>
-    <component id="n16_qsvd" name="btnBack" src="9xlo8" fileName="components/ButtonBack1.xml" pkg="eg2y0ldp" xy="35,80">
+    <component id="n16_qsvd" name="btnBack" src="9xlo8" fileName="components/BtnBack.xml" pkg="eg2y0ldp" xy="35,80">
       <gearDisplay controller="c1" pages="0"/>
     </component>
     <component id="n3_nmnb" name="btnLookBack" src="nmnb2w" fileName="componentsDialog/ButtonLookBack.xml" xy="492,1722" group="n18_u7i8"/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_StoryDialogUI.cs

@@ -8,6 +8,7 @@ namespace UI.Main
     {
         public GComponent target;
         public Controller m_c1;
+        public GLoader m_loaMask;
         public GGraph m_btnNext;
         public UI_CompDialogText m_dialogText;
         public UI_CompDialogName m_dialogName;
@@ -66,6 +67,7 @@ namespace UI.Main
         private void Init(GComponent comp)
         {
             m_c1 = comp.GetController("c1");
+            m_loaMask = (GLoader)comp.GetChild("loaMask");
             m_btnNext = (GGraph)comp.GetChild("btnNext");
             m_dialogText = (UI_CompDialogText)UI_CompDialogText.Create(comp.GetChild("dialogText"));
             m_dialogName = (UI_CompDialogName)UI_CompDialogName.Create(comp.GetChild("dialogName"));
@@ -80,6 +82,7 @@ namespace UI.Main
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
+            m_loaMask = null;
             m_btnNext = null;
             m_dialogText.Dispose();
             m_dialogText = null;

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -366,6 +366,7 @@ namespace GFGGame
 
         private void ShowDialog(StoryDialogCfg storyDialogCfg)
         {
+            _ui.m_loaMask.url = ResPathUtil.GetBgImgPath(storyDialogCfg.maskRes);
             _ui.m_btnAutoPlay.enabled = true;
             _ui.m_list.visible = false;
             var content = storyDialogCfg.content.Replace("self", RoleDataManager.roleName);

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes