|
@@ -327,14 +327,26 @@ namespace GFGGame
|
|
|
|
|
|
private void OnClickBtnBack()
|
|
private void OnClickBtnBack()
|
|
{
|
|
{
|
|
- AlertUI.Show("是否确定退出?")
|
|
|
|
- .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
|
|
|
|
- {
|
|
|
|
- backView();
|
|
|
|
- });
|
|
|
|
|
|
+ if (!IsTeaPart) {
|
|
|
|
+ AlertUI.Show("是否确定退出?")
|
|
|
|
+ .SetLeftButton(true, "否").SetRightButton(true, "是", (object data) =>
|
|
|
|
+ {
|
|
|
|
+ backView();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ AlertUI.Show("当期搭配未保存,是否放弃提交搭配?")
|
|
|
|
+ .SetLeftButton(true, "放弃搭配", (object data) =>
|
|
|
|
+ {
|
|
|
|
+ backView();
|
|
|
|
+ }).SetRightButton(true, "提交搭配", (object data) =>
|
|
|
|
+ {
|
|
|
|
+ ChangeTeapartyDressup();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
|
|
- //ViewManager.Show<StoryChapterView>(StoryDataManager.currentChapter);
|
|
|
|
- }
|
|
|
|
|
|
+ //ViewManager.Show<StoryChapterView>(StoryDataManager.currentChapter);
|
|
|
|
+ }
|
|
|
|
|
|
private void OnClickBtnHome()
|
|
private void OnClickBtnHome()
|
|
{
|
|
{
|