引导改名
parent
a0b018d71a
commit
21f5c1b4ec
|
|
@ -871,6 +871,8 @@ namespace Gameplay.Guide
|
|||
|
||||
public override async void Complete()
|
||||
{
|
||||
GuideManager.Instance.IsChangeName = true;
|
||||
|
||||
if (GameStateManager.Instance.GetCurState() is GameStateStory gameStateStory)
|
||||
gameStateStory.IsReady = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -36,6 +36,14 @@ namespace Gameplay.Guide
|
|||
/// </summary>
|
||||
public bool IsControlFloor = true;
|
||||
/// <summary>
|
||||
/// 是否改名
|
||||
/// </summary>
|
||||
public bool IsChangeName = true;
|
||||
/// <summary>
|
||||
/// 是否跳过剧情
|
||||
/// </summary>
|
||||
public bool IsSkipStory = false;
|
||||
/// <summary>
|
||||
/// 指定地板索引
|
||||
/// </summary>
|
||||
public int FloorIndex = -1;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using Cysharp.Threading.Tasks;
|
||||
using Framework;
|
||||
using Gameplay;
|
||||
using Gameplay.Guide;
|
||||
using Gameplay.Net;
|
||||
using Gameplay.Performance;
|
||||
using Gameplay.Story;
|
||||
|
|
@ -300,9 +301,15 @@ public class UIStoryMainController : UIWindow
|
|||
//...
|
||||
}
|
||||
|
||||
private async void OnClickSkip()
|
||||
private void OnClickSkip()
|
||||
{
|
||||
EventManager.Instance.Send(EventManager.EventName.STORY_CLICK_SKIP);
|
||||
if (GuideManager.Instance.IsGuiding && !GuideManager.Instance.IsChangeName)
|
||||
{
|
||||
GuideManager.Instance.IsSkipStory = true;
|
||||
EventManager.Instance.Send(EventManager.EventName.STORY_OPEN_NAME_PANEL);
|
||||
}
|
||||
else
|
||||
EventManager.Instance.Send(EventManager.EventName.STORY_CLICK_SKIP);
|
||||
//CloseWindow();
|
||||
// if (!_isSkipping)
|
||||
// {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using Code.Scripts.Gameplay.Game;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Framework;
|
||||
using Gameplay;
|
||||
using Gameplay.Guide;
|
||||
using Gameplay.Net;
|
||||
using Gameplay.Utils;
|
||||
using PhxhSDK;
|
||||
|
|
@ -82,10 +84,15 @@ public class UI_WriteNameController : UIWindow
|
|||
{
|
||||
NetHelper.SetPlayerName(name);
|
||||
|
||||
if (GameStateManager.Instance.GetCurState() is GameStateStory gameStateStory)
|
||||
gameStateStory.IsReady = true;
|
||||
|
||||
OnClose();
|
||||
|
||||
if (GuideManager.Instance.IsGuiding)
|
||||
{
|
||||
if(GuideManager.Instance.IsSkipStory)
|
||||
EventManager.Instance.Send(EventManager.EventName.STORY_CLICK_SKIP);
|
||||
else if (GameStateManager.Instance.GetCurState() is GameStateStory gameStateStory)
|
||||
gameStateStory.IsReady = true;
|
||||
}
|
||||
}
|
||||
|
||||
#region 回调方法
|
||||
|
|
|
|||
|
|
@ -316,9 +316,9 @@
|
|||
{
|
||||
"ID": 37,
|
||||
"BgImg": "",
|
||||
"UpImg": "",
|
||||
"MidImg": "",
|
||||
"DownImg": "",
|
||||
"UpImg": "1",
|
||||
"MidImg": "2",
|
||||
"DownImg": "3",
|
||||
"EffectIds": []
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -469,7 +469,9 @@
|
|||
"NextId": 34,
|
||||
"StepStartDelay": 0,
|
||||
"GuideStepType": 16,
|
||||
"GuideTypeParams": [],
|
||||
"GuideTypeParams": [
|
||||
"False"
|
||||
],
|
||||
"GuideCompleteType": 22,
|
||||
"CompleteTypeParams": [],
|
||||
"ArrowDirection": 0,
|
||||
|
|
@ -487,7 +489,9 @@
|
|||
"NextId": 35,
|
||||
"StepStartDelay": 0,
|
||||
"GuideStepType": 16,
|
||||
"GuideTypeParams": [],
|
||||
"GuideTypeParams": [
|
||||
"False"
|
||||
],
|
||||
"GuideCompleteType": 4,
|
||||
"CompleteTypeParams": [
|
||||
"Interface/UI_WriteName"
|
||||
|
|
|
|||
|
|
@ -149,6 +149,6 @@
|
|||
},
|
||||
{
|
||||
"FaceName": "默认玛丽安娜",
|
||||
"EmojiId": 0
|
||||
"EmojiId": 37
|
||||
}
|
||||
]
|
||||
Loading…
Reference in New Issue