|
@@ -278,6 +278,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
lazy var speedStuckBtnGif: UIImageView = {
|
|
|
let speedStuckBtnGif = UIImageView()
|
|
|
speedStuckBtnGif.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: "speedstuck_h", ofType: ".gif")!))
|
|
|
+ speedStuckBtnGif.isHidden = true
|
|
|
return speedStuckBtnGif
|
|
|
|
|
|
}()
|
|
@@ -296,6 +297,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
lazy var jumpPointBtnGif: UIImageView = {
|
|
|
let jumpPointBtnGif = UIImageView()
|
|
|
jumpPointBtnGif.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: "jumpPoint_n", ofType: ".gif")!))
|
|
|
+ jumpPointBtnGif.isHidden = true
|
|
|
return jumpPointBtnGif
|
|
|
|
|
|
}()
|
|
@@ -310,14 +312,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
onlyMusicBtn.adjustsImageWhenHighlighted = false
|
|
|
return onlyMusicBtn
|
|
|
}()
|
|
|
-
|
|
|
- // 编辑模式的指示线
|
|
|
- lazy var editModelLineView: UIView = {
|
|
|
- let editModelLineView = UIView()
|
|
|
- editModelLineView.backgroundColor = UIColor.hexColor(hexadecimal: "#EFEFEF")
|
|
|
- return editModelLineView
|
|
|
- }()
|
|
|
-
|
|
|
+
|
|
|
// 操作面板上的分割线
|
|
|
lazy var optionlineView: UIView = {
|
|
|
let optionlineView = UIView()
|
|
@@ -543,17 +538,17 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
speedSettingView.snp.remakeConstraints { make in
|
|
|
make.left.equalToSuperview().offset(16)
|
|
|
make.right.equalToSuperview()
|
|
|
- make.top.equalTo(editModelLineView.snp_bottom).offset(8)
|
|
|
+ make.top.equalTo(onlyMusicBtn.snp_bottom).offset(10)
|
|
|
make.height.equalTo(sender.tag == 1 ? 44 : 30)
|
|
|
}
|
|
|
speedSettingView.isHidden = false
|
|
|
speedTitleLab.isHidden = false
|
|
|
sustomSwitchView.isHidden = false
|
|
|
- editModelLineView.isHidden = false
|
|
|
+
|
|
|
} else {
|
|
|
speedTitleLab.isHidden = true
|
|
|
speedSettingView.isHidden = true
|
|
|
- editModelLineView.isHidden = true
|
|
|
+
|
|
|
sustomSwitchView.isHidden = true
|
|
|
}
|
|
|
// 2素材全是图片的时候三个模式都显示循环设置 UI
|
|
@@ -563,12 +558,11 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
speedSettingView.snp.remakeConstraints { make in
|
|
|
make.left.equalToSuperview().offset(16)
|
|
|
make.right.equalToSuperview()
|
|
|
- make.top.equalTo(editModelLineView.snp_bottom).offset(8)
|
|
|
+ make.top.equalTo(onlyMusicBtn.snp_bottom).offset(10)
|
|
|
make.height.equalTo(30)
|
|
|
}
|
|
|
|
|
|
speedSettingView.isHidden = false
|
|
|
- editModelLineView.isHidden = false
|
|
|
speedTitleLab.isHidden = false
|
|
|
sustomSwitchView.isHidden = false
|
|
|
if(lastCyclesSelectIndex != -1){
|
|
@@ -616,10 +610,12 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- settingPlayerView()
|
|
|
speedStuckBtnGif.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: speedStuckBtnGifName, ofType: ".gif")!))
|
|
|
jumpPointBtnGif.kf.setImage(with: URL(fileURLWithPath: Bundle().BF_mainbundle().path(forResource: jumpPointBtnGifName, ofType: ".gif")!))
|
|
|
+
|
|
|
+ settingPlayerView()
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
@@ -673,7 +669,6 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
pointEditBGView.addSubview(jumpPointBtn)
|
|
|
jumpPointBtn.addSubview(jumpPointBtnGif)
|
|
|
pointEditBGView.addSubview(onlyMusicBtn)
|
|
|
- pointEditBGView.addSubview(editModelLineView)
|
|
|
pointEditBGView.addSubview(speedSettingView)
|
|
|
pointEditBGView.addSubview(sustomSwitchView)
|
|
|
|
|
@@ -705,7 +700,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
}
|
|
|
stuckPointCuttingView.snp.makeConstraints { make in
|
|
|
make.left.right.equalTo(view)
|
|
|
- make.bottom.equalTo(pointEditerBtn.snp_top).offset(-7)
|
|
|
+ make.bottom.equalTo(pointEditerBtn.snp_top).offset(-12)
|
|
|
make.height.equalTo(290)
|
|
|
}
|
|
|
optionlineView.snp.makeConstraints { make in
|
|
@@ -755,21 +750,16 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
make.height.equalTo(80)
|
|
|
make.width.equalTo(64)
|
|
|
}
|
|
|
- editModelLineView.snp.makeConstraints { make in
|
|
|
- make.left.equalToSuperview().offset(16)
|
|
|
- make.right.equalToSuperview()
|
|
|
- make.bottom.equalTo(onlyMusicBtn.snp_bottom).offset(17)
|
|
|
- make.height.equalTo(1)
|
|
|
- }
|
|
|
+
|
|
|
speedSettingView.snp.makeConstraints { make in
|
|
|
make.left.equalToSuperview().offset(16)
|
|
|
make.right.equalToSuperview()
|
|
|
- make.top.equalTo(editModelLineView.snp_bottom).offset(8)
|
|
|
+ make.top.equalTo(onlyMusicBtn.snp_bottom).offset(10)
|
|
|
make.height.equalTo(44)
|
|
|
}
|
|
|
speedTitleLab.snp.makeConstraints { make in
|
|
|
make.left.equalToSuperview().offset(16)
|
|
|
- make.top.equalToSuperview().offset(213)
|
|
|
+ make.top.equalToSuperview().offset(190)
|
|
|
make.height.equalTo(20)
|
|
|
make.width.equalTo(80)
|
|
|
}
|