|
@@ -37,199 +37,7 @@ export default {
|
|
|
// completedMainLines: [],
|
|
|
// 引导配置
|
|
|
guideConfig: {
|
|
|
- mainLines: [
|
|
|
- {
|
|
|
- name: "new immigrant",
|
|
|
- stage: "homeLand",
|
|
|
- steps: [
|
|
|
- {
|
|
|
- arrow: null,
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '你好!欢迎来到萌创星球,你的移民计划正式完成。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- arrow: {x: 350, y: 460, r: 0},
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '这里是工具台 ,它可以制作各实用和非常棒的工具和装饰物,千万不要错过哟。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: "new craftsman",
|
|
|
- stage: "homeLand_table",
|
|
|
- steps: [
|
|
|
- {
|
|
|
- arrow: null,
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '果然很顺利的打开了工作台呢!',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: this.picture,
|
|
|
- characterName: this.name,
|
|
|
- text: '好像可以有好多工具,但是好像没有材料呢~',
|
|
|
- position: 'right',
|
|
|
- isMirror: false
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '材料确实不太容易获取呢,可以去看看公告栏。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
-
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- arrow: {x: 885, y: 535, r: 270},
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '看到小箭头指示的地方了么...那是任务看板,可以获取一些稀有道具和铃钱哦。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: "oh, taskBoard",
|
|
|
- stage: "homeLand_TaskBoard",
|
|
|
- steps: [
|
|
|
- {
|
|
|
- arrow: null,
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '这里就是任务面板呦....',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '顺便说一下,你的移民计划正式开启目前您需要缴纳移民费用为388888元。也在任务面板发布了呦~',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: this.picture,
|
|
|
- characterName: this.name,
|
|
|
- text: '什么!移民费用388888铃钱,这也太贵了吧...',
|
|
|
- position: 'right',
|
|
|
- isMirror: false
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '移民本就是一件不容易的事呢...',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '对了,听说近期市政厅那边的花田正在招募园丁,报酬丰厚,',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '相信以你的能力完全是没问题的,右侧过桥后就到了。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: "welcome to mainLand~",
|
|
|
- stage: "mainLand",
|
|
|
- steps: [
|
|
|
- {
|
|
|
- arrow: null,
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '正式欢迎您来到我们的市政厅所在的主岛....',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '因为前几天发生了台风,所以还有两条路被倒下的树给拦住了。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- },
|
|
|
- {
|
|
|
- characterImage: this.picture,
|
|
|
- characterName: this.name,
|
|
|
- text: 'ah...原来如此,你刚才说的花田有没有被拦住?',
|
|
|
- position: 'right',
|
|
|
- isMirror: false
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- arrow: {x: 785, y: 535, r: 270},
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '哦~瞧我这记性,花田在市政厅的旁边,就在那儿。走,我会告诉你怎么种花。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: "flowerFarm",
|
|
|
- stage: "mainLand_farm",
|
|
|
- steps: [
|
|
|
- {
|
|
|
- arrow: null,
|
|
|
- talkData: [
|
|
|
- {
|
|
|
- characterImage: '/static/island/npc.png',
|
|
|
- characterName: '罗宾',
|
|
|
- text: '快来吧,这里就是花田了。',
|
|
|
- position: 'left',
|
|
|
- isMirror: true
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ },
|
|
|
// 当前主线ID
|
|
|
currentMainLineId: 0,
|
|
|
// 当前主线
|
|
@@ -242,7 +50,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState('switchingModule', ['picture', 'name']),
|
|
|
- // 当前步骤
|
|
|
+ // 当前步骤
|
|
|
currentStep() {
|
|
|
if (!this.currentStage) return null
|
|
|
return this.currentStage.steps[this.currentStepIndex]
|
|
@@ -531,10 +339,206 @@ export default {
|
|
|
mounted() {
|
|
|
// 加载已完成主线和当前主线ID
|
|
|
// this.loadCompletedMainLines();
|
|
|
+ var _this = this
|
|
|
+ _this.guideConfig = { mainLines: [
|
|
|
+ {
|
|
|
+ name: "new immigrant",
|
|
|
+ stage: "homeLand",
|
|
|
+ steps: [
|
|
|
+ {
|
|
|
+ arrow: null,
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '你好!欢迎来到萌创星球,你的移民计划正式完成。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ arrow: {x: 350, y: 460, r: 0},
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '这里是工具台 ,它可以制作各实用和非常棒的工具和装饰物,千万不要错过哟。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "new craftsman",
|
|
|
+ stage: "homeLand_table",
|
|
|
+ steps: [
|
|
|
+ {
|
|
|
+ arrow: null,
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '果然很顺利的打开了工作台呢!',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: _this.picture,
|
|
|
+ characterName: _this.name,
|
|
|
+ text: '好像可以有好多工具,但是好像没有材料呢~',
|
|
|
+ position: 'right',
|
|
|
+ isMirror: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '材料确实不太容易获取呢,可以去看看公告栏。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ arrow: {x: 885, y: 535, r: 270},
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '看到小箭头指示的地方了么...那是任务看板,可以获取一些稀有道具和铃钱哦。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "oh, taskBoard",
|
|
|
+ stage: "homeLand_TaskBoard",
|
|
|
+ steps: [
|
|
|
+ {
|
|
|
+ arrow: null,
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '这里就是任务面板呦....',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '顺便说一下,你的移民计划正式开启目前您需要缴纳移民费用为388888元。也在任务面板发布了呦~',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/building/1.png',
|
|
|
+ characterName: '我',
|
|
|
+ text: '什么!移民费用388888铃钱,这也太贵了吧...',
|
|
|
+ position: 'right',
|
|
|
+ isMirror: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '移民本就是一件不容易的事呢...',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '对了,听说近期市政厅那边的花田正在招募园丁,报酬丰厚,',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '相信以你的能力完全是没问题的,右侧过桥后就到了。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "welcome to mainLand~",
|
|
|
+ stage: "mainLand",
|
|
|
+ steps: [
|
|
|
+ {
|
|
|
+ arrow: null,
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '正式欢迎您来到我们的市政厅所在的主岛....',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '因为前几天发生了台风,所以还有两条路被倒下的树给拦住了。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/building/1.png',
|
|
|
+ characterName: '我',
|
|
|
+ text: 'ah...原来如此,你刚才说的花田有没有被拦住?',
|
|
|
+ position: 'right',
|
|
|
+ isMirror: false
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ arrow: {x: 785, y: 535, r: 270},
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '哦~瞧我这记性,花田在市政厅的旁边,就在那儿。走,我会告诉你怎么种花。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "flowerFarm",
|
|
|
+ stage: "mainLand_farm",
|
|
|
+ steps: [
|
|
|
+ {
|
|
|
+ arrow: null,
|
|
|
+ talkData: [
|
|
|
+ {
|
|
|
+ characterImage: '/static/island/npc.png',
|
|
|
+ characterName: '罗宾',
|
|
|
+ text: '快来吧,这里就是花田了。',
|
|
|
+ position: 'left',
|
|
|
+ isMirror: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]}
|
|
|
+
|
|
|
this.loadCurrentMainLineId();
|
|
|
//测试重置主线
|
|
|
// this.currentMainLineId=0;
|
|
|
- }
|
|
|
+ console.log(this.guideConfig,'------------------------');
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|