137 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			137 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						||
    "mainGuide": {
 | 
						||
        "id": "newbie_guide_test",
 | 
						||
        "name": "新手引导测试",
 | 
						||
        "version": "1.0.0",
 | 
						||
        "description": "包含10步的完整新手引导流程,展示分支逻辑和跳过功能",
 | 
						||
        "priority": 1,
 | 
						||
        "enabled": true,
 | 
						||
        "trigger": {
 | 
						||
            "type": "immediate",
 | 
						||
            "params": {
 | 
						||
                "scene": "main",
 | 
						||
                "firstTime": true
 | 
						||
            }
 | 
						||
        },
 | 
						||
        "startStepId": "step_welcome",
 | 
						||
        "repeatable": false,
 | 
						||
        "customData": {
 | 
						||
            "category": "tutorial",
 | 
						||
            "difficulty": "beginner",
 | 
						||
            "estimatedTime": 300
 | 
						||
        },
 | 
						||
        "steps": [
 | 
						||
            {
 | 
						||
                "id": "step_welcome",
 | 
						||
                "type": "text",
 | 
						||
                "title": "欢迎来到游戏!",
 | 
						||
                "description": "让我们开始一段精彩的冒险之旅吧!点击任意位置继续。",
 | 
						||
                "targetPath": "UIRoot/Button",
 | 
						||
                "targetName": "Button",
 | 
						||
                "maskShape": "rect",
 | 
						||
                "maskOffset": { "x": 0, "y": 0 },
 | 
						||
                "maskRadius": 10,
 | 
						||
                "textPosition": { "x": 0, "y": -250 },
 | 
						||
                "arrowDirection": "up",
 | 
						||
                "arrowOffset": { "x": 0, "y": -50 },
 | 
						||
                "nextStepId": "step_ui_intro",
 | 
						||
                "skippable": true,
 | 
						||
                "autoNextStep": true
 | 
						||
            },
 | 
						||
            {
 | 
						||
                "id": "step_ui_intro",
 | 
						||
                "type": "highlight",
 | 
						||
                "title": "界面介绍",
 | 
						||
                "description": "这是游戏的主界面,让我们来了解一下各个功能区域。",
 | 
						||
                "targetPath": "UIRoot/Button-001",
 | 
						||
                "targetName": "Button",
 | 
						||
                "maskShape": "rect",
 | 
						||
                "maskOffset": { "x": 0, "y": 0 },
 | 
						||
                "maskRadius": 10,
 | 
						||
                "textPosition": { "x": 0, "y": -250 },
 | 
						||
                "arrowDirection": "up",
 | 
						||
                "arrowOffset": { "x": 0, "y": -50 },
 | 
						||
                "skippable": true,
 | 
						||
                "autoNextStep": true
 | 
						||
            }
 | 
						||
        ]
 | 
						||
    },
 | 
						||
    "skipGuide": {
 | 
						||
        "id": "skip_guide_test",
 | 
						||
        "name": "跳过引导测试",
 | 
						||
        "version": "1.0.0",
 | 
						||
        "description": "测试引导跳过功能的简化配置",
 | 
						||
        "priority": 2,
 | 
						||
        "enabled": true,
 | 
						||
        "trigger": {
 | 
						||
            "type": "event",
 | 
						||
            "params": {
 | 
						||
                "event": "skip_guide_requested"
 | 
						||
            }
 | 
						||
        },
 | 
						||
        "startStepId": "step_skip_confirm",
 | 
						||
        "repeatable": true,
 | 
						||
        "steps": [
 | 
						||
            {
 | 
						||
                "id": "step_skip_confirm",
 | 
						||
                "type": "text",
 | 
						||
                "title": "确认跳过",
 | 
						||
                "description": "您确定要跳过新手引导吗?跳过后您将错过一些重要的游戏介绍。",
 | 
						||
                "textPosition": { "x": 0, "y": 0 },
 | 
						||
                "skippable": false,
 | 
						||
                "branches": [
 | 
						||
                    {
 | 
						||
                        "id": "branch_confirm_skip",
 | 
						||
                        "condition": {
 | 
						||
                            "type": "user_choice",
 | 
						||
                            "params": { "choice": "confirm" },
 | 
						||
                            "expression": "choice === 'confirm'"
 | 
						||
                        },
 | 
						||
                        "nextStepId": "step_skip_completed"
 | 
						||
                    },
 | 
						||
                    {
 | 
						||
                        "id": "branch_cancel_skip",
 | 
						||
                        "condition": {
 | 
						||
                            "type": "user_choice",
 | 
						||
                            "params": { "choice": "cancel" },
 | 
						||
                            "expression": "choice === 'cancel'"
 | 
						||
                        },
 | 
						||
                        "nextStepId": "step_return_to_guide"
 | 
						||
                    }
 | 
						||
                ],
 | 
						||
                "customData": {
 | 
						||
                    "showConfirmDialog": true,
 | 
						||
                    "confirmText": "确认跳过",
 | 
						||
                    "cancelText": "继续引导"
 | 
						||
                }
 | 
						||
            },
 | 
						||
            {
 | 
						||
                "id": "step_skip_completed",
 | 
						||
                "type": "text",
 | 
						||
                "title": "跳过完成",
 | 
						||
                "description": "新手引导已跳过。您可以在设置菜单中重新开始引导。",
 | 
						||
                "textPosition": { "x": 0, "y": 0 },
 | 
						||
                "waitTime": 2000,
 | 
						||
                "skippable": false,
 | 
						||
                "customData": {
 | 
						||
                    "skipCompleted": true,
 | 
						||
                    "enableReplayButton": true
 | 
						||
                }
 | 
						||
            },
 | 
						||
            {
 | 
						||
                "id": "step_return_to_guide",
 | 
						||
                "type": "text",
 | 
						||
                "title": "继续引导",
 | 
						||
                "description": "好的,让我们继续新手引导。",
 | 
						||
                "textPosition": { "x": 0, "y": 0 },
 | 
						||
                "waitTime": 1000,
 | 
						||
                "skippable": false,
 | 
						||
                "customData": {
 | 
						||
                    "returnToMainGuide": true,
 | 
						||
                    "resumeStepId": "step_welcome"
 | 
						||
                }
 | 
						||
            }
 | 
						||
        ]
 | 
						||
    }
 | 
						||
}
 |