gyro storyboards & localization

This commit is contained in:
TrueZhuanjia
2025-07-01 23:00:57 +08:00
parent 7370fa5c94
commit 1920735efa
6 changed files with 356 additions and 16 deletions
+5 -5
View File
@@ -467,7 +467,7 @@
<segments>
<segment title="Off"/>
<segment title="Auto"/>
<segment title="Device"/>
<segment title="Built-in"/>
<segment title="Controller"/>
</segments>
<color key="tintColor" red="0.6716768742" green="0.61711704730000005" blue="0.99902987480000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
@@ -1545,19 +1545,19 @@
<image name="tray.full.fill" catalog="system" width="128" height="88"/>
<image name="video.and.waveform" catalog="system" width="128" height="94"/>
<systemColor name="linkColor">
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemBrownColor">
<color red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.63529411764705879" green="0.51764705882352946" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGray3Color">
<color red="0.78039215689999997" green="0.78039215689999997" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.7803921568627451" green="0.7803921568627451" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemTealColor">
<color red="0.18823529410000001" green="0.69019607839999997" blue="0.78039215689999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.18823529411764706" green="0.69019607843137254" blue="0.7803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
+60 -7
View File
@@ -692,7 +692,7 @@
<viewControllerLayoutGuide type="bottom" id="gDc-PK-wuq"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Xq6-9l-Oey" customClass="UIScrollView">
<rect key="frame" x="0.0" y="0.0" width="682" height="2500"/>
<rect key="frame" x="0.0" y="0.0" width="1200" height="2500"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="sbK-BT-6rK" userLabel="Resolutionstak">
@@ -1004,6 +1004,27 @@
<constraint firstAttribute="width" constant="380" id="4p3-jl-xK3"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="Nd5-0L-wpv" userLabel="gyroSensitivityStack">
<rect key="frame" x="472" y="744" width="380" height="56.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Gyro Sensitivity" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Ecj-KO-Jim">
<rect key="frame" x="0.0" y="0.0" width="380" height="18.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" red="0.81533776120000001" green="0.85979419950000002" blue="0.91372549020000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<slider opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="100" minValue="0.0" maxValue="300" id="mHC-z4-AWQ" userLabel="mousePointerVelocityFactor">
<rect key="frame" x="-2" y="23.5" width="384" height="34"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" systemColor="linkColor"/>
</slider>
</subviews>
<constraints>
<constraint firstAttribute="width" constant="380" id="qq3-E8-EVz"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="WvX-8P-JC1" userLabel="onScreenWidget Stack">
<rect key="frame" x="16" y="808" width="380" height="56.5"/>
<subviews>
@@ -1429,10 +1450,38 @@
</switch>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" ambiguous="YES" axis="vertical" spacing="5" translatesAutoresizingMaskIntoConstraints="NO" id="5Ep-SA-IBh" userLabel="gyroModeStack">
<rect key="frame" x="472" y="823" width="380" height="56.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Gyro Mode" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="jWW-mN-TwW">
<rect key="frame" x="0.0" y="0.0" width="380" height="20.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="tintColor" red="0.81533776120000001" green="0.85979419950000002" blue="0.91372549020000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="1" id="PIo-LV-9Gt" userLabel="gyroModeSelector">
<rect key="frame" x="0.0" y="25.5" width="380" height="32"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<segments>
<segment title="Off"/>
<segment title="Auto"/>
<segment title="Built-in"/>
<segment title="Controller"/>
</segments>
<color key="tintColor" red="0.6716768742" green="0.61711704730000005" blue="0.99902987480000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="selectedSegmentTintColor" systemColor="linkColor"/>
</segmentedControl>
</subviews>
<constraints>
<constraint firstAttribute="width" constant="380" id="h77-JM-Vfq"/>
</constraints>
</stackView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<size key="freeformSize" width="682" height="2500"/>
<size key="freeformSize" width="1200" height="2500"/>
<connections>
<outlet property="HdrStack" destination="kFw-d7-BTn" id="3aT-Gh-bDO"/>
<outlet property="audioOnPcStack" destination="aud-Zf-37T" id="58Y-ri-ILs"/>
@@ -1453,6 +1502,10 @@
<outlet property="framePacingSelector" destination="F2F-TK-tyR" id="iX6-vT-AtQ"/>
<outlet property="framepacingStack" destination="l8f-LT-K1a" id="D4a-Pw-8zs"/>
<outlet property="framerateSelector" destination="dAN-Gy-Eg7" id="tMv-Va-PhO"/>
<outlet property="gyroModeSelector" destination="PIo-LV-9Gt" id="6Mc-5v-dmJ"/>
<outlet property="gyroModeStack" destination="5Ep-SA-IBh" id="2qw-Sb-8O6"/>
<outlet property="gyroSensitivitySlider" destination="mHC-z4-AWQ" id="GHN-po-QYw"/>
<outlet property="gyroSensitivityStack" destination="Nd5-0L-wpv" id="Qo0-Z3-gkm"/>
<outlet property="hdrSwitch" destination="Kgb-YU-AFW" id="ksG-A4-HhS"/>
<outlet property="liftStreamViewForKeyboardSelector" destination="TJx-6E-kgr" id="KnL-15-Q6G"/>
<outlet property="liftStreamViewForKeyboardStack" destination="mgf-RQ-AVP" id="xH0-F0-dth"/>
@@ -1508,7 +1561,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iqb-Sd-6g2" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1158" y="998"/>
<point key="canvasLocation" x="-3268" y="1032"/>
</scene>
</scenes>
<resources>
@@ -1521,16 +1574,16 @@
<image name="trash.fill" catalog="system" width="117" height="128"/>
<image name="tray.full.fill" catalog="system" width="128" height="88"/>
<systemColor name="linkColor">
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBrownColor">
<color red="0.63529411764705879" green="0.51764705882352946" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemGray2Color">
<color red="0.68235294117647061" green="0.68235294117647061" blue="0.69803921568627447" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.68235294120000001" green="0.68235294120000001" blue="0.69803921570000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemTealColor">
<color red="0.18823529411764706" green="0.69019607843137254" blue="0.7803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.18823529410000001" green="0.69019607839999997" blue="0.78039215689999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
-1
View File
@@ -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];
}
@@ -30,7 +30,7 @@
<attribute name="externalDisplayMode" optional="YES" attributeType="Integer 16" defaultValueString="1" usesScalarValueType="NO" syncable="YES"/>
<attribute name="framerate" attributeType="Integer 32" defaultValueString="60" usesScalarValueType="NO" syncable="YES"/>
<attribute name="gyroMode" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="gyroSensitivity" optional="YES" attributeType="Float" defaultValueString="0.5" usesScalarValueType="NO" syncable="YES"/>
<attribute name="gyroSensitivity" optional="YES" attributeType="Float" defaultValueString="1" usesScalarValueType="NO" syncable="YES"/>
<attribute name="height" attributeType="Integer 32" defaultValueString="720" usesScalarValueType="NO" syncable="YES"/>
<attribute name="keyboardToggleFingers" optional="YES" attributeType="Integer 16" defaultValueString="3" usesScalarValueType="NO" syncable="YES"/>
<attribute name="liftStreamViewForKeyboard" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES" syncable="YES"/>
+110 -2
View File
@@ -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" : "手柄"
}
}
}
},
+180
View File
@@ -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",