Explorar o código

gm指令显示

zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
6b0a9cca46

+ 23 - 15
FGUIProject/assets/RoleInfo/components/ComBtn.xml

@@ -1,28 +1,36 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="500,400" overflow="scroll">
+  <controller name="c1" pages="0,,1," selected="0"/>
   <displayList>
-    <component id="n11_c5sc" name="btnGetAllDressUpItem" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,63" size="332,46">
+    <component id="n20_lqp0" name="btnAll" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,0" size="330,46" group="n28_ysx9">
+      <gearDisplay controller="c1" pages="0"/>
+      <Button title="666账号" titleFontSize="30"/>
+    </component>
+    <component id="n11_c5sc" name="btnGetAllDressUpItem" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,61" size="332,46" group="n28_ysx9">
+      <gearDisplay controller="c1" pages="0"/>
       <Button title="获取所有换装部件" titleFontSize="30"/>
     </component>
-    <component id="n13_c5sc" name="btnGetAllCardItem" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,129" size="330,46">
+    <component id="n13_c5sc" name="btnGetAllCardItem" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,122" size="330,46" group="n28_ysx9">
+      <gearDisplay controller="c1" pages="0"/>
       <Button title="获取所有卡牌" titleFontSize="30"/>
     </component>
-    <component id="n14_lqp0" name="btnSetLv" src="c5sc8h" fileName="components/ButtonGM.xml" xy="1,195" size="330,46">
+    <component id="n14_lqp0" name="btnSetLv" src="c5sc8h" fileName="components/ButtonGM.xml" xy="1,183" size="330,46" group="n26_ysx9">
       <Button title="设置玩家等级" titleFontSize="30"/>
     </component>
-    <text id="n17_lqp0" name="txtRoleLv" xy="332,197" size="119,42" fontSize="30" autoSize="none" text="99" input="true" prompt="[color=#B6A688]99[/color]" maxLength="3"/>
-    <component id="n15_lqp0" name="btnSetChapter" src="c5sc8h" fileName="components/ButtonGM.xml" xy="1,261" size="330,46">
+    <text id="n17_lqp0" name="txtRoleLv" xy="332,185" size="119,42" group="n26_ysx9" fontSize="30" autoSize="none" text="99" input="true" prompt="[color=#B6A688]99[/color]" maxLength="3"/>
+    <group id="n26_ysx9" name="n26" xy="1,183" size="450,46" group="n28_ysx9" advanced="true">
+      <gearDisplay controller="c1" pages="0,1"/>
+    </group>
+    <component id="n15_lqp0" name="btnSetChapter" src="c5sc8h" fileName="components/ButtonGM.xml" xy="1,244" size="330,46" group="n27_ysx9">
       <Button title="设置玩家章节" titleFontSize="30"/>
     </component>
-    <text id="n18_lqp0" name="txtChapter" xy="333,262" size="44,42" fontSize="30" autoSize="none" text="5" input="true" prompt="[color=#B6A688]章[/color]"/>
-    <text id="n19_lqp0" name="txtChapterLv" xy="411,262" size="42,42" fontSize="30" autoSize="none" text="1" input="true" prompt="[color=#B6A688]关[/color]"/>
-    <component id="n20_lqp0" name="btnAll" src="c5sc8h" fileName="components/ButtonGM.xml" xy="0,0" size="330,46">
-      <Button title="666账号" titleFontSize="30"/>
-    </component>
-    <text id="n21_lqp0" name="n21" xy="377,262" size="34,41" fontSize="30" text="章"/>
-    <text id="n24_lqp0" name="n24" xy="454,263" size="34,41" fontSize="30" text="关"/>
-    <component id="n25_irk8" name="btnSkipCheckOpen" src="c5sc8h" fileName="components/ButtonGM.xml" xy="1,325" size="330,46">
-      <Button title="跳过功能开启检测" titleFontSize="30"/>
-    </component>
+    <text id="n18_lqp0" name="txtChapter" xy="333,245" size="44,42" group="n27_ysx9" fontSize="30" autoSize="none" text="5" input="true" prompt="[color=#B6A688]章[/color]"/>
+    <text id="n24_lqp0" name="n24" xy="454,246" size="34,41" group="n27_ysx9" fontSize="30" text="关"/>
+    <text id="n21_lqp0" name="n21" xy="377,245" size="34,41" group="n27_ysx9" fontSize="30" text="章"/>
+    <text id="n19_lqp0" name="txtChapterLv" xy="411,245" size="42,42" group="n27_ysx9" fontSize="30" autoSize="none" text="1" input="true" prompt="[color=#B6A688]关[/color]"/>
+    <group id="n27_ysx9" name="n27" xy="1,244" size="487,46" group="n28_ysx9" advanced="true">
+      <gearDisplay controller="c1" pages="0,1"/>
+    </group>
+    <group id="n28_ysx9" name="n28" xy="0,0" size="488,290" advanced="true" layout="vt" lineGap="15" excludeInvisibles="true"/>
   </displayList>
 </component>

