- widget template editing code
- widgetPickerView fixes
This commit is contained in:
1 parent
68ee5d879b
commit
49431b5eba
2 files changed
+11
-9
No files matched your search
+10
@@ -1173,6 +1173,16 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg
|
|||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func saveTapped(_ sender: Any?) {
|
@IBAction func saveTapped(_ sender: Any?) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
let targetProfile = profilesManager.getAllProfiles()[0]
|
||||||
|
let currentProfile = profilesManager.getSelectedProfile()
|
||||||
|
// currentProfile.name = "RPG游戏示例 / RPG example (ZZZ in Genshin style)"
|
||||||
|
currentProfile.name = "Default"
|
||||||
|
//currentProfile.name = "Default";
|
||||||
|
// profilesManager.replace(targetProfile as! OSCProfile, with: currentProfile)
|
||||||
|
*/
|
||||||
|
|
||||||
clearSickInput()
|
clearSickInput()
|
||||||
OSCProfilesManager.setLayoutViewBounds(view.bounds)
|
OSCProfilesManager.setLayoutViewBounds(view.bounds)
|
||||||
let success = profilesManager.updateSelectedProfile(layoutOSC.oscButtonLayerPool)
|
let success = profilesManager.updateSelectedProfile(layoutOSC.oscButtonLayerPool)
|
||||||
|
|||||||
@@ -1704,15 +1704,7 @@ struct WidgetPickerView: View {
|
|||||||
showsComboModeControl ||
|
showsComboModeControl ||
|
||||||
showsIntervalSlider ||
|
showsIntervalSlider ||
|
||||||
showsShapeControl
|
showsShapeControl
|
||||||
if !hasVisibleConfigurationSection {
|
return !hasVisibleConfigurationSection
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
let isSinglePadSelection = poolItems.count == 1 && isPad(poolItems[0])
|
|
||||||
let isSingleButtonThenSinglePadSelection =
|
|
||||||
poolItems.count == 2 && !isPad(poolItems[0]) && isPad(poolItems[1])
|
|
||||||
|
|
||||||
return isSinglePadSelection || isSingleButtonThenSinglePadSelection
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private func prepareCreateWidgetDefaults(for submissionAction: WidgetPickerSubmissionAction) {
|
private func prepareCreateWidgetDefaults(for submissionAction: WidgetPickerSubmissionAction) {
|
||||||
|
|||||||
Reference in new issue
Block a user