Эх сурвалжийг харах

登录界面添加资质信息

guodong 2 жил өмнө
parent
commit
937d7ba47b

+ 22 - 23
FGUIProject/assets/Login/LoginUI.xml

@@ -1,9 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="1080,1920" designImage="ui://myoktu7pnasr5l" designImageOffsetY="-240" designImageAlpha="100">
   <displayList>
-    <text id="n2_ul4p" name="txtBottom" xy="40,1751" size="1000,104" fontSize="24" color="#fff9f1" align="center" autoSize="none" text="健康游戏忠告&#xA;抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。&#xA;适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。">
-      <relation target="" sidePair="bottom-bottom"/>
-    </text>
     <image id="n5_m1tb" name="imgLogo" src="lqt1a" fileName="imagesExport/LOGO.png" pkg="mgs5yrnj" xy="31,45">
       <relation target="" sidePair="left-left,top-top"/>
     </image>
@@ -19,33 +16,35 @@
     <group id="n7_pcul" name="n7" xy="960,156" size="92,273" advanced="true" layout="vt" lineGap="47" excludeInvisibles="true">
       <relation target="" sidePair="right-right,top-top"/>
     </group>
-    <component id="n1_ul4p" name="btnStart" src="ul4p6" fileName="components/ButtonKS.xml" xy="0,1473" size="1080,219">
+    <component id="n1_ul4p" name="btnStart" src="ul4p6" fileName="components/ButtonKS.xml" xy="0,1433" size="1080,219">
       <relation target="" sidePair="center-center,middle-middle"/>
     </component>
     <component id="n12_pcul" name="btnChange" src="pcul5f" fileName="components/Button4.xml" xy="211,1336">
       <relation target="" sidePair="center-center,middle-middle"/>
     </component>
-    <component id="n13_es2q" name="btnAge" src="es2q5i" fileName="components/Button5.xml" xy="924,1740">
-      <relation target="" sidePair="right-right,bottom-bottom"/>
-    </component>
-    <component id="n15_pwpm" name="btnTapLogin" src="pwpm5k" fileName="components/ButtonTapLogin.xml" xy="240,1534" size="600,97" aspect="true">
+    <component id="n15_pwpm" name="btnTapLogin" src="pwpm5k" fileName="components/ButtonTapLogin.xml" xy="240,1494" size="600,97" aspect="true">
       <relation target="" sidePair="center-center,middle-middle"/>
     </component>
