|
@@ -114,7 +114,9 @@ class PQSpeedSettingView: UIView {
|
|
|
|
|
|
|
|
|
|
|
|
- func setSelectItem(index:Int,isSettingPlayer:Bool = true,setDisable:Bool = false,isCancle:Bool = false) {
|
|
|
+
|
|
|
+
|
|
|
+ func setSelectItem(index:Int,isSettingPlayer:Bool = true,setDisable:Bool = false,isCancle:Bool = false,enableInsert:Bool = false) {
|
|
|
BFLog(message: "setSelectItem is \(index)")
|
|
|
if(index < 0 ){
|
|
|
BFLog(message: "选择位置数据出错\(index)")
|
|
@@ -129,7 +131,7 @@ class PQSpeedSettingView: UIView {
|
|
|
lastSelectModel?.isSelected = false
|
|
|
|
|
|
if viewType == 3{
|
|
|
- if(index > 4 && datas.count < 7){
|
|
|
+ if(index > 4 && datas.count < 7 && enableInsert){
|
|
|
if(index >= datas.count){
|
|
|
let model = PQSpeedTitleModel()
|
|
|
model.title = "\(index + 1)x"
|