|
@@ -2,9 +2,19 @@
|
|
|
import {BaseUI} from '../BaseUI'
|
|
|
import {ccUtils} from '../../utils/ccUtils'
|
|
|
import GuideRule from '../../rule/GuideRule'
|
|
|
+import {GAME_TYPE} from '../../enums/Enum'
|
|
|
const {ccclass, property} = cc._decorator
|
|
|
@ccclass
|
|
|
export class GuideUI extends BaseUI {
|
|
|
+ // 编辑器序列属性
|
|
|
+ @property({visible: false})
|
|
|
+ gameType: GAME_TYPE = GAME_TYPE.gameChild
|
|
|
+ @property({visible: false})
|
|
|
+ semeID: number = 0
|
|
|
+ @property({visible: false})
|
|
|
+ gameID: number = 0
|
|
|
+ @property({visible: false})
|
|
|
+ partID: number = 0
|
|
|
pages: cc.Node[] = []
|
|
|
allNodes: cc.Node[][] = []
|
|
|
curPageRules: GuideRule[] = []
|
|
@@ -68,4 +78,10 @@ export class GuideUI extends BaseUI {
|
|
|
guideRule.reset()
|
|
|
}
|
|
|
}
|
|
|
+ initCurPart(gameType, semeID, gameID, partID) {
|
|
|
+ this.gameType = gameType
|
|
|
+ this.semeID = semeID
|
|
|
+ this.gameID = gameID
|
|
|
+ this.partID = partID
|
|
|
+ }
|
|
|
}
|