update default widget profiles
This commit is contained in:
1 parent
3fd0c1b397
commit
b49f4a6891
6 files changed
+35
-2
No files matched your search
@@ -287,7 +287,8 @@ static CGRect layoutViewBounds;
|
|||||||
// NSString* persistedKey = @"widgetProfileUpdated-20251015";
|
// NSString* persistedKey = @"widgetProfileUpdated-20251015";
|
||||||
// NSString* persistedKey = @"widgetProfileUpdated-20260322";
|
// NSString* persistedKey = @"widgetProfileUpdated-20260322";
|
||||||
// NSString* persistedKey = @"widgetProfileUpdated-20260413-2";
|
// 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;
|
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
|
||||||
|
|
||||||
if(profiles.count == 0 || needImportDefaultTemplates){
|
if(profiles.count == 0 || needImportDefaultTemplates){
|
||||||
|
|||||||
@@ -1696,7 +1696,7 @@ import ObjectiveC.runtime
|
|||||||
self.stickWheelAxis = GraphicUtils.makeSVGLayer(from: "StickWheelAxis-0.75", in: self.layer, targetSize: axisSize)
|
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))
|
GraphicUtils.changeColor(layer: self.stickWheelAxis, color: UIColor(white: 1, alpha: 0.5))
|
||||||
self.layer.addSublayer(self.stickWheelAxis)
|
self.layer.addSublayer(self.stickWheelAxis)
|
||||||
self.stickWheelAxis.isHidden = !OnScreenWidgetView.editMode
|
self.stickWheelAxis.isHidden = false
|
||||||
}
|
}
|
||||||
|
|
||||||
setupMovementThresholdPreviewLayersIfNeeded()
|
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" : {
|
"=map" : {
|
||||||
"extractionState" : "manual",
|
"extractionState" : "manual",
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
+3
@@ -1936,6 +1936,9 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg
|
|||||||
}
|
}
|
||||||
if let selectedControllerLayer, controllerLayerSelected {
|
if let selectedControllerLayer, controllerLayerSelected {
|
||||||
layoutOSC.resizeControllerLayer(with: selectedControllerLayer, and: CGFloat(sender.value))
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user