-    <component id="n44_nasr" name="btnAgree" src="q08x11" fileName="components/ButtonAgree.xml" xy="50,1701" size="50,44" group="n58_nasr"/>
-    <richtext id="n45_nasr" name="richTextAgree" xy="114,1702" size="293,44" group="n58_nasr" fontSize="32" color="#ffffff" ubb="true" autoSize="none" text="我已详细阅读并同意"/>
-    <text id="n46_nasr" name="n46" xy="402,1702" size="224,44" group="n49_nasr" fontSize="32" color="#ffdf87" ubb="true" text="游戏用户协议、"/>
-    <text id="n47_nasr" name="n47" xy="402,1705" size="260,44" group="n49_nasr" fontSize="32" color="#ffdf87" autoSize="none" underline="true" text="                       "/>
-    <loader id="n48_nasr" name="loaEventa" xy="402,1710" size="192,32" group="n49_nasr"/>
-    <group id="n49_nasr" name="n49" xy="402,1702" size="260,47" group="n58_nasr"/>
-    <text id="n50_nasr" name="n50" xy="611,1703" size="193,44" group="n53_nasr" fontSize="32" color="#ffdf87" text="隐私保护指引"/>
-    <text id="n51_nasr" name="n51" xy="611,1705" size="193,44" group="n53_nasr" fontSize="32" color="#ffdf87" underline="true" text="                       "/>
-    <loader id="n52_nasr" name="loaEventb" xy="615,1713" size="182,29" group="n53_nasr"/>
-    <group id="n53_nasr" name="n53" xy="611,1703" size="193,46" group="n58_nasr"/>
-    <text id="n54_nasr" name="n54" xy="804,1702" size="224,44" group="n57_nasr" fontSize="32" color="#fff9f1" ubb="true" text="和[color=#FFDF87]儿童隐私政策[/color]"/>
-    <text id="n55_nasr" name="n55" xy="836,1704" size="193,44" group="n57_nasr" fontSize="32" color="#ffdf87" underline="true" text="                       "/>
-    <loader id="n56_nasr" name="loaEventc" xy="838,1712" size="192,29" group="n57_nasr"/>
-    <group id="n57_nasr" name="n57" xy="804,1702" size="226,46" group="n58_nasr"/>
-    <group id="n58_nasr" name="n58" xy="50,1701" size="980,48" advanced="true">
+    <component id="n44_nasr" name="btnAgree" src="q08x11" fileName="components/ButtonAgree.xml" xy="-401,1651" size="50,44"/>
+    <richtext id="n45_nasr" name="richTextAgree" xy="-337,1652" size="293,44" fontSize="32" color="#ffffff" ubb="true" autoSize="none" text="我已详细阅读并同意"/>
+    <text id="n46_nasr" name="n46" xy="122,1665" size="228,44" group="n49_nasr" fontSize="32" color="#ffdf87" ubb="true" text="游戏用户协议、"/>
+    <text id="n47_nasr" name="n47" xy="122,1668" size="260,44" group="n49_nasr" fontSize="32" color="#ffdf87" autoSize="none" underline="true" text="                       "/>
+    <loader id="n48_nasr" name="loaEventa" xy="122,1673" size="192,32" group="n49_nasr"/>
+    <group id="n49_nasr" name="n49" xy="122,1665" size="260,47" group="n61_dgkd"/>
+    <text id="n50_nasr" name="n50" xy="331,1666" size="196,44" group="n53_nasr" fontSize="32" color="#ffdf87" text="隐私保护指引"/>
+    <text id="n51_nasr" name="n51" xy="331,1668" size="208,44" group="n53_nasr" fontSize="32" color="#ffdf87" underline="true" text="                       "/>
+    <loader id="n52_nasr" name="loaEventb" xy="335,1676" size="182,29" group="n53_nasr"/>
+    <group id="n53_nasr" name="n53" xy="331,1666" size="208,46" group="n61_dgkd"/>
+    <text id="n54_nasr" name="n54" xy="524,1665" size="228,44" group="n57_nasr" fontSize="32" color="#fff9f1" ubb="true" text="和[color=#FFDF87]儿童隐私政策[/color]"/>
+    <text id="n55_nasr" name="n55" xy="556,1667" size="208,44" group="n57_nasr" fontSize="32" color="#ffdf87" underline="true" text="                       "/>
+    <loader id="n56_nasr" name="loaEventc" xy="558,1675" size="192,29" group="n57_nasr"/>
+    <group id="n57_nasr" name="n57" xy="524,1665" size="240,46" group="n61_dgkd"/>
+    <group id="n61_dgkd" name="n61" xy="122,1665" size="642,47" group="n58_nasr"/>
+    <component id="n13_es2q" name="btnAge" src="es2q5i" fileName="components/Button5.xml" xy="848,1649" group="n58_nasr"/>
+    <text id="n2_ul4p" name="txtBottom" xy="122,1726" size="676,66" group="n58_nasr" fontSize="24" color="#fff9f1" align="center" text="抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。&#xA;适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。"/>
+    <text id="n59_dgkd" name="txtBottom2" xy="118,1806" size="424,104" group="n58_nasr" fontSize="24" color="#fff9f1" autoSize="none" text="ISBN:978-7-498-10127-3&#xA;审批文号:国新出审[2023]151号&#xD;&#xA;软著登记号:2021SR1161597"/>
+    <text id="n60_dgkd" name="txtBottom3" xy="547,1806" size="449,104" group="n58_nasr" fontSize="24" color="#fff9f1" autoSize="none" text="著作权人:深圳市畅玩网络科技有限公司&#xD;&#xA;出版单位:山东科学技术出版社有限公司&#xD;&#xA;运营单位:深圳市畅玩网络科技有限公司"/>
+    <group id="n58_nasr" name="groupBottom" xy="118,1649" size="878,261" advanced="true">
       <relation target="" sidePair="bottom-bottom"/>
     </group>
   </displayList>

+ 15 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_LoginUI.cs

