zhaoyang 2 年之前
父節點
當前提交
e7c2871ff1

+ 2 - 2
FGUIProject/assets/League/LeagueAnswerUI.xml

@@ -15,8 +15,8 @@
     <text id="n2_pvb4" name="txtName" xy="148,417" pivot="0.5,0" size="172,34" group="n13_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="24" color="#915e15" align="center" text="玩家名字七个字"/>
     <group id="n13_9jv6" name="n13" xy="81,69" size="316,401"/>
     <text id="n6_pvb4" name="txtRule" xy="386,198" size="602,289" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#a9733e" autoSize="none" text="1.每天19:10分开启雅集夜宴&#xD;&#xA;2.活动需要成员尽可能在10分钟内快速回答问题,每答对一题在场的所有成员均可获得一份奖励&#xD;&#xA;3.活动结束时按照全员答对题数,仍在场的成员还可获得一份额外大奖&#xD;&#xA;4.每个成员每道题目只有一次回答机会,请认真回答哦"/>
-    <text id="n4_pvb4" name="txtTime" xy="458,497" pivot="0.5,0" size="163,35" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#716660" align="center" text="23:59:59后开启"/>
-    <component id="n5_pvb4" name="btnAnswer" src="rv091p" fileName="components/Button12.xml" xy="446,530" pkg="eg2y0ldp">
+    <text id="n4_pvb4" name="txtTime" xy="458,539" pivot="0.5,0" size="163,35" font="ui://eg2y0ldpa0cftks" fontSize="25" color="#716660" align="center" text="23:59:59后开启"/>
+    <component id="n5_pvb4" name="btnAnswer" src="rv091p" fileName="components/BtnStyle1Big.xml" pkg="eg2y0ldp" xy="446,530">
       <Button title="开始答题"/>
     </component>
     <text id="n15_9jv6" name="n15" xy="388,140" size="132,44" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#a9733e" text="玩法描述"/>

+ 6 - 6
FGUIProject/assets/League/LeagueAnsweringUI.xml

@@ -8,11 +8,11 @@
     <remark page="0" value="答题中"/>
     <remark page="1" value="cd中"/>
   </controller>
-  <controller name="ctrlQuestionType" pages="0,,1,,2," selected="0">
+  <controller name="ctrlQuestionType" pages="0,,1,,2," selected="2">
     <remark page="1" value="选择题"/>
     <remark page="2" value="填空题"/>
   </controller>
-  <controller name="ctrlResult" pages="0,,1,,2,,3," selected="3">
+  <controller name="ctrlResult" pages="0,,1,,2,,3," selected="1">
     <remark page="1" value="有人答对题目"/>
     <remark page="2" value="没人答对题目"/>
     <remark page="3" value="全部题目答完"/>
@@ -57,7 +57,7 @@
       <item/>
       <item/>
     </list>
-    <text id="n16_pvb4" name="n16" xy="229,472" size="241,41" group="n19_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="30" color="#b68f52" align="center" text="请入您的答案:">
+    <text id="n16_pvb4" name="n16" xy="229,472" size="241,41" group="n19_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="30" color="#b68f52" align="center" text="请入您的答案:">
       <gearText controller="ctrlQuestionType" pages="1,2" values="请选择您的答案:|请输入您的答案:" default="请填入您的答案:"/>
     </text>
     <text id="n17_pvb4" name="txtResult" xy="471,470" size="123,42" group="n19_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="30" color="#b68f52" align="center" autoSize="none" text="亚索" input="true">
@@ -92,11 +92,11 @@
     <image id="n55_miy3" name="n55" src="9jv65l" fileName="images/lm_dt_tsdk.png" xy="162,424" group="n24_pvb4">
       <gearDisplay controller="ctrlResult" pages="3"/>
     </image>
-    <text id="n22_pvb4" name="txtInfo" xy="305,417" pivot="0.5,0" size="469,44" group="n24_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#915e15" align="center" text="哎呀,没人答对呀,大家加油鸭~">
-      <gearXY controller="ctrlResult" pages="3" values="305,417" default="305,514"/>
+    <text id="n22_pvb4" name="txtInfo" xy="539,514" pivot="0.5,0" anchor="true" size="469,44" group="n24_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#915e15" align="center" text="哎呀,没人答对呀,大家加油鸭~">
+      <gearXY controller="ctrlResult" pages="0,1,2,3" values="417,514|539,514|539,514|539,417"/>
     </text>
     <image id="n53_miy3" name="n53" src="9jv65l" fileName="images/lm_dt_tsdk.png" xy="162,568" group="n54_miy3"/>
