update default widget profiles

This commit is contained in:
True Zhuanjia
2026-05-13 22:52:11 +08:00
parent 3fd0c1b397
commit b49f4a6891
6 changed files with 35 additions and 2 deletions
@@ -287,7 +287,8 @@ static CGRect layoutViewBounds;
// NSString* persistedKey = @"widgetProfileUpdated-20251015";
// NSString* persistedKey = @"widgetProfileUpdated-20260322";
// NSString* persistedKey = @"widgetProfileUpdated-20260413-2";
NSString* persistedKey = @"widgetProfileUpdated-20260430-1";
// NSString* persistedKey = @"widgetProfileUpdated-20260430-1";
NSString* persistedKey = @"widgetProfileUpdated-20260513-1";
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
if(profiles.count == 0 || needImportDefaultTemplates){
+1 -1
View File
@@ -1696,7 +1696,7 @@ import ObjectiveC.runtime
self.stickWheelAxis = GraphicUtils.makeSVGLayer(from: "StickWheelAxis-0.75", in: self.layer, targetSize: axisSize)
GraphicUtils.changeColor(layer: self.stickWheelAxis, color: UIColor(white: 1, alpha: 0.5))
self.layer.addSublayer(self.stickWheelAxis)
self.stickWheelAxis.isHidden = !OnScreenWidgetView.editMode
self.stickWheelAxis.isHidden = false
}
setupMovementThresholdPreviewLayersIfNeeded()
@@ -1156,6 +1156,35 @@
}
}
},
"=legacyOSCTip" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "A demo of legacy on-screen controls inherited from moonlight-zwm replaced by better on-screen widgets"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "Moonlight-ZWM旧版虚拟手柄陈列布局:已由更强大的屏显控件替代。"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "Moonlight-ZWM 舊版虛擬手把陳列佈局:已由更強大的螢幕控制項取代。"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "Moonlight-ZWM 舊版虛擬手把陳列佈局:已由更強大的螢幕控制項取代。"
}
}
}
},
"=map" : {
"extractionState" : "manual",
"localizations" : {
Binary file not shown.
Binary file not shown.
@@ -1936,6 +1936,9 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg
}
if let selectedControllerLayer, controllerLayerSelected {
layoutOSC.resizeControllerLayer(with: selectedControllerLayer, and: CGFloat(sender.value))
widgetSizeLabel.text = LocalizationHelper.localizedString(forKey: "Size: %.2f", sender.value)
widgetHeightLabel.text = LocalizationHelper.localizedString(forKey: "Height: %.2f", sender.value)
widgetHeightSlider.value = sender.value
}
}