@@ -7,20 +7,23 @@ namespace UI.Login
     public partial class UI_LoginUI
     {
         public GComponent target;
-        public GTextField m_txtBottom;
         public GImage m_imgLogo;
         public GTextField m_txtVersion;
         public GButton m_btnNotice;
         public GButton m_btnLogout;
         public GButton m_btnStart;
         public GButton m_btnChange;
-        public GButton m_btnAge;
         public GButton m_btnTapLogin;
         public GButton m_btnAgree;
         public GRichTextField m_richTextAgree;
         public GLoader m_loaEventa;
         public GLoader m_loaEventb;
         public GLoader m_loaEventc;
+        public GButton m_btnAge;
+        public GTextField m_txtBottom;
+        public GTextField m_txtBottom2;
+        public GTextField m_txtBottom3;
+        public GGroup m_groupBottom;
         public const string URL = "ui://myoktu7pl55o0";
         public const string PACKAGE_NAME = "Login";
         public const string RES_NAME = "LoginUI";
@@ -68,37 +71,43 @@ namespace UI.Login
 
         private void Init(GComponent comp)
         {
-            m_txtBottom = (GTextField)comp.GetChild("txtBottom");
             m_imgLogo = (GImage)comp.GetChild("imgLogo");
             m_txtVersion = (GTextField)comp.GetChild("txtVersion");
             m_btnNotice = (GButton)comp.GetChild("btnNotice");
             m_btnLogout = (GButton)comp.GetChild("btnLogout");
             m_btnStart = (GButton)comp.GetChild("btnStart");
             m_btnChange = (GButton)comp.GetChild("btnChange");
-            m_btnAge = (GButton)comp.GetChild("btnAge");
             m_btnTapLogin = (GButton)comp.GetChild("btnTapLogin");
             m_btnAgree = (GButton)comp.GetChild("btnAgree");
             m_richTextAgree = (GRichTextField)comp.GetChild("richTextAgree");
             m_loaEventa = (GLoader)comp.GetChild("loaEventa");
             m_loaEventb = (GLoader)comp.GetChild("loaEventb");
             m_loaEventc = (GLoader)comp.GetChild("loaEventc");
+            m_btnAge = (GButton)comp.GetChild("btnAge");
+            m_txtBottom = (GTextField)comp.GetChild("txtBottom");
+            m_txtBottom2 = (GTextField)comp.GetChild("txtBottom2");
+            m_txtBottom3 = (GTextField)comp.GetChild("txtBottom3");
+            m_groupBottom = (GGroup)comp.GetChild("groupBottom");
         }
         public void Dispose(bool disposeTarget = false)
         {
-            m_txtBottom = null;
             m_imgLogo = null;
             m_txtVersion = null;
             m_btnNotice = null;
             m_btnLogout = null;
             m_btnStart = null;
             m_btnChange = null;
-            m_btnAge = null;
             m_btnTapLogin = null;
             m_btnAgree = null;
             m_richTextAgree = null;
             m_loaEventa = null;
             m_loaEventb = null;
             m_loaEventc = null;
+            m_btnAge = null;
+            m_txtBottom = null;
+            m_txtBottom2 = null;
+            m_txtBottom3 = null;
+            m_groupBottom = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -56,7 +56,7 @@ namespace GFGGame
             _ui.m_loaEventa.onClick.Add(() => { OnClickRichTextAgreeLink("event:a"); });
             _ui.m_loaEventb.onClick.Add(() => { OnClickRichTextAgreeLink("event:b"); });
             _ui.m_loaEventc.onClick.Add(() => { OnClickRichTextAgreeLink("event:c"); });
-            _ui.m_btnAgree.onClick.Add(OnBtnAgreeCklick);
+            //_ui.m_btnAgree.onClick.Add(OnBtnAgreeCklick);
 
         }
         protected override void AddEventListener()
@@ -82,7 +82,8 @@ namespace GFGGame
             _ui.m_btnStart.visible = false;
             _ui.m_btnTapLogin.visible = false;
             _ui.m_btnLogout.visible = false;
-            _ui.m_btnAgree.selected = LocalCache.GetBool(GameConst.LAST_LOGIN_IS_AGREE_KEY, false);
+            //_ui.m_btnAgree.selected = LocalCache.GetBool(GameConst.LAST_LOGIN_IS_AGREE_KEY, false);
+            _ui.m_btnAgree.selected = true;
 
             if (QDManager.isInited)
             {

BIN
GameClient/Assets/ResIn/UI/Login/Login_fui.bytes