ソースを参照

回答了错误的答案给个错误标识

zhaoyang 2 年 前
コミット
de03d48eec

+ 2 - 2
FGUIProject/assets/Arena/components/ComFightScore.xml

@@ -2,10 +2,10 @@
 <component size="365,168">
   <controller name="c1" exported="true" pages="0,,1," selected="0"/>
   <displayList>
-    <image id="n54_jcej" name="n54" src="jcej4p" fileName="images/jjcdi_jjcdi.png" xy="0,0" pivot="0.5,0.5" scale="-1,1">
+    <image id="n54_jcej" name="n54" src="jcej4p" fileName="images/jjcdi_jjcdi.png" xy="0,0" pivot="0.5,0.5" scale="-1,1" pkg="eg2y0ldp">
       <gearSize controller="c1" pages="1" values="365,168,-1,-1" default="365,168,-1,1"/>
     </image>
-    <image id="n55_jcej" name="n55" src="jcej4o" fileName="images/jjcdi_jjxian.png" xy="19,53" group="n60_jcej"/>
+    <image id="n55_jcej" name="n55" src="jcej4o" fileName="images/jjcdi_jjxian.png" xy="19,53" group="n60_jcej" pkg="eg2y0ldp"/>
     <text id="n56_jcej" name="n56" xy="20,8" size="152,42" group="n60_jcej" fontSize="30" color="#f8f1db" text="飞花令战力"/>
     <text id="n57_jcej" name="txtSuitScore" xy="20,60" size="122,31" group="n60_jcej" fontSize="22" color="#f8f1db" vars="true" text="搭配战力:{value=0}"/>
     <text id="n58_jcej" name="txtClickScore" xy="20,87" size="166,31" group="n60_jcej" fontSize="22" color="#f8f1db" vars="true" text="卓越点击战力:{value=0}"/>

+ 0 - 2
FGUIProject/assets/Arena/package.xml

@@ -149,8 +149,6 @@
     <component id="jcej4k" name="ListRankItem4.xml" path="/components/"/>
     <component id="jcej4m" name="ComAllScoreResult.xml" path="/components/"/>
     <component id="jcej4n" name="ComAllScore.xml" path="/components/"/>
-    <image id="jcej4o" name="jjcdi_jjxian.png" path="/images/"/>
-    <image id="jcej4p" name="jjcdi_jjcdi.png" path="/images/"/>
     <component id="jcej4q" name="ComFightScore.xml" path="/components/"/>
     <component id="v4614r" name="ListPartsItem.xml" path="/components/"/>
     <image id="v4614s" name="hz_xzyfxz.png" path="/components/"/>

+ 0 - 0
FGUIProject/assets/Arena/images/jjcdi_jjcdi.png → FGUIProject/assets/CommonGame/imagesNew/jjcdi_jjcdi.png


+ 0 - 0
FGUIProject/assets/Arena/images/jjcdi_jjxian.png → FGUIProject/assets/CommonGame/imagesNew/jjcdi_jjxian.png


+ 2 - 0
FGUIProject/assets/CommonGame/package.xml

@@ -368,6 +368,8 @@
     <image id="94m19t" name="kp_kuang_3.png" path="/imagesExport/" exported="true" scale="9grid" scale9grid="38,110,53,220"/>
     <image id="94m19w" name="kp_kuang_4.png" path="/imagesExport/" exported="true" scale="9grid" scale9grid="44,110,54,220"/>
     <image id="ofwutoc" name="card_jn_db.png" path="/imagesNew/" exported="true"/>
+    <image id="jcej4p" name="jjcdi_jjcdi.png" path="/imagesNew/" exported="true"/>
+    <image id="jcej4o" name="jjcdi_jjxian.png" path="/imagesNew/" exported="true"/>
   </resources>
   <publish name="" path="../GameClient/Assets/ResIn/UI/CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

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

@@ -12,7 +12,7 @@
     <remark page="1" value="选择题"/>
     <remark page="2" value="填空题"/>
   </controller>
-  <controller name="ctrlResult" pages="0,,1,,2,,3," selected="1">
+  <controller name="ctrlResult" pages="0,,1,,2,,3," selected="2">
     <remark page="1" value="有人答对题目"/>
     <remark page="2" value="没人答对题目"/>
     <remark page="3" value="全部题目答完"/>
@@ -64,12 +64,15 @@
     <text id="n17_pvb4" name="txtResult" xy="602,470" size="271,42" group="n19_pvb4" font="ui://eg2y0ldpa0cftks" fontSize="30" color="#b68f52" align="center" autoSize="none" text="" input="true" prompt="[color=#A7957E]点此输入答案[/color]">
       <gearDisplay controller="ctrlQuestionType" pages="2"/>
     </text>