-    <text id="n23_pvb4" name="txtCdTime" xy="418,562" pivot="0.5,0" size="244,44" group="n54_miy3" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#915e15" align="center" ubb="true" vars="true" text="[color=#5EAE49]{value=0}[/color]秒后开始下一题"/>
+    <text id="n23_pvb4" name="txtCdTime" xy="410,562" pivot="0.5,0" size="259,44" group="n54_miy3" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#915e15" align="center" ubb="true" vars="true" text="[color=#5EAE49]{value=10}[/color]秒后开始下一题"/>
     <group id="n54_miy3" name="n54" xy="162,562" size="756,44" group="n24_pvb4" advanced="true">
       <gearDisplay controller="ctrlResult" pages="1,2"/>
     </group>

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Data/LeagueDataManager.cs

@@ -6,8 +6,8 @@ namespace GFGGame
     public class LastQuestionResult
     {
         public static int SomeBodyRight = 1;//1:有人答对题目
-        public static int NobodyRight;// 2:无人答对
-        public static int Ending;// 3:答题结束
+        public static int NobodyRight = 2;// 2:无人答对
+        public static int Ending = 3;// 3:答题结束
     }
     public class LeagueDataManager : SingletonBase<LeagueDataManager>
     {

+ 9 - 8
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs

@@ -149,8 +149,8 @@ namespace GFGGame
         private void UpdateQuestion()
         {
             // _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
-            _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
-            _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
+            _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars(); ;
+            _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars(); ;
             _ui.m_ctrlQuestionState.selectedIndex = 0;
             int questionId = (int)_dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionId);
             LeagueQuestionCfg questionCfg = LeagueQuestionCfgArray.Instance.GetCfg(questionId);
@@ -169,7 +169,7 @@ namespace GFGGame
             {
                 _ui.m_listResult.numItems = questionCfg.answerArr.Length;
             }
-            _ui.m_txtAnswerTime.text = "";
+            _ui.m_txtAnswerTime.text = GlobalCfgArray.globalCfg.leagueQuestionRunTime.ToString();
 
             Timers.inst.Remove(UpdateAnswerTime);
             Timers.inst.Add(1, 0, UpdateAnswerTime);
@@ -190,10 +190,11 @@ namespace GFGGame
         }
         private void UpdateResult()
         {
-            // _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
+            _ui.m_txtRightCount.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
             // _ui.txtRightCount1.text = string.Format("全员已答对{0}题", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount));
-            _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
-            _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString());
+            _ui.m_txtRightCount.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars();
+            _ui.m_txtRightCount1.SetVar("value", _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionTrueCount).ToString()).FlushVars();
+            _ui.m_txtCdTime.SetVar("value", GlobalCfgArray.globalCfg.leagueQuestionNextTime.ToString()).FlushVars();
             _ui.m_ctrlQuestionState.selectedIndex = 1;
             _ui.m_ctrlResult.selectedIndex = _dataManager.LastAnswerRoleData.LastQuestionResult;
             if (_dataManager.LastAnswerRoleData.LastQuestionResult == LastQuestionResult.SomeBodyRight)
@@ -240,7 +241,7 @@ namespace GFGGame
                 return;
             }
             // _ui.m_txtTime.text = (endTime - curTime) / 1000 + "秒后开始下一题";
-            _ui.m_txtCdTime.SetVar("value", ((endTime - curTime) / 1000).ToString());
+            _ui.m_txtCdTime.SetVar("value", (((endTime - curTime) / 1000) + 1).ToString()).FlushVars();
 
         }
         private void UpdateJoinList()
@@ -277,7 +278,7 @@ namespace GFGGame
         {
             GObject obj = context.sender as GObject;
             string answer = obj.data.ToString();
-            ChatSProxy.ReqSendChatMsg(ChatType.LeagueQuestion, answer).Coroutine();
+            // ChatSProxy.ReqSendChatMsg(ChatType.LeagueQuestion, answer).Coroutine();
             int questionId = (int)_dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionId);
             LeagueQuestionCfg cfg = LeagueQuestionCfgArray.Instance.GetCfg(questionId);
             bool result = await LeagueSproxy.ReqAnswerQuestion(questionId, answer);

二進制
GameClient/Assets/ResIn/UI/League/League_fui.bytes