diff --git a/Pendu/Assets.xcassets/humain1.imageset/Contents.json b/Pendu/Assets.xcassets/humain1.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..b3c8bc084748ac03dcc71c67ab3fde8b7101b00c --- /dev/null +++ b/Pendu/Assets.xcassets/humain1.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain1.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain1.imageset/humain1.png b/Pendu/Assets.xcassets/humain1.imageset/humain1.png new file mode 100644 index 0000000000000000000000000000000000000000..7b2e123d8b032995835232cc1c2b17b25d130041 Binary files /dev/null and b/Pendu/Assets.xcassets/humain1.imageset/humain1.png differ diff --git a/Pendu/Assets.xcassets/humain2.imageset/Contents.json b/Pendu/Assets.xcassets/humain2.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..7645645c77b4ac600e98cfeb703699ea5d4ab592 --- /dev/null +++ b/Pendu/Assets.xcassets/humain2.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain2.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain2.imageset/humain2.png b/Pendu/Assets.xcassets/humain2.imageset/humain2.png new file mode 100644 index 0000000000000000000000000000000000000000..fc52d3006f64976de511adce0c014870426a2b9b Binary files /dev/null and b/Pendu/Assets.xcassets/humain2.imageset/humain2.png differ diff --git a/Pendu/Assets.xcassets/humain3.imageset/Contents.json b/Pendu/Assets.xcassets/humain3.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..63d4d18cac1d3bd2d517f8f3f92a643ee7fc766a --- /dev/null +++ b/Pendu/Assets.xcassets/humain3.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain3.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain3.imageset/humain3.png b/Pendu/Assets.xcassets/humain3.imageset/humain3.png new file mode 100644 index 0000000000000000000000000000000000000000..bbb37133d1c0cbf2e96ec895902a27224be90637 Binary files /dev/null and b/Pendu/Assets.xcassets/humain3.imageset/humain3.png differ diff --git a/Pendu/Assets.xcassets/humain4.imageset/Contents.json b/Pendu/Assets.xcassets/humain4.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..f8f04b060ed211575986eb5b3f0f23fd28bdce8b --- /dev/null +++ b/Pendu/Assets.xcassets/humain4.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain4.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain4.imageset/humain4.png b/Pendu/Assets.xcassets/humain4.imageset/humain4.png new file mode 100644 index 0000000000000000000000000000000000000000..f6f28a4d2f2bdc9abddfbca7ae8700811c1f5c27 Binary files /dev/null and b/Pendu/Assets.xcassets/humain4.imageset/humain4.png differ diff --git a/Pendu/Assets.xcassets/humain5.imageset/Contents.json b/Pendu/Assets.xcassets/humain5.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..2bf1e2776f58f96c16c5a84b8e5319768b432f3a --- /dev/null +++ b/Pendu/Assets.xcassets/humain5.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain5.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain5.imageset/humain5.png b/Pendu/Assets.xcassets/humain5.imageset/humain5.png new file mode 100644 index 0000000000000000000000000000000000000000..14a8dbd9e606df232318e284ac8f552e7c20cb55 Binary files /dev/null and b/Pendu/Assets.xcassets/humain5.imageset/humain5.png differ diff --git a/Pendu/Assets.xcassets/humain6.imageset/Contents.json b/Pendu/Assets.xcassets/humain6.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..4026a40775d6fdcb19e06810d4879df9535f548e --- /dev/null +++ b/Pendu/Assets.xcassets/humain6.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain6.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain6.imageset/humain6.png b/Pendu/Assets.xcassets/humain6.imageset/humain6.png new file mode 100644 index 0000000000000000000000000000000000000000..75ffd11ea8ac7570d7bd26cd420b4b44cdbba8f2 Binary files /dev/null and b/Pendu/Assets.xcassets/humain6.imageset/humain6.png differ diff --git a/Pendu/Assets.xcassets/humain7.imageset/Contents.json b/Pendu/Assets.xcassets/humain7.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..3e5f9cf2c6dc04bbed4bed89ddeec455898b49d7 --- /dev/null +++ b/Pendu/Assets.xcassets/humain7.imageset/Contents.json @@ -0,0 +1,12 @@ +{ + "images" : [ + { + "filename" : "humain7.png", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain7.imageset/humain7.png b/Pendu/Assets.xcassets/humain7.imageset/humain7.png new file mode 100644 index 0000000000000000000000000000000000000000..f7588d41f9906320eee8eec8cc3b45dbca15d92b Binary files /dev/null and b/Pendu/Assets.xcassets/humain7.imageset/humain7.png differ diff --git a/Pendu/Assets.xcassets/humain8-1.imageset/Contents.json b/Pendu/Assets.xcassets/humain8-1.imageset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..d6d53d209824c2864ddf72fc8778d2de5f3e7a91 --- /dev/null +++ b/Pendu/Assets.xcassets/humain8-1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "humain8.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Pendu/Assets.xcassets/humain.imageset/humain.png b/Pendu/Assets.xcassets/humain8-1.imageset/humain8.png similarity index 100% rename from Pendu/Assets.xcassets/humain.imageset/humain.png rename to Pendu/Assets.xcassets/humain8-1.imageset/humain8.png diff --git a/Pendu/Assets.xcassets/humain.imageset/Contents.json b/Pendu/Assets.xcassets/humain8.imageset/Contents.json similarity index 100% rename from Pendu/Assets.xcassets/humain.imageset/Contents.json rename to Pendu/Assets.xcassets/humain8.imageset/Contents.json diff --git a/Pendu/Assets.xcassets/humain8.imageset/humain.png b/Pendu/Assets.xcassets/humain8.imageset/humain.png new file mode 100644 index 0000000000000000000000000000000000000000..9205b05f2fd39b560660d0367c4fc9dfccc7afc8 Binary files /dev/null and b/Pendu/Assets.xcassets/humain8.imageset/humain.png differ diff --git a/Pendu/Base.lproj/Main.storyboard b/Pendu/Base.lproj/Main.storyboard index f02357fa7c241b18c52eb62344821eff86b4df69..722c042620ae57d22d924f577987ed8744b2b1a5 100644 --- a/Pendu/Base.lproj/Main.storyboard +++ b/Pendu/Base.lproj/Main.storyboard @@ -11,24 +11,458 @@ <!--View Controller--> <scene sceneID="tne-QT-ifu"> <objects> + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Pendu" customModuleProvider="target" sceneMemberID="viewController"> <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <subviews> + <stackView autoresizesSubviews="NO" opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillProportionally" spacing="12" translatesAutoresizingMaskIntoConstraints="NO" id="2XB-iI-dfu"> + <rect key="frame" x="18" y="630" width="378" height="117"/> + <subviews> + <stackView opaque="NO" contentMode="scaleToFill" spacing="6" translatesAutoresizingMaskIntoConstraints="NO" id="Lig-Un-KRN"> + <rect key="frame" x="0.0" y="0.0" width="378" height="31"/> + <subviews> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tLI-B6-X2y"> + <rect key="frame" x="0.0" y="0.0" width="37" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="37" id="S9Z-t7-cgC"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <buttonConfiguration key="configuration" style="filled" title="A"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="A_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="dOH-LY-aru"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DbP-7q-EIq"> + <rect key="frame" x="43" y="0.0" width="36.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="36.5" id="IWm-6U-Mkz"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="Z"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="Z_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="mPP-Wi-VbW"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pH9-cc-5ug"> + <rect key="frame" x="85.5" y="0.0" width="37" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="37" id="ieX-iU-DuB"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="E"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="E_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Jvf-I4-eQg"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jFS-B8-RI5"> + <rect key="frame" x="128.5" y="0.0" width="36.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="36.5" id="ddb-Xe-gwk"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="R"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="R_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="gHd-DF-0eb"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IHm-sb-sqg"> + <rect key="frame" x="171" y="0.0" width="36" height="31"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="T"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="T_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="qE6-tN-eTQ"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="NdK-Hc-8G9"> + <rect key="frame" x="213" y="0.0" width="36.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="36.5" id="QKK-yO-5mB"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="Y"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="Y_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="Sie-8I-9Vt"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JKG-hu-Aix"> + <rect key="frame" x="255.5" y="0.0" width="37" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="37" id="z3X-tU-nBV"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="U"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="U_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="UPn-5M-tIE"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="EPg-Ok-hmi"> + <rect key="frame" x="298.5" y="0.0" width="36.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="36.5" id="Et5-8c-qqj"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="I"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="I_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="eqe-yv-rkM"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3Ef-6z-48g"> + <rect key="frame" x="341" y="0.0" width="37" height="31"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="O"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="O_action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="v5b-7X-b7c"/> + </connections> + </button> + </subviews> + <constraints> + <constraint firstItem="tLI-B6-X2y" firstAttribute="baseline" secondItem="DbP-7q-EIq" secondAttribute="firstBaseline" id="4yY-kP-HNt"/> + <constraint firstItem="IHm-sb-sqg" firstAttribute="centerX" secondItem="Lig-Un-KRN" secondAttribute="centerX" id="5L0-wU-ksl"/> + </constraints> + </stackView> + <stackView opaque="NO" contentMode="scaleToFill" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="jCP-o5-MwY"> + <rect key="frame" x="0.0" y="43" width="378" height="31"/> + <subviews> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aK8-wS-vG8"> + <rect key="frame" x="0.0" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="hNl-rT-OT7"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="P"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="P_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="d23-64-PEd"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xT2-kz-Dkn"> + <rect key="frame" x="43" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="0nu-Fh-tbg"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="Q"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="Q_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="HpE-ZZ-mdf"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7g4-B8-EDq"> + <rect key="frame" x="86" y="0.0" width="34" height="31"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="S"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="S_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="6NG-6d-9Xu"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="duW-jQ-MYh"> + <rect key="frame" x="128" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="aJd-Fw-bmx"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="D"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="D_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="7jE-wM-HQ3"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="M6a-B3-HXu"> + <rect key="frame" x="171" y="0.0" width="36" height="31"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="F"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="F_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="N4x-4I-23f"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gct-qK-35d"> + <rect key="frame" x="215" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="kbQ-Xk-59u"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="G"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="G_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="nOw-wS-qi8"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dUP-t2-r07"> + <rect key="frame" x="258" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="8z2-Ri-9Yc"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="H"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="H_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="lsE-YL-w5u"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="95Q-4Y-w52"> + <rect key="frame" x="301" y="0.0" width="35" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="35" id="B8A-5n-ZUG"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="J"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="J_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="eB6-6n-uSO"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dgp-zc-Thy"> + <rect key="frame" x="344" y="0.0" width="34" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="34" id="yaZ-oI-eQl"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="K"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="K_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="rs3-ky-hGa"/> + </connections> + </button> + </subviews> + <constraints> + <constraint firstItem="M6a-B3-HXu" firstAttribute="centerX" secondItem="jCP-o5-MwY" secondAttribute="centerX" id="G66-lW-1cs"/> + <constraint firstItem="duW-jQ-MYh" firstAttribute="leading" secondItem="7g4-B8-EDq" secondAttribute="trailing" constant="8" id="YJ6-hL-Ba7"/> + <constraint firstItem="aK8-wS-vG8" firstAttribute="baseline" secondItem="xT2-kz-Dkn" secondAttribute="firstBaseline" id="uIO-eu-3mY"/> + </constraints> + </stackView> + <stackView opaque="NO" contentMode="scaleToFill" spacing="8" translatesAutoresizingMaskIntoConstraints="NO" id="aNJ-rU-xbP"> + <rect key="frame" x="0.0" y="86" width="378" height="31"/> + <subviews> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WFx-rP-ss5"> + <rect key="frame" x="0.0" y="0.0" width="40.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40.5" id="N06-eQ-I5x"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="L"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="L_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="AB2-ef-gsH"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="K8y-2v-daN"> + <rect key="frame" x="48.5" y="0.0" width="40" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40" id="G0z-u8-TNj"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="M"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="M_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="FjD-rM-GLZ"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jwa-vY-VHc"> + <rect key="frame" x="96.5" y="0.0" width="40.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40.5" id="9Ar-ug-g20"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="W"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="W_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="VjN-WS-B4n"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0Ds-p6-HNv"> + <rect key="frame" x="145" y="0.0" width="40" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40" id="xG6-O1-CtI"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="X"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="X_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="JKI-iI-i8P"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="uuI-Af-jaT"> + <rect key="frame" x="193" y="0.0" width="40.5" height="31"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="C"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="C_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="BL2-9e-oaY"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hn5-QO-hjX"> + <rect key="frame" x="241.5" y="0.0" width="40" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40" id="Wc8-Td-Yzr"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="V"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="V_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ZNS-I4-59U"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2DZ-eh-e1s"> + <rect key="frame" x="289.5" y="0.0" width="40" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40" id="Sbf-8k-plh"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="B"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="B_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="okt-4v-BBb"/> + </connections> + </button> + <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1Cc-0D-Gn3"> + <rect key="frame" x="337.5" y="0.0" width="40.5" height="31"/> + <constraints> + <constraint firstAttribute="width" constant="40.5" id="JXi-Lb-Oak"/> + </constraints> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <state key="normal" title="Button"/> + <buttonConfiguration key="configuration" style="filled" title="N"> + <color key="baseBackgroundColor" systemColor="systemBrownColor"/> + </buttonConfiguration> + <connections> + <action selector="N_Action:" destination="BYZ-38-t0r" eventType="touchUpInside" id="WwJ-ck-bQ8"/> + </connections> + </button> + </subviews> + <constraints> + <constraint firstItem="2DZ-eh-e1s" firstAttribute="baseline" secondItem="hn5-QO-hjX" secondAttribute="firstBaseline" id="YsU-sZ-x0v"/> + </constraints> + </stackView> + </subviews> + <rect key="contentStretch" x="1" y="1" width="1" height="1"/> + </stackView> + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z7N-Ws-jLx"> + <rect key="frame" x="20" y="562" width="376" height="60"/> + <fontDescription key="fontDescription" type="system" pointSize="30"/> + <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> + <nil key="highlightedColor"/> + </label> + </subviews> <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> <color key="backgroundColor" systemColor="systemBackgroundColor"/> + <color key="tintColor" systemColor="opaqueSeparatorColor"/> + <constraints> + <constraint firstItem="z7N-Ws-jLx" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="518" id="3eI-PR-R29"/> + <constraint firstItem="2XB-iI-dfu" firstAttribute="top" secondItem="z7N-Ws-jLx" secondAttribute="bottom" constant="8" id="6dq-MW-jXR"/> + <constraint firstItem="2XB-iI-dfu" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="586" id="GDi-3N-WOL"/> + <constraint firstItem="2XB-iI-dfu" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="18" id="H7Y-qR-xN4"/> + <constraint firstItem="z7N-Ws-jLx" firstAttribute="trailing" secondItem="2XB-iI-dfu" secondAttribute="trailing" id="bRt-Cx-tpa"/> + <constraint firstItem="2XB-iI-dfu" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="k43-6H-xEG"/> + <constraint firstItem="z7N-Ws-jLx" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leadingMargin" id="v2G-KO-OfQ"/> + </constraints> </view> <toolbarItems/> <simulatedToolbarMetrics key="simulatedBottomBarMetrics"/> + <connections> + <outlet property="A_Button" destination="tLI-B6-X2y" id="6Uc-ZO-T0V"/> + <outlet property="B_Button" destination="2DZ-eh-e1s" id="TFw-T5-E7I"/> + <outlet property="C_Button" destination="uuI-Af-jaT" id="hVh-Es-ceX"/> + <outlet property="D_Button" destination="duW-jQ-MYh" id="q8P-zg-Xk0"/> + <outlet property="E_Button" destination="pH9-cc-5ug" id="8FS-AD-OBw"/> + <outlet property="F_Button" destination="M6a-B3-HXu" id="ASf-xT-eVU"/> + <outlet property="G_Button" destination="gct-qK-35d" id="yaD-Al-bNf"/> + <outlet property="H_Button" destination="dUP-t2-r07" id="3RJ-8X-cwA"/> + <outlet property="I_Button" destination="EPg-Ok-hmi" id="3pB-yP-bMa"/> + <outlet property="J_Button" destination="95Q-4Y-w52" id="pmK-1O-VZS"/> + <outlet property="K_Button" destination="dgp-zc-Thy" id="k79-TN-63W"/> + <outlet property="L_Button" destination="WFx-rP-ss5" id="mKF-NJ-n5X"/> + <outlet property="M_Button" destination="K8y-2v-daN" id="dES-9W-lc7"/> + <outlet property="N_Button" destination="1Cc-0D-Gn3" id="RY0-Kx-z75"/> + <outlet property="O_Button" destination="3Ef-6z-48g" id="d40-qw-XdU"/> + <outlet property="P_Button" destination="aK8-wS-vG8" id="Nh1-nE-bUq"/> + <outlet property="Q_Button" destination="xT2-kz-Dkn" id="ssG-vI-sd6"/> + <outlet property="R_Button" destination="jFS-B8-RI5" id="cpM-ni-QDg"/> + <outlet property="S_Button" destination="7g4-B8-EDq" id="kmf-hs-Yeq"/> + <outlet property="T_Button" destination="IHm-sb-sqg" id="x8v-Ge-iH1"/> + <outlet property="TextWord" destination="z7N-Ws-jLx" id="pAe-cg-dJC"/> + <outlet property="U_Button" destination="JKG-hu-Aix" id="gtC-ZF-jxy"/> + <outlet property="V_Button" destination="hn5-QO-hjX" id="68l-xk-lSc"/> + <outlet property="W_Button" destination="Jwa-vY-VHc" id="aL0-nz-8gV"/> + <outlet property="X_Button" destination="0Ds-p6-HNv" id="K6T-ma-kCd"/> + <outlet property="Y_Button" destination="NdK-Hc-8G9" id="vwa-By-hL8"/> + <outlet property="Z_Button" destination="DbP-7q-EIq" id="nX8-cc-NvD"/> + </connections> </viewController> - <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> </objects> - <point key="canvasLocation" x="322" y="106"/> + <point key="canvasLocation" x="321.73913043478262" y="105.80357142857143"/> </scene> </scenes> <resources> + <systemColor name="opaqueSeparatorColor"> + <color red="0.77647058823529413" green="0.77647058823529413" blue="0.78431372549019607" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> <systemColor name="systemBackgroundColor"> <color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> </systemColor> + <systemColor name="systemBrownColor"> + <color red="0.63529411764705879" green="0.51764705882352946" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> + </systemColor> </resources> </document> diff --git a/Pendu/ViewController.swift b/Pendu/ViewController.swift index c0c488fd0234178f71d55dcd99aa675342925608..81f80dc7498e2e5c7b4c0759bbec6f5225fcc2a3 100644 --- a/Pendu/ViewController.swift +++ b/Pendu/ViewController.swift @@ -30,28 +30,139 @@ extension UIView { class ViewController: UIViewController { - override func viewDidLoad() { - view.addBackground() - super.viewDidLoad() + @IBOutlet weak var TextWord: UILabel! - let image = UIImage(named: "humain") + @IBOutlet weak var A_Button: UIButton! + @IBOutlet weak var Z_Button: UIButton! + @IBOutlet weak var E_Button: UIButton! + @IBOutlet weak var R_Button: UIButton! + @IBOutlet weak var T_Button: UIButton! + @IBOutlet weak var Y_Button: UIButton! + @IBOutlet weak var U_Button: UIButton! + @IBOutlet weak var I_Button: UIButton! + @IBOutlet weak var O_Button: UIButton! + @IBOutlet weak var P_Button: UIButton! + @IBOutlet weak var Q_Button: UIButton! + @IBOutlet weak var S_Button: UIButton! + @IBOutlet weak var D_Button: UIButton! + @IBOutlet weak var F_Button: UIButton! + @IBOutlet weak var G_Button: UIButton! + @IBOutlet weak var H_Button: UIButton! + @IBOutlet weak var J_Button: UIButton! + @IBOutlet weak var K_Button: UIButton! + @IBOutlet weak var L_Button: UIButton! + @IBOutlet weak var M_Button: UIButton! + @IBOutlet weak var W_Button: UIButton! + @IBOutlet weak var X_Button: UIButton! + @IBOutlet weak var C_Button: UIButton! + @IBOutlet weak var V_Button: UIButton! + @IBOutlet weak var B_Button: UIButton! + @IBOutlet weak var N_Button: UIButton! + + @IBAction func A_Action(_ sender: Any) { + InputButton(inputButton: A_Button) + } + @IBAction func Z_Action(_ sender: Any) { + InputButton(inputButton: Z_Button) + } + @IBAction func E_Action(_ sender: Any) { + InputButton(inputButton: E_Button) + } + @IBAction func R_Action(_ sender: Any) { + InputButton(inputButton: R_Button) + } + @IBAction func T_Action(_ sender: Any) { + InputButton(inputButton: T_Button) + } + @IBAction func Y_Action(_ sender: Any) { + InputButton(inputButton: Y_Button) + } + @IBAction func U_Action(_ sender: Any) { + InputButton(inputButton: U_Button) + } + @IBAction func I_Action(_ sender: Any) { + InputButton(inputButton: I_Button) + } + @IBAction func O_action(_ sender: Any) { + InputButton(inputButton: O_Button) + } + @IBAction func P_Action(_ sender: Any) { + InputButton(inputButton: P_Button) + } + @IBAction func Q_Action(_ sender: Any) { + InputButton(inputButton: Q_Button) + } + @IBAction func S_Action(_ sender: Any) { + InputButton(inputButton: S_Button) + } + @IBAction func D_Action(_ sender: Any) { + InputButton(inputButton: D_Button) + } + @IBAction func F_Action(_ sender: Any) { + InputButton(inputButton: F_Button) + } + @IBAction func G_Action(_ sender: Any) { + InputButton(inputButton: G_Button) + } + @IBAction func H_Action(_ sender: Any) { + InputButton(inputButton: H_Button) + } + @IBAction func J_Action(_ sender: Any) { + InputButton(inputButton: J_Button) + } + @IBAction func K_Action(_ sender: Any) { + InputButton(inputButton: K_Button) + } + @IBAction func L_Action(_ sender: Any) { + InputButton(inputButton: L_Button) + } + @IBAction func M_Action(_ sender: Any) { + InputButton(inputButton: M_Button) + } + @IBAction func W_Action(_ sender: Any) { + InputButton(inputButton: W_Button) + } + @IBAction func X_Action(_ sender: Any) { + InputButton(inputButton: X_Button) + } + @IBAction func C_Action(_ sender: Any) { + InputButton(inputButton: C_Button) + } + @IBAction func V_Action(_ sender: Any) { + InputButton(inputButton: V_Button) + } + @IBAction func B_Action(_ sender: Any) { + InputButton(inputButton: B_Button) + } + @IBAction func N_Action(_ sender: Any) { + InputButton(inputButton: N_Button) + } + + func InputButton(inputButton: UIButton) { + inputButton.isEnabled = false + } + + func penduImage(nameFile: String) { + let image = UIImage(named: nameFile) let imageView = UIImageView(image: image!) - imageView.frame = CGRect(x: 50, y: 300, width: 250, height: 250) + imageView.frame = CGRect(x: 50, y: 220, width: 250, height: 250) view.addSubview(imageView) + } + + + override func viewDidLoad() { + TextWord.text = "- - - - -" + view.addBackground() + super.viewDidLoad() + penduImage(nameFile: "humain8") let label = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 40)) label.center = CGPoint(x: 160, y: 230) label.font = UIFont(name: "whatever it takes", size: 40) label.textAlignment = .center label.textColor = UIColor.white label.text = "Pendu" - self.view.addSubview(label) - -// let ButtonLetter = ButtonTemplate(frame: CGRect(x: 1000, y: 1500, width: 150, height: 30)) -// view.addSubview(ButtonLetter) -// ButtonLetter.center = view.center -// ButtonLetter.configure(with: ButtonTemplateViewModel(primaryColor: "Commencer")) }