修改第236步
This commit is contained in:
parent
65996df570
commit
b48ed62458
2242
Assets/Resources/UIPrefabs/AnswerQuestionsImgPrefab.prefab
Normal file
2242
Assets/Resources/UIPrefabs/AnswerQuestionsImgPrefab.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cc95cd14b99825a4586dbd049d2113bc
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -767,14 +767,20 @@ if(UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())return
|
|||||||
public void AnswerSystemInStep(NiuData step)
|
public void AnswerSystemInStep(NiuData step)
|
||||||
{
|
{
|
||||||
string[] answers = step.OptionsAll.Split("|");
|
string[] answers = step.OptionsAll.Split("|");
|
||||||
PopUpMng.PopAnswerQuestions(step.Question, answers, GetOptionIndex(step.OptionRight), () =>
|
if (step.id == 236)
|
||||||
{
|
{
|
||||||
if (step.id == 236)
|
PopUpMng.PopAnswerImgQuestions(step.Question, answers, GetOptionIndex(step.OptionRight), () =>
|
||||||
{
|
{
|
||||||
UI_Manage.Instance.ClosePanel("ManualPanel");
|
JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(_CurSceneStep.QNextNum), false);
|
||||||
}
|
});
|
||||||
JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(_CurSceneStep.QNextNum), false);
|
}
|
||||||
});
|
else
|
||||||
|
{
|
||||||
|
PopUpMng.PopAnswerQuestions(step.Question, answers, GetOptionIndex(step.OptionRight), () =>
|
||||||
|
{
|
||||||
|
JumpTimeline(GameManager.Instance._DataNiuHandler.GetNextStep(_CurSceneStep.QNextNum), false);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 步骤是过渡类型的处理方式
|
/// 步骤是过渡类型的处理方式
|
||||||
|
|||||||
@ -501,10 +501,10 @@ namespace ZXK.LouDiXvMuNiu
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (obj.id == 236)
|
// if (obj.id == 236)
|
||||||
{
|
// {
|
||||||
GameObject ImgManualGeo = UI_Manage.Instance.ShowPanel("ManualPanel", Type.GetType("CG.Framework.UIBase"), UIGroup.Tip);
|
// GameObject ImgManualGeo = UI_Manage.Instance.ShowPanel("ManualPanel", Type.GetType("CG.Framework.UIBase"), UIGroup.Tip);
|
||||||
}
|
// }
|
||||||
NiuSceneMng._Instance.AnswerSystemInStep(obj);
|
NiuSceneMng._Instance.AnswerSystemInStep(obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,6 +99,46 @@ namespace CG.UTility
|
|||||||
alertGeo.transform.SetAsLastSibling();
|
alertGeo.transform.SetAsLastSibling();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 弹出带有参考图的选择题界面(偶数个选项)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="question"></param>
|
||||||
|
/// <param name="answer"></param>
|
||||||
|
/// <param name="rightNumber"></param>
|
||||||
|
/// <param name="configBtnEvent"></param>
|
||||||
|
public static void PopAnswerImgQuestions(string question, string[] answer,int rightNumber, System.Action configBtnEvent)
|
||||||
|
{
|
||||||
|
_TriAble = false;
|
||||||
|
GameObject alertGeo = UI_Manage.Instance.ShowPanel("AnswerQuestionsImgPrefab", System.Type.GetType("CG.Framework.UIBase"), UIGroup.Tip);
|
||||||
|
question = question.Replace("\u0020", "\u00A0");
|
||||||
|
alertGeo.transform.Find("Mask/Connet/AnswerText").GetComponent<Text>().text = question;
|
||||||
|
Transform answerContain = alertGeo.transform.Find("Mask/Connet/QuestionsConnet");
|
||||||
|
for (int i = 0; i < answerContain.childCount; i++)
|
||||||
|
{
|
||||||
|
if(i< answer.Length)
|
||||||
|
{
|
||||||
|
answerContain.GetChild(i).gameObject.SetActive(true);
|
||||||
|
answerContain.GetChild(i).Find("Text").GetComponent<Text>().text = answer[i];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
answerContain.GetChild(i).gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
alertGeo.transform.Find("Mask/Connet/CloseButton").GetComponent<Button>().onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
Image rightImg = answerContain.GetChild(rightNumber).Find("answerItemRight").GetComponent<Image>();
|
||||||
|
rightImg.DOFade(1.0f,0.3f).SetLoops(6,LoopType.Yoyo).OnComplete(() =>
|
||||||
|
{
|
||||||
|
_TriAble = true;
|
||||||
|
configBtnEvent?.Invoke();
|
||||||
|
GameObject.Destroy(alertGeo);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
alertGeo.transform.SetAsLastSibling();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
/// 弹出三个视频选项的界面
|
/// 弹出三个视频选项的界面
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="question"></param>
|
/// <param name="question"></param>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user