Adds “Experimental Features” section to SettingsViewController
This commit is contained in:
parent
14adb41ff8
commit
20749c5419
@ -506,6 +506,26 @@
|
|||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
</cells>
|
</cells>
|
||||||
</tableViewSection>
|
</tableViewSection>
|
||||||
|
<tableViewSection headerTitle="Advanced" footerTitle="Test out new features that have been added by contributors." id="EzW-IN-YAf" userLabel="Experimental Features">
|
||||||
|
<cells>
|
||||||
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="Cell" textLabel="Hl1-if-S1K" style="IBUITableViewCellStyleDefault" id="8fe-ab-zkf">
|
||||||
|
<rect key="frame" x="0.0" y="1588" width="375" height="44"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="8fe-ab-zkf" id="Py0-GQ-Z36">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="356.5" height="44"/>
|
||||||
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
|
<subviews>
|
||||||
|
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Experimental Features" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Hl1-if-S1K">
|
||||||
|
<rect key="frame" x="8" y="0.0" width="340.5" height="44"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
</subviews>
|
||||||
|
</tableViewCellContentView>
|
||||||
|
</tableViewCell>
|
||||||
|
</cells>
|
||||||
|
</tableViewSection>
|
||||||
<tableViewSection headerTitle="Patreon" footerTitle="Receive early access to new features and more by becoming a patron." id="QvT-Yt-oP1">
|
<tableViewSection headerTitle="Patreon" footerTitle="Receive early access to new features and more by becoming a patron." id="QvT-Yt-oP1">
|
||||||
<cells>
|
<cells>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="Cell" textLabel="faT-qa-JP0" style="IBUITableViewCellStyleDefault" id="4it-3L-j8P">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="Cell" textLabel="faT-qa-JP0" style="IBUITableViewCellStyleDefault" id="4it-3L-j8P">
|
||||||
|
|||||||
@ -25,6 +25,7 @@ private extension SettingsViewController
|
|||||||
case syncing
|
case syncing
|
||||||
case hapticTouch
|
case hapticTouch
|
||||||
case cores
|
case cores
|
||||||
|
case advanced
|
||||||
case patreon
|
case patreon
|
||||||
case credits
|
case credits
|
||||||
}
|
}
|
||||||
@ -287,6 +288,12 @@ private extension SettingsViewController
|
|||||||
let hostingController = ContributorsView.makeViewController()
|
let hostingController = ContributorsView.makeViewController()
|
||||||
self.navigationController?.pushViewController(hostingController, animated: true)
|
self.navigationController?.pushViewController(hostingController, animated: true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func showExperimentalFeatures()
|
||||||
|
{
|
||||||
|
let hostingController = ExperimentalFeaturesView.makeViewController()
|
||||||
|
self.navigationController?.pushViewController(hostingController, animated: true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private extension SettingsViewController
|
private extension SettingsViewController
|
||||||
@ -386,7 +393,7 @@ extension SettingsViewController
|
|||||||
let preferredCore = Settings.preferredCore(for: .ds)
|
let preferredCore = Settings.preferredCore(for: .ds)
|
||||||
cell.detailTextLabel?.text = preferredCore?.metadata?.name.value ?? preferredCore?.name ?? NSLocalizedString("Unknown", comment: "")
|
cell.detailTextLabel?.text = preferredCore?.metadata?.name.value ?? preferredCore?.name ?? NSLocalizedString("Unknown", comment: "")
|
||||||
|
|
||||||
case .controllerOpacity, .gameAudio, .hapticFeedback, .hapticTouch, .patreon, .credits: break
|
case .controllerOpacity, .gameAudio, .hapticFeedback, .hapticTouch, .advanced, .patreon, .credits: break
|
||||||
}
|
}
|
||||||
|
|
||||||
return cell
|
return cell
|
||||||
@ -403,6 +410,7 @@ extension SettingsViewController
|
|||||||
case .controllerSkins: self.performSegue(withIdentifier: Segue.controllerSkins.rawValue, sender: cell)
|
case .controllerSkins: self.performSegue(withIdentifier: Segue.controllerSkins.rawValue, sender: cell)
|
||||||
case .cores: self.performSegue(withIdentifier: Segue.dsSettings.rawValue, sender: cell)
|
case .cores: self.performSegue(withIdentifier: Segue.dsSettings.rawValue, sender: cell)
|
||||||
case .controllerOpacity, .gameAudio, .hapticFeedback, .hapticTouch, .syncing: break
|
case .controllerOpacity, .gameAudio, .hapticFeedback, .hapticTouch, .syncing: break
|
||||||
|
case .advanced: self.showExperimentalFeatures()
|
||||||
case .patreon:
|
case .patreon:
|
||||||
let patreonURL = URL(string: "altstore://patreon")!
|
let patreonURL = URL(string: "altstore://patreon")!
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user