+    <image id="n63_ofwu" name="imgFault" src="9jv665" fileName="images/lm_dt_tb_x.png" xy="830,458" group="n19_pvb4">
+      <gearDisplay controller="ctrlQuestionType" pages="2"/>
+    </image>
     <graph id="n62_t6j1" name="n62" xy="607,509" size="269,2" group="n19_pvb4" type="rect" lineSize="0" fillColor="#ffb68f52">
       <gearDisplay controller="ctrlQuestionType" pages="2"/>
     </graph>
-    <group id="n19_pvb4" name="n19" xy="360,470" size="516,43" group="n15_pvb4" advanced="true">
+    <group id="n19_pvb4" name="n19" xy="360,458" size="531,61" group="n15_pvb4" advanced="true">
       <gearDisplay controller="ctrlQuestionType" pages=""/>
-      <gearXY controller="ctrlHasIcon" pages="0,1" values="360,470|229,470"/>
+      <gearXY controller="ctrlHasIcon" pages="0,1" values="360,458|229,470"/>
     </group>
     <image id="n41_9jv6" name="n41" src="9jv65k" fileName="images/lm_dt_tsdb.png" xy="15,664" group="n42_9jv6"/>
     <text id="n40_9jv6" name="txtRightCount1" xy="58,667" size="184,41" group="n42_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="30" color="#915e15" align="center" letterSpacing="-2" ubb="true" vars="true" text="全员已答对[color=#AF5638]{value=0}[/color]题"/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueAnsweringUI.cs

@@ -22,6 +22,7 @@ namespace UI.League
         public GTextField m_txtContent;
         public GList m_listResult;
         public GTextInput m_txtResult;
+        public GImage m_imgFault;
         public GTextField m_txtRightCount1;
         public GLoader m_loaIocn;
         public UI_ComHeadIcon m_comRightHead;
@@ -96,6 +97,7 @@ namespace UI.League
             m_txtContent = (GTextField)comp.GetChild("txtContent");
             m_listResult = (GList)comp.GetChild("listResult");
             m_txtResult = (GTextInput)comp.GetChild("txtResult");
+            m_imgFault = (GImage)comp.GetChild("imgFault");
             m_txtRightCount1 = (GTextField)comp.GetChild("txtRightCount1");
             m_loaIocn = (GLoader)comp.GetChild("loaIocn");
             m_comRightHead = (UI_ComHeadIcon)UI_ComHeadIcon.Create(comp.GetChild("comRightHead"));
@@ -126,6 +128,7 @@ namespace UI.League
             m_txtContent = null;
             m_listResult = null;
             m_txtResult = null;
+            m_imgFault = null;
             m_txtRightCount1 = null;
             m_loaIocn = null;
             m_comRightHead.Dispose();

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/League/LeagueAnsweringView.cs

@@ -184,7 +184,7 @@ namespace GFGGame
             bool isAnswer = !string.IsNullOrEmpty(_dataManager.LastAnswerRoleData.MyAnswer) && _dataManager.LastAnswerRoleData.LastQuestionId == _dataManager.GetNumeriValue(LeagueNumericType.LeagueQuestionId);
             _ui.m_txtResult.text = isAnswer ? _dataManager.LastAnswerRoleData.MyAnswer : "";
             _ui.m_txtResult.enabled = !(isAnswer && _dataManager.LastAnswerRoleData.MyAnswer != questionCfg.answerCorrect);
-
+            _ui.m_imgFault.visible = isAnswer && _dataManager.LastAnswerRoleData.MyAnswer != questionCfg.answerCorrect;
             _ui.m_ctrlQuestionType.selectedIndex = questionCfg.type;
             if (questionCfg.type == 1)
             {
@@ -318,7 +318,9 @@ namespace GFGGame
             bool result = await LeagueSproxy.ReqAnswerQuestion(questionId, _ui.m_txtResult.text);
             if (result)
             {
+                LeagueQuestionCfg questionCfg = LeagueQuestionCfgArray.Instance.GetCfg(questionId);
                 _ui.m_txtResult.enabled = false;
+                _ui.m_imgFault.visible = _ui.m_txtResult.text != questionCfg.answerCorrect;
             }
         }
         private void RenderListJoinItem(int index, GObject obj)

BIN
GameClient/Assets/ResIn/UI/League/League_fui.bytes