|
@@ -20,7 +20,7 @@ import Photos
|
|
|
import RealmSwift
|
|
|
import UIKit
|
|
|
|
|
|
-class PQStuckPointEditerController: PQBaseViewController {
|
|
|
+class PQStuckPointEditerController: BFBaseViewController {
|
|
|
// 是否导出视频成功
|
|
|
var isExportVideosSuccess: Bool = false
|
|
|
// 是否请求卡点数据成功
|
|
@@ -129,7 +129,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
nextBtn.setTitle("合成", for: .normal)
|
|
|
nextBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium)
|
|
|
nextBtn.addTarget(self, action: #selector(nextBtnClick(sender:)), for: .touchUpInside)
|
|
|
- nextBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ nextBtn.backgroundColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
nextBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#FFFFFF"), for: .normal)
|
|
|
nextBtn.uxy_acceptEventInterval = 0.5
|
|
|
nextBtn.addCorner(corner: 3)
|
|
@@ -139,7 +139,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
// 播放器显示 view
|
|
|
lazy var playerView: PQGPUImagePlayerView = {
|
|
|
let playerView = PQGPUImagePlayerView(frame: .zero)
|
|
|
- playerView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ playerView.backgroundColor = BFConfig.shared.styleBackGroundColor
|
|
|
playerView.isShowLine = false
|
|
|
playerView.showGaussianBlur = true
|
|
|
playerView.pause()
|
|
@@ -257,7 +257,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
pointEditRemindLab.backgroundColor = .clear
|
|
|
pointEditRemindLab.textAlignment = .left
|
|
|
pointEditRemindLab.font = UIFont.boldSystemFont(ofSize: 14)
|
|
|
- pointEditRemindLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
|
+ pointEditRemindLab.textColor = BFConfig.shared.styleTitleColor
|
|
|
pointEditRemindLab.text = "卡点模式"
|
|
|
return pointEditRemindLab
|
|
|
}()
|
|
@@ -268,7 +268,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
speedTitleLab.backgroundColor = .clear
|
|
|
speedTitleLab.textAlignment = .left
|
|
|
speedTitleLab.font = UIFont.boldSystemFont(ofSize: 14)
|
|
|
- speedTitleLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
|
+ speedTitleLab.textColor = BFConfig.shared.styleTitleColor
|
|
|
speedTitleLab.text = "节奏变化"
|
|
|
return speedTitleLab
|
|
|
}()
|
|
@@ -312,7 +312,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
pointEdterBtn.setImage(UIImage.moduleImage(named: "pointEditerBtn_n", moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
|
|
|
pointEdterBtn.setImage(UIImage.moduleImage(named: "pointEditerBtn_h", moduleName: "BFFramework", isAssets: false)?.withRenderingMode(.alwaysTemplate), for: .selected)
|
|
|
- pointEdterBtn.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ pointEdterBtn.tintColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
pointEdterBtn.addTarget(self, action: #selector(pointEditerBtnClick(sender:)), for: .touchUpInside)
|
|
|
pointEdterBtn.isSelected = true
|
|
|
pointEdterBtn.adjustsImageWhenHighlighted = false
|
|
@@ -324,7 +324,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
let musicEditerBtn = UIButton(type: .custom)
|
|
|
musicEditerBtn.setImage(UIImage.moduleImage(named: "musicEditerBtn_n", moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
musicEditerBtn.setImage(UIImage.moduleImage(named: "musicEditerBtn_h", moduleName: "BFFramework", isAssets: false)?.withRenderingMode(.alwaysTemplate), for: .selected)
|
|
|
- musicEditerBtn.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ musicEditerBtn.tintColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
musicEditerBtn.addTarget(self, action: #selector(musicEditerBtnClick(sender:)), for: .touchUpInside)
|
|
|
musicEditerBtn.adjustsImageWhenHighlighted = false
|
|
|
return musicEditerBtn
|
|
@@ -336,15 +336,15 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
speedStuckBtn.addTarget(self, action: #selector(editModelClick1(sender:)), for: .touchUpInside)
|
|
|
speedStuckBtn.setTitle("快慢速卡点", for: .normal)
|
|
|
speedStuckBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .regular)
|
|
|
- jumpPointBtn.backgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
- speedStuckBtn.setTitleColor(UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
+ jumpPointBtn.backgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ speedStuckBtn.setTitleColor(UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
speedStuckBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#959595"), for: .normal)
|
|
|
speedStuckBtn.addCorner(corner: 5)
|
|
|
speedStuckBtn.imagePosition(at: .top, space: 8)
|
|
|
speedStuckBtn.tag = 1
|
|
|
speedStuckBtn.adjustsImageWhenHighlighted = false
|
|
|
- speedStuckBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.speedStuckBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
- speedStuckBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.speedStuckBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
+ speedStuckBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.speedStuckBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
+ speedStuckBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.speedStuckBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
return speedStuckBtn
|
|
|
}()
|
|
|
|
|
@@ -363,8 +363,8 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
|
|
|
jumpPointBtn.setTitle("跳跃卡点", for: .normal)
|
|
|
jumpPointBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .regular)
|
|
|
- jumpPointBtn.backgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
- jumpPointBtn.setTitleColor(UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
+ jumpPointBtn.backgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ jumpPointBtn.setTitleColor(UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
jumpPointBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#959595"), for: .normal)
|
|
|
jumpPointBtn.imagePosition(at: .top, space: 8)
|
|
|
jumpPointBtn.addCorner(corner: 5)
|
|
@@ -372,8 +372,8 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
jumpPointBtn.addTarget(self, action: #selector(editModelClick1(sender:)), for: .touchUpInside)
|
|
|
jumpPointBtn.adjustsImageWhenHighlighted = false
|
|
|
|
|
|
- jumpPointBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.jumpPointBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
- jumpPointBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.jumpPointBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
+ jumpPointBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.jumpPointBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
+ jumpPointBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.jumpPointBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
return jumpPointBtn
|
|
|
}()
|
|
|
|
|
@@ -391,16 +391,16 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
|
|
|
onlyMusicBtn.setTitle("仅配乐", for: .normal)
|
|
|
onlyMusicBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13, weight: .regular)
|
|
|
- onlyMusicBtn.backgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
- onlyMusicBtn.setTitleColor(UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
+ onlyMusicBtn.backgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ onlyMusicBtn.setTitleColor(UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue), for: .selected)
|
|
|
onlyMusicBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#959595"), for: .normal)
|
|
|
onlyMusicBtn.addCorner(corner: 5)
|
|
|
onlyMusicBtn.tag = 3
|
|
|
onlyMusicBtn.addTarget(self, action: #selector(editModelClick1(sender:)), for: .touchUpInside)
|
|
|
onlyMusicBtn.adjustsImageWhenHighlighted = false
|
|
|
|
|
|
- onlyMusicBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.onlyMusicBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
- onlyMusicBtn.setImage(UIImage.moduleImage(named: PQBFConfig.shared.onlyMusicBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
+ onlyMusicBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.onlyMusicBtnImage_N, moduleName: "BFFramework", isAssets: false), for: .normal)
|
|
|
+ onlyMusicBtn.setImage(UIImage.moduleImage(named: BFConfig.shared.onlyMusicBtnImage_H, moduleName: "BFFramework", isAssets: false), for: .selected)
|
|
|
|
|
|
return onlyMusicBtn
|
|
|
}()
|
|
@@ -408,7 +408,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
// 操作面板上的分割线
|
|
|
lazy var optionlineView: UIView = {
|
|
|
let optionlineView = UIView()
|
|
|
- optionlineView.backgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ optionlineView.backgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
return optionlineView
|
|
|
}()
|
|
|
|
|
@@ -500,7 +500,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
// musicNameView.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
musicNameView.addCorner(corner: musicNameView.frame.height / 2)
|
|
|
let musicImageView = UIImageView()
|
|
|
- musicImageView.tintColor = PQBFConfig.shared.styleTitleColor
|
|
|
+ musicImageView.tintColor = BFConfig.shared.styleTitleColor
|
|
|
musicImageView.image = UIImage.moduleImage(named: "stuckPoint_reCreate_music", moduleName: "BFFramework", isAssets: false)?.withRenderingMode(.alwaysTemplate)
|
|
|
musicImageView.frame = CGRect(x: musicNameView.frame.height / 2 - 5, y: (musicNameView.frame.height - 22) / 2, width: 22, height: 22)
|
|
|
musicNameView.addSubview(musicImageView)
|
|
@@ -512,7 +512,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
lazy var musicNameLab: LMJHorizontalScrollText = {
|
|
|
let nameWidth: CGFloat = sizeWithText(text: "\(stuckPointMusicData?.musicName ?? "")", font: UIFont.systemFont(ofSize: 13), size: CGSize(width: view.frame.width - ((cDefaultMargin * 6 + 16 * 2) * 2) - (25 + cDefaultMargin * 3), height: cDefaultMargin * 3)).width
|
|
|
let musicNameLab = LMJHorizontalScrollText(frame: CGRect(x: 0, y: 0, width: nameWidth < cDefaultMargin * 4 ? cDefaultMargin * 4 : nameWidth, height: cDefaultMargin * 3))
|
|
|
- musicNameLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
|
+ musicNameLab.textColor = BFConfig.shared.styleTitleColor
|
|
|
musicNameLab.textFont = UIFont.systemFont(ofSize: 13)
|
|
|
musicNameLab.speed = 0.03
|
|
|
musicNameLab.moveDirection = LMJTextScrollMoveLeft
|
|
@@ -639,11 +639,11 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
}
|
|
|
lastEditModelBtn?.isSelected = false
|
|
|
//设置取消选中的背景色
|
|
|
- lastEditModelBtn?.backgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ lastEditModelBtn?.backgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
sender.isSelected = !sender.isSelected
|
|
|
lastEditModelBtn = sender
|
|
|
//设置选中的背景色
|
|
|
- let styleColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ let styleColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
lastEditModelBtn?.backgroundColor = UIColor(red: styleColor.rgbaf[0], green: styleColor.rgbaf[1], blue: styleColor.rgbaf[2], alpha: 0.15)
|
|
|
|
|
|
|
|
@@ -759,7 +759,7 @@ class PQStuckPointEditerController: PQBaseViewController {
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
- leftButton(image: nil, tintColor: PQBFConfig.shared.styleTitleColor)
|
|
|
+ leftButton(image: nil, tintColor: BFConfig.shared.styleTitleColor)
|
|
|
navHeadImageView?.addSubview(nextBtn)
|
|
|
navHeadImageView?.addSubview(musicNameView)
|
|
|
|
|
@@ -1861,7 +1861,7 @@ extension PQStuckPointEditerController {
|
|
|
} else {
|
|
|
self?.synchroMarskView.removeMarskView()
|
|
|
cShowHUB(superView: nil, msg: "音乐信息加载失败,请重新选择音乐")
|
|
|
-// PQUploadRemindView.showUploadRemindView(title: nil, attributedTitle: NSAttributedString(string: "加载音乐失败,请重新选择音乐"), summary: "", confirmTitle: nil) { [weak self] _, _ in
|
|
|
+// BFUploadRemindView.showUploadRemindView(title: nil, attributedTitle: NSAttributedString(string: "加载音乐失败,请重新选择音乐"), summary: "", confirmTitle: nil) { [weak self] _, _ in
|
|
|
self?.navigationController?.popViewController(animated: true)
|
|
|
// }
|
|
|
}
|
|
@@ -2055,10 +2055,10 @@ extension PQStuckPointEditerController {
|
|
|
// 跳跃卡点不可用
|
|
|
if selectedTotalDuration < 6 && selectedDataCount != selectedImageDataCount {
|
|
|
|
|
|
- let styleColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
+ let styleColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
|
|
|
jumpPointBtn.setTitleColor(UIColor.init(red: styleColor.rgbaf[0], green: styleColor.rgbaf[1], blue: styleColor.rgbaf[2], alpha: 0.3), for: .selected)
|
|
|
|
|
|
- let pointEditNamalBackgroundColor = PQBFConfig.shared.pointEditNamalBackgroundColor
|
|
|
+ let pointEditNamalBackgroundColor = BFConfig.shared.pointEditNamalBackgroundColor
|
|
|
jumpPointBtn.backgroundColor = UIColor.init(red: pointEditNamalBackgroundColor.rgbaf[0], green: pointEditNamalBackgroundColor.rgbaf[1], blue: pointEditNamalBackgroundColor.rgbaf[2], alpha: 0.3)
|
|
|
|
|
|
}
|