Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- superbgImageView.frame = self.view.bounds
- bgImageView.frame = CGRect(x: w/2-w/3, y: h/8, width: 2*w/3, height: 3*h/4)
- regButton.frame = CGRect(x: w/2-h/10, y: 3*h/4, width: h/5, height: h/5)
- loginTextField.frame = CGRect(x: w/2-w/8, y: h/3, width: w/4, height: h/8)
- passFTextField.frame = CGRect(x: w/2-w/8, y: h/3+h/6, width: w/4, height: h/8)
- errorMsgLabel.frame = CGRect(x: w/2-w/6, y: 2*h/3 , width: w/3, height: h/8)
- //bgImageView.layer.zPosition = -2
- //imageHeader.layer.zPosition = -1
- loginTextField.font = UIFont(name: "Marker Felt", size: h/16)
- passFTextField.font = UIFont(name: "Marker Felt", size: h/16)
- backButton.frame = CGRect(x: 5, y:5, width: h/10, height: h/10)
- imageHeader.frame = CGRect(x: w/2-w/3, y:h/24, width: 2*w/3, height: h/4)
- let label = UILabel(frame: CGRect(x:0, y: -h/16, width: 2*w/3, height: h/4))
- label.textAlignment = .center
- label.textColor = #colorLiteral(red: 0.9529411793, green: 0.6862745285, blue: 0.1333333403, alpha: 1)
- label.text = "LOG IN"
- label.font = UIFont(name: "Marker Felt", size: h/10)
- label.adjustsFontSizeToFitWidth = true
- imageHeader.addSubview(label)
- ///// тут еще меню немного поменял
- loginLabel.frame = CGRect(x: 5, y: 5, width: w/6, height: h/8)
- loginLabel.font = UIFont(name: "Marker Felt", size: h/20)
- exitButton.frame = CGRect(x: w-h/10, y: 5 , width: h/10, height: h/10)
- superbgImageView.frame = self.view.bounds
- bgImageView.frame = CGRect(x: w/2-w/3, y: h/12, width: 2*w/3, height: 5*h/6)
- var buttons = [offlineMacthButton,onlineMacthButton,heroesButton]
- for button in buttons {
- let label2 = UILabel(frame: CGRect(x:0, y: 0, width:7*w/24, height: h/5))
- label2.textAlignment = .center
- label2.textColor = #colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1)
- label2.text = labels[cnt]
- cnt+=1
- label2.font = UIFont(name: "Marker Felt", size: h/20)
- label2.adjustsFontSizeToFitWidth = true
- button.addSubview(label2)
- }
- let zamok = UIImageView(image: UIImage(named: "zamok"))
- zamok.frame = CGRect(x: 0, y: 10, width: h/10, height: h/10)
- offlineMacthButton.addSubview(zamok)
- offlineMacthButton.frame = CGRect(x: 17*w/48, y: h/6, width: 7*w/24, height: h/5)
- onlineMacthButton.frame = CGRect(x: 17*w/48, y: 11*h/30+10, width: 7*w/24, height: h/5)
- heroesButton.frame = CGRect(x: 17*w/48, y: 17*h/30+20, width: 7*w/24, height: h/5)
- bookButton.frame = CGRect(x:3*w/4, y: 3*h/4, width: w/4, height: h/4)
- runeButton.frame = CGRect(x:0, y: 3*h/4, width: w/4, height: h/4)
- buttons = [bookButton,runeButton]
- labels = ["СПЕЛЛБУК","РУНЫ"]
- for button in buttons {
- let label2 = UILabel(frame: CGRect(x:0, y: h/13, width: w/4, height: h/4))
- label2.textAlignment = .center
- label2.textColor = #colorLiteral(red: 0.2094716728, green: 0.1004144028, blue: 0.1077578291, alpha: 1)
- label2.text = labels[cnt]
- cnt+=1
- label2.font = UIFont(name: "Marker Felt", size: h/20)
- label2.adjustsFontSizeToFitWidth = true
- button.addSubview(label2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement