Browse Source

教程内容修改

lvjincheng 3 năm trước cách đây
mục cha
commit
b6a3e70d65

+ 8 - 0
Assets/BowArrow/Modules/NewUserGuider/NewUserGuider.cs

@@ -187,4 +187,12 @@ public class NewUserGuider : MonoBehaviour
     {
         transform.Find("BtnSkip").gameObject.SetActive(value);
     }
+
+    public void FixFrameTipWidth(float width)
+    {
+        frameTip.GetComponent<ContentSizeFitter>().horizontalFit = ContentSizeFitter.FitMode.Unconstrained;
+        Vector2 size = frameTip.sizeDelta;
+        size.x = width;
+        frameTip.sizeDelta = size;
+    }
 }

+ 6 - 5
Assets/BowArrow/Modules/NewUserGuider/NewUserGuiderManager.cs

@@ -249,7 +249,7 @@ public class NewUserGuiderManager : MonoBehaviour
 
         config = new NewUserGuiderConfig();
         config.key = "设备-地磁计校准";
-        config.frameTipPivot = "rt";
+        config.frameTipPivot = "rb";
         config.onPrepare = (g) => {
             if (!DeviceView.ins) {
                 g.customPreparePass = false;
@@ -262,10 +262,11 @@ public class NewUserGuiderManager : MonoBehaviour
             // g.hollowOutMask.isTargetRectCanThrough = false;
             g.SetIconPointerHitOpacity(0.8f);
             g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.one * 0.5f);
-            g.config.pointerRotZ = 180;
-            g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(-0.1f, 0.2f));
-            g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.3f, 0))
-                + RectTransformUtils.CanvasV3ToScreenV3(Vector3.down * 45f, g.iconPointer);
+            g.config.pointerRotZ = 210;
+            g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0.3f, -1));
+            g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(-0.1f, 0))
+                + RectTransformUtils.CanvasV3ToScreenV3(Vector3.down * 220f, g.iconPointer);
+            g.FixFrameTipWidth(930);
         };
         config.onStart = (g) => {
             g.GetMaskClickedEvent().RemoveAllListeners();

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

@@ -52,8 +52,8 @@
     "new-user-guider_tip_模块开机": "长按模块上的<color=#FFA500>“开机”</color>键,当绿灯闪\n烁时,即模块处于等待连接的状态。",
     "new-user-guider_tip_连接设备": "点击<color=#FFA500>“连接”</color>等待设备提示连接成功,\n此时模块是绿灯常亮的状态。",
     "new-user-guider_tip_弓箭详情": "点击<color=#FFA500>弓箭</color>,进入设备界面进行模块初始化。",
-    "new-user-guider_tip_设备-陀螺仪校准": "将安装了模块的智能弓箭<color=#FFA500>静置在一个平面上</color>,\n再点击陀螺仪初始化。",
-    "new-user-guider_tip_设备-地磁计校准": "将安装了模块的智能弓箭<color=#FFA500>沿着不同方向持续翻转</color>,\n直到提示初始化完成为止。",
+    "new-user-guider_tip_设备-陀螺仪校准": "将瞄准模块从智能弓箭上拆下,将其静置在一个平面上,\n再点击陀螺仪初始化。",
+    "new-user-guider_tip_设备-地磁计校准": "将单独的瞄准模块沿着不同方向持续翻转,直到提示初始化完成为止。\n<color=#FFA500>注意:为了避免电子产品(手机等)对地磁计初始化的干扰,请在开始地磁计初始化前,将瞄准模块与手机等保持0.5米(半米)以上的距离。</color>",
     "new-user-guider_tip_查看设置": "点击<color=#FFA500>设置</color>了解更多",
     "new-user-guider_tip_查看商城": "点击查看<color=#FFA500>商城</color>",
     "new-user-guider_tip_切换好友/排行榜": "点击切换<color=#FFA500>好友/排行榜</color>",

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

@@ -52,8 +52,8 @@
     "new-user-guider_tip_模块开机": "Press and hold the <color=#FFA500>\"Power on\"</color> \nkey on the module, and when \nthe green light flashes, the \nmodule is in the state of \nwaiting for connection.",
     "new-user-guider_tip_连接设备": "Click <color=#FFA500>\"Connect\"</color> and wait for the device \nto prompt that the connection is \nsuccessful. At this time, the module \nis in the green state.",
     "new-user-guider_tip_弓箭详情": "Click the <color=#FFA500>arrow</color> to enter the device \ninterface for module initialization.",
-    "new-user-guider_tip_设备-陀螺仪校准": "Place the smart bow with the module <color=#FFA500>installed \non a plane</color>, and then click Gyr Init.",
-    "new-user-guider_tip_设备-地磁计校准": "Turn the smart bow and arrow with the module \n<color=#FFA500>installed in different directions</color> until it prompts \nthat the initialization is completed.",
+    "new-user-guider_tip_设备-陀螺仪校准": "Remove the aiming module from the smart bow \nand place it on a plane, \nand then click Gyr Init.",
+    "new-user-guider_tip_设备-地磁计校准": "Turn the individual aiming module continuously in different directions until it prompts that the initialization is completed. \n<color=#FFA500>Note: In order to avoid the interference of electronic products (mobile phones, etc.) on the initialization of the magnetometer, please keep the aiming module at a distance of more than 0.5 meters (half meters) from the mobile phone, etc. before starting the initialization of the magnetometer.</color>",
     "new-user-guider_tip_查看设置": "Click <color=#FFA500>SetUp</color> to learn more",
     "new-user-guider_tip_查看商城": "Click to view the <color=#FFA500>Shop</color>",
     "new-user-guider_tip_切换好友/排行榜": "Click to switch <color=#FFA500>friend/rand</color>",