Bladeren bron

修改提示和优化引导流程

slambb 11 maanden geleden
bovenliggende
commit
9cffa63b2c

+ 2 - 2
Assets/BowArrow/Modules/InfraredGuider/InfraredGuider.prefab

@@ -4190,7 +4190,7 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_text: "\u5355\u51FB\u8BBE\u5907\u4E0A\u7684\u6309\u952E\uFF0C\u8FD9\u662F\u8FDB\u5165\u51C6\u5FC3\u8C03\u6574\u754C\u9762\u7684\u5F00/\u5173\uFF0C\\n\u8BF7\u5355\u51FB\u4E24\u6B21\uFF08\u95F4\u9694\u4E00\u79D2\uFF09\u3002"
+  m_text: "\u5355\u51FB\u8BBE\u5907\u4E0A\u7684\u6309\u952E <sprite=0>\uFF0C\u8FDB\u5165\u51C6\u5FC3\u8C03\u6574\u754C\u9762\u7684\u5F00/\u5173\uFF0C\\n\u8BF7\u5355\u51FB\u4E24\u6B21\uFF08\u95F4\u9694\u4E00\u79D2\uFF09\u3002"
   m_isRightToLeft: 0
   m_fontAsset: {fileID: 11400000, guid: bbcfb1567bce0b641adc9310d760d234, type: 2}
   m_sharedMaterial: {fileID: -8666424993308654677, guid: bbcfb1567bce0b641adc9310d760d234, type: 2}
@@ -4229,7 +4229,7 @@ MonoBehaviour:
   m_textAlignment: 65535
   m_characterSpacing: 0
   m_wordSpacing: 0
-  m_lineSpacing: 0
+  m_lineSpacing: 31
   m_lineSpacingMax: 0
   m_paragraphSpacing: 0
   m_charWidthMaxAdj: 0

+ 1 - 1
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/cn.json

@@ -592,7 +592,7 @@
    红外连接后游戏射击页面
   **/
   "TopTip_CrossHair": "单击模块上的 <sprite=0> 按键,这是进入准心调整界面的开/关,\n请单击两次(间隔一秒)。",
-  "TopTip_CrossHairPro": "单击设备上的按键,这是进入准心调整界面的开/关,\n请单击两次(间隔一秒)。",
+  "TopTip_CrossHairPro": "单击设备上的按键 <sprite=0>,进入准心调整界面的开/关,\n请单击两次(间隔一秒)。",
   "TopTip_CrossHairGunPro": "取出弹夹模块,单击其上的按键,这是进入准心\n调整界面的开/关,请单击两次(间隔一秒)。",
   "TopTip_ARTEMISPro": " 双击设备上的按键,之后用正常的拉弓姿势,\n以箭筒头部瞄准靶心,10秒后准心会移动到靶心,完成准心校准。",
   "TopTip_GunPro": "取出弹夹模块,双击其上的按键进行准心校准,快速装回弹夹后,\n用三点一线的射击姿势瞄准靶心,{0}秒后准心会移动到靶心,完成准心校准。",

+ 1 - 1
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/en.json

@@ -640,7 +640,7 @@
    红外连接后游戏射击页面
   **/
   "TopTip_CrossHair": "Click the <sprite=0> button on the module to enter the center adjustment \n interface. Please click twice (with an interval of one second)",
-  "TopTip_CrossHairPro": "Click the button on the device. This toggles the crosshair adjustment interface on/off.Please click twice (with an interval of one second).",
+  "TopTip_CrossHairPro": "Click the button on the device <sprite=0> to toggle the crosshair adjustment interface on/off. Please click twice with a one-second interval.",
   "TopTip_CrossHairGunPro": "Remove the magazine module and click the button on it. This is the on/off button to enter the alignment adjustment interface. Please click twice (with an interval of one second)",
   "TopTip_ARTEMISPro": "Double-click the button on the device, then assume a normal bow-drawing posture. Aim the arrowhead at the target center, and after 10 seconds, the crosshair will move to the target center, completing the crosshair calibration.",
   "TopTip_GunPro": "Remove the magazine module and double-click the button on it to calibrate the crosshair. Quickly reinsert the magazine, then aim at the target center using a three-point shooting posture. After {0} seconds, the crosshair will move to the target center, completing the crosshair calibration.",

+ 20 - 2
Assets/SmartBow/Scripts/Views/InfraredViewParts/InfraredScreenPositioningView.cs

@@ -544,6 +544,9 @@ public class InfraredScreenPositioningView : JCUnityLib.ViewBase
         infraredDemo.ResetCenterOffset();
         //清除白线数据
         infraredDemo.ResetPositioningData();
+        //上面应该清空了 ScreenLocate.Main.ScreenIdentification.QuadAuto
+        onClearCurrentUILineGenerator();
+
         SetScreenPositioningStepState(ScreenPositioningStep.Start);
     }
     /// <summary>
@@ -565,7 +568,9 @@ public class InfraredScreenPositioningView : JCUnityLib.ViewBase
     /// </summary>
     public void OnClick_BackByScreenPositioningStep()
     {
-        SetScreenPositioningStepState(ScreenPositioningStep.Marker);
+        SetScreenPositioningStepState(ScreenPositioningStep.LightCtrl);
+        //清空两个绘制线
+        onClearSuccessfullLineGenerator();
         //if(perStepView == ScreenPositioningStep.Manual)
         //    SetScreenPositioningStepState(ScreenPositioningStep.Manual);
         //else
@@ -684,7 +689,20 @@ public class InfraredScreenPositioningView : JCUnityLib.ViewBase
             Debug.LogError("screenSemiAuto 不存在!");
         }
     }
-
+    /// <summary>
+    /// 清空白线数据
+    /// </summary>
+    void onClearCurrentUILineGenerator() {
+        if (CurrentUILineGenerator.Points.Length != 0) CurrentUILineGenerator.Points = new Vector2[0];//System.Array.Clear(CurrentUILineGenerator.Points, 0, CurrentUILineGenerator.Points.Length);
+    }
+    /// <summary>
+    /// 清空最后识别的两个自动和半自动数据线
+    /// </summary>
+    void onClearSuccessfullLineGenerator()
+    {
+        if(FirstUILineGenerator.Points.Length !=0) FirstUILineGenerator.Points = new Vector2[0]; //System.Array.Clear(FirstUILineGenerator.Points, 0, FirstUILineGenerator.Points.Length);
+        if (SecondUILineGenerator.Points.Length !=0) SecondUILineGenerator.Points = new Vector2[0];  //System.Array.Clear(SecondUILineGenerator.Points, 0, SecondUILineGenerator.Points.Length);
+    }
     #region 绘制线段部分