+ 6 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ComBtn.cs

@@ -7,6 +7,8 @@ namespace UI.RoleInfo
     public partial class UI_ComBtn
     {
         public GComponent target;
+        public Controller m_c1;
+        public GButton m_btnAll;
         public GButton m_btnGetAllDressUpItem;
         public GButton m_btnGetAllCardItem;
         public GButton m_btnSetLv;
@@ -14,8 +16,6 @@ namespace UI.RoleInfo
         public GButton m_btnSetChapter;
         public GTextInput m_txtChapter;
         public GTextInput m_txtChapterLv;
-        public GButton m_btnAll;
-        public GButton m_btnSkipCheckOpen;
         public const string URL = "ui://374k3dwvlqp0dm";
         public const string PACKAGE_NAME = "RoleInfo";
         public const string RES_NAME = "ComBtn";
@@ -63,6 +63,8 @@ namespace UI.RoleInfo
 
         private void Init(GComponent comp)
         {
+            m_c1 = comp.GetController("c1");
+            m_btnAll = (GButton)comp.GetChild("btnAll");
             m_btnGetAllDressUpItem = (GButton)comp.GetChild("btnGetAllDressUpItem");
             m_btnGetAllCardItem = (GButton)comp.GetChild("btnGetAllCardItem");
             m_btnSetLv = (GButton)comp.GetChild("btnSetLv");
@@ -70,11 +72,11 @@ namespace UI.RoleInfo
             m_btnSetChapter = (GButton)comp.GetChild("btnSetChapter");
             m_txtChapter = (GTextInput)comp.GetChild("txtChapter");
             m_txtChapterLv = (GTextInput)comp.GetChild("txtChapterLv");
-            m_btnAll = (GButton)comp.GetChild("btnAll");
-            m_btnSkipCheckOpen = (GButton)comp.GetChild("btnSkipCheckOpen");
         }
         public void Dispose(bool disposeTarget = false)
         {
+            m_c1 = null;
+            m_btnAll = null;
             m_btnGetAllDressUpItem = null;
             m_btnGetAllCardItem = null;
             m_btnSetLv = null;
@@ -82,8 +84,6 @@ namespace UI.RoleInfo
             m_btnSetChapter = null;
             m_txtChapter = null;
             m_txtChapterLv = null;
-            m_btnAll = null;
-            m_btnSkipCheckOpen = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/GMPanelView.cs

@@ -34,12 +34,12 @@ namespace GFGGame
             _ui.m_ComBtn.m_btnAll.onClick.Add(OnClickBtnAll);
             _ui.m_btnAddItem.onClick.Add(OnClickBtnAddItem);
             _ui.m_btnGM.onClick.Add(OnClickBtnGM);
-            _ui.m_ComBtn.m_btnSkipCheckOpen.onClick.Add(OnClickBtnSkipCheckOpen);
         }
 
         protected override void OnShown()
         {
             base.OnShown();
+            _ui.m_ComBtn.m_c1.selectedIndex = LauncherConfig.netType == LauncherConfig.EnumNetType.LOCAL ? 0 : 1;
         }
 
         protected override void OnHide()

BIN=BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes