Skip to content
Snippets Groups Projects
Commit beffde5a authored by lukasWoyke's avatar lukasWoyke
Browse files

Renamed pauseButton to quitButton.

parent a604ef4f
No related branches found
No related tags found
2 merge requests!62Fix master,!60Code cleanup lukas fix
......@@ -42,11 +42,11 @@
<color key="titleColor" red="0.2357714772" green="0.28487256170000003" blue="0.36079549789999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
<connections>
<action selector="pauseExtraBtnTapped:" destination="BV1-FR-VrT" eventType="touchUpInside" id="DjA-vJ-5HL"/>
<action selector="quitButton:" destination="BV1-FR-VrT" eventType="touchUpInside" id="ieu-hf-qFV"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pdu-Ii-8P6" customClass="SpinnerView" customModule="Better_Together" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="896" height="414"/>
<view contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="pdu-Ii-8P6" customClass="SpinnerView" customModule="Better_Together" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="776" height="414"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</subviews>
......
......@@ -207,8 +207,7 @@ class GameViewController: UIViewController, LocalTeamPlayDelegate {
}
}
@IBAction func pauseExtraBtnTapped(_ sender: UIButton) {
@IBAction func quitButton(_ sender: UIButton) {
let alert = UIAlertController(title: "Sure you want to leave the game?", message: nil, preferredStyle: .alert)
let cancel = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
let exit = UIAlertAction(title: "Exit", style: .destructive, handler: { _ in self.exitGame() })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment