Browse Source

open event 버튼 블라킹

sound
ldh 1 year ago
parent
commit
cc647107d7
  1. 42
      Assets/_2_0Script/Mgr/GameUIMgr.cs

42
Assets/_2_0Script/Mgr/GameUIMgr.cs

@ -72,7 +72,7 @@ public class GameUIMgr : MonoBehaviour
private GameObject imgMenuPanel;
private TextMeshProUGUI txtEventButton;
private GameObject btnDungeonOut;
private GameObject btnRewardEnvet;
private GameObject btnOpenOpenRewardEvent;
private TextMeshProUGUI txtRewardEvent;
private GameObject mainLeftBottomSet;
@ -298,11 +298,17 @@ public class GameUIMgr : MonoBehaviour
txtEventButton.text = LocalizationText.GetText("event_title");
btnDungeonOut = mainRightTopSet.transform.Find("btnDungeonOut").gameObject;
dungeonButton = mainLeftBottomSet.transform.Find("BtnDungeon").GetComponent<Button>();
btnRewardEnvet = canvasRight.transform.Find("btnOpenRewardEvent").gameObject;
txtRewardEvent = btnRewardEnvet.transform.Find("txt").GetComponent<TextMeshProUGUI>();
if (DataHandler.GetPlayRewardEvent().sid >= 1)
btnRewardEnvet.gameObject.SetActive(false);
btnOpenOpenRewardEvent = canvasRight.transform.Find("btnOpenRewardEvent").gameObject;
txtRewardEvent = btnOpenOpenRewardEvent.transform.Find("txt").GetComponent<TextMeshProUGUI>();
#if false //TODO: block open event open button
if (DataHandler.GetPlayRewardEvent().sid >= 1)
{
btnOpenOpenRewardEvent.gameObject.SetActive(false);
}
#else
btnOpenOpenRewardEvent.gameObject.SetActive(false);
#endif
txtCheckBox = mainRightTopSet.transform.Find("CheckBox").transform.Find("txtCheckBox").GetComponent<TextMeshProUGUI>();
toggleDungeonAuto = txtCheckBox.transform.Find("CheckBoxToggle").GetComponent<Toggle>();
trfZooms = new RectTransform[3];
@ -720,9 +726,9 @@ public class GameUIMgr : MonoBehaviour
public static void SCloseRewardEvent()
{
curMgr.btnRewardEnvet.SetActive(false);
curMgr.btnOpenOpenRewardEvent.SetActive(false);
}
#endregion Base
#endregion Base
#region Control Scene
// 메인 UI 켜기.
@ -738,8 +744,15 @@ public class GameUIMgr : MonoBehaviour
curMgr.mainRightTopSet.SetActive(righttop);
curMgr.mainRightBottomSet.SetActive(rightbottom);
curMgr.mainGroupPvp.SetActive(pvp);
if(DataHandler.GetPlayRewardEvent().sid < 1)
curMgr.btnRewardEnvet.SetActive(open);
#if false //TODO: block open event open button
if (DataHandler.GetPlayRewardEvent().sid < 1)
{
curMgr.btnOpenOpenRewardEvent.SetActive(open);
}
#else
curMgr.btnOpenOpenRewardEvent.gameObject.SetActive(false);
#endif
}
// 좌측 메인 그룹 켜고 끄기.
@ -2381,9 +2394,16 @@ public class GameUIMgr : MonoBehaviour
curMgr.btnEvent.SetActive(onoff);
curMgr.btnDungeonOut.SetActive(!onoff);
curMgr.hotTimePanel.SetActive(onoff);
if(DataHandler.GetPlayRewardEvent().sid < 1)
curMgr.btnRewardEnvet.SetActive(onoff);
#if false //TODO: block open event open button
if (DataHandler.GetPlayRewardEvent().sid < 1)
{
curMgr.btnOpenOpenRewardEvent.SetActive(onoff);
}
#else
curMgr.btnOpenOpenRewardEvent.gameObject.SetActive(false);
#endif
if (BattleMgr.CurrentBattleType == BattleMgr.BattleType.AwakenDungeon || BattleMgr.CurrentBattleType == BattleMgr.BattleType.GuardianDungeon)
{
curMgr.txtCheckBox.gameObject.SetActive(false);

Loading…
Cancel
Save