Jelajahi Sumber

教程引导修改

lvjincheng 3 tahun lalu
induk
melakukan
63bd2d5e91

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

@@ -322,8 +322,8 @@ public class NewUserGuiderManager : MonoBehaviour
 
         config = new NewUserGuiderConfig();
         config.key = "地磁计校准-完成";
-        config.frameTipPivot = "rt";
-        config.frameTipText = "";
+        config.frameTipPivot = "rb";
+        // config.frameTipText = "";
         config.onPrepare = (g) => {
             g.SetCanvasSortOrder(DeviceCalibrateView.ins.GetComponent<Canvas>().sortingOrder + 1);
             RectTransform btn = DeviceCalibrateView.ins.transform.Find("BtnFinish") as RectTransform;
@@ -332,7 +332,10 @@ public class NewUserGuiderManager : MonoBehaviour
             g.config.hitPos = RectTransformUtils.GetPositionByPivot(btn, Vector2.one * 0.5f);
             g.config.pointerRotZ = 120;
             g.config.pointerPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(-0.2f, 1.2f));
-            g.frameTip.gameObject.SetActive(false);
+            g.config.frameTipPos = RectTransformUtils.GetPositionByPivot(btn, new Vector2(0, 1))
+                + RectTransformUtils.CanvasV3ToScreenV3(Vector3.left * 100 + Vector3.up * 50f, g.iconPointer);
+            g.FixFrameTipWidth(700);
+            g.SetMaskOpacity(0.7f);
         };
         config.onStart = (g) => {
             g.GetMaskClickedEvent().RemoveAllListeners();

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

@@ -58,6 +58,7 @@
     "new-user-guider_tip_弓箭详情": "点击<color=#FFA500>弓箭</color>,进入设备界面进行模块初始化。",
     "new-user-guider_tip_设备-陀螺仪校准": "将瞄准模块从智能弓箭上拆下,将其静置在一个平面上,\n再点击陀螺仪初始化。",
     "new-user-guider_tip_设备-地磁计校准": "将单独的瞄准模块沿着不同方向持续翻转,直到提示初始化完成为止。\n<color=#FFA500>注意:为了避免电子产品(手机等)对地磁计初始化的干扰,请在开始地磁计初始化前,将瞄准模块与手机等保持0.5米(半米)以上的距离。</color>",
+    "new-user-guider_tip_地磁计校准-完成": "瞄准模块已经初始化完成,请将瞄准模块重新装配到智能弓箭。",
     "new-user-guider_tip_查看设置": "点击<color=#FFA500>设置</color>了解更多",
     "new-user-guider_tip_查看商城": "点击查看<color=#FFA500>商城</color>",
     "new-user-guider_tip_切换好友/排行榜": "点击切换<color=#FFA500>好友/排行榜</color>",

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

@@ -58,6 +58,7 @@
     "new-user-guider_tip_弓箭详情": "Click the <color=#FFA500>arrow</color> to enter the device \ninterface for module initialization.",
     "new-user-guider_tip_设备-陀螺仪校准": "Remove the aiming module from the smart bow \nand place it on a plane, and 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_地磁计校准-完成": "The aiming module has been initialized. Please reassemble the aiming module to the smart bow.",
     "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>",