From 1920735efa719df8d49a711e5a7b9a6cb205e6bf Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Tue, 1 Jul 2025 23:00:57 +0800 Subject: [PATCH] gyro storyboards & localization --- VoidLink/Base.lproj/iPad.storyboard | 10 +- VoidLink/Base.lproj/iPhone.storyboard | 67 ++++++- VoidLink/Input/ControllerSupport.m | 1 - .../VoidLink v1.0.xcdatamodel/contents | 2 +- VoidLink/mul.lproj/iPad.xcstrings | 112 ++++++++++- VoidLink/mul.lproj/iPhone.xcstrings | 180 ++++++++++++++++++ 6 files changed, 356 insertions(+), 16 deletions(-) diff --git a/VoidLink/Base.lproj/iPad.storyboard b/VoidLink/Base.lproj/iPad.storyboard index e1222431..01d62c7c 100644 --- a/VoidLink/Base.lproj/iPad.storyboard +++ b/VoidLink/Base.lproj/iPad.storyboard @@ -467,7 +467,7 @@ - + @@ -1545,19 +1545,19 @@ - + - + - + - + diff --git a/VoidLink/Base.lproj/iPhone.storyboard b/VoidLink/Base.lproj/iPhone.storyboard index 6418cba4..06dc97cf 100644 --- a/VoidLink/Base.lproj/iPhone.storyboard +++ b/VoidLink/Base.lproj/iPhone.storyboard @@ -692,7 +692,7 @@ - + @@ -1004,6 +1004,27 @@ + + + + + + + + + + + + + + @@ -1429,10 +1450,38 @@ + + + + + + + + + + + + + + + + + + + + + - + @@ -1453,6 +1502,10 @@ + + + + @@ -1508,7 +1561,7 @@ - + @@ -1521,16 +1574,16 @@ - + - + - + - + diff --git a/VoidLink/Input/ControllerSupport.m b/VoidLink/Input/ControllerSupport.m index 7351bf45..aff83d3d 100644 --- a/VoidLink/Input/ControllerSupport.m +++ b/VoidLink/Input/ControllerSupport.m @@ -89,7 +89,6 @@ static const double MOUSE_SPEED_DIVISOR = 1.25; // No connected controller for this player return; } - [controller.leftTriggerMotor setMotorAmplitude:leftTrigger]; [controller.rightTriggerMotor setMotorAmplitude:rightTrigger]; } diff --git a/VoidLink/Limelight.xcdatamodeld/VoidLink v1.0.xcdatamodel/contents b/VoidLink/Limelight.xcdatamodeld/VoidLink v1.0.xcdatamodel/contents index a98415fb..16195857 100644 --- a/VoidLink/Limelight.xcdatamodeld/VoidLink v1.0.xcdatamodel/contents +++ b/VoidLink/Limelight.xcdatamodeld/VoidLink v1.0.xcdatamodel/contents @@ -30,7 +30,7 @@ - + diff --git a/VoidLink/mul.lproj/iPad.xcstrings b/VoidLink/mul.lproj/iPad.xcstrings index ee01fc15..511d32ec 100644 --- a/VoidLink/mul.lproj/iPad.xcstrings +++ b/VoidLink/mul.lproj/iPad.xcstrings @@ -232,6 +232,24 @@ "state" : "new", "value" : "Gyro Mode" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } } } }, @@ -310,6 +328,24 @@ "state" : "new", "value" : "Gyro Sensitivity" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } } } }, @@ -322,6 +358,24 @@ "state" : "new", "value" : "Off" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } } } }, @@ -334,17 +388,53 @@ "state" : "new", "value" : "Auto" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } } } }, "aa5-3y-I4d.segmentTitles[2]" : { - "comment" : "Class = \"UISegmentedControl\"; aa5-3y-I4d.segmentTitles[2] = \"Device\"; ObjectID = \"aa5-3y-I4d\";", + "comment" : "Class = \"UISegmentedControl\"; aa5-3y-I4d.segmentTitles[2] = \"Built-in\"; ObjectID = \"aa5-3y-I4d\";", "extractionState" : "extracted_with_value", "localizations" : { "en" : { "stringUnit" : { "state" : "new", - "value" : "Device" + "value" : "Built-in" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "内置" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "内置" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "needs_review", + "value" : "内置" } } } @@ -358,6 +448,24 @@ "state" : "new", "value" : "Controller" } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } } } }, diff --git a/VoidLink/mul.lproj/iPhone.xcstrings b/VoidLink/mul.lproj/iPhone.xcstrings index 2fbf5430..5c3cb079 100644 --- a/VoidLink/mul.lproj/iPhone.xcstrings +++ b/VoidLink/mul.lproj/iPhone.xcstrings @@ -1237,6 +1237,36 @@ } } }, + "Ecj-KO-Jim.text" : { + "comment" : "Class = \"UILabel\"; text = \"Gyro Sensitivity\"; ObjectID = \"Ecj-KO-Jim\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Gyro Sensitivity" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪灵敏度" + } + } + } + }, "eiL-iX-G3Z.text" : { "comment" : "Class = \"UILabel\"; text = \"test\"; ObjectID = \"eiL-iX-G3Z\";", "extractionState" : "extracted_with_value", @@ -1579,6 +1609,36 @@ } } }, + "jWW-mN-TwW.text" : { + "comment" : "Class = \"UILabel\"; text = \"Gyro Mode\"; ObjectID = \"jWW-mN-TwW\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Gyro Mode" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "陀螺仪" + } + } + } + }, "kva-gQ-CZh.text" : { "comment" : "Class = \"UILabel\"; text = \"test\"; ObjectID = \"kva-gQ-CZh\";", "extractionState" : "extracted_with_value", @@ -1897,6 +1957,126 @@ } } }, + "PIo-LV-9Gt.segmentTitles[0]" : { + "comment" : "Class = \"UISegmentedControl\"; PIo-LV-9Gt.segmentTitles[0] = \"Off\"; ObjectID = \"PIo-LV-9Gt\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Off" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "关闭" + } + } + } + }, + "PIo-LV-9Gt.segmentTitles[1]" : { + "comment" : "Class = \"UISegmentedControl\"; PIo-LV-9Gt.segmentTitles[1] = \"Auto\"; ObjectID = \"PIo-LV-9Gt\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Auto" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "自动" + } + } + } + }, + "PIo-LV-9Gt.segmentTitles[2]" : { + "comment" : "Class = \"UISegmentedControl\"; PIo-LV-9Gt.segmentTitles[2] = \"Built-in\"; ObjectID = \"PIo-LV-9Gt\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Built-in" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "内置" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "内置" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "内置" + } + } + } + }, + "PIo-LV-9Gt.segmentTitles[3]" : { + "comment" : "Class = \"UISegmentedControl\"; PIo-LV-9Gt.segmentTitles[3] = \"Controller\"; ObjectID = \"PIo-LV-9Gt\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Controller" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "手柄" + } + } + } + }, "qPQ-U2-aSg.text" : { "comment" : "Class = \"UILabel\"; text = \"test\"; ObjectID = \"qPQ-U2-aSg\";", "extractionState" : "extracted_with_value",