示例#1
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        Msg.text     = popupData.Msg;
        OkAction     = popupData.OkAction;
        CancelAction = popupData.CancelAction;
        ButtonType   = popupData.ButtonType;

        switch (ButtonType)
        {
        case BUTTON_TYPE.ONE:
            OK.gameObject.SetActive(false);
            Cancel.gameObject.SetActive(false);
            Big_OK.gameObject.SetActive(true);
            break;

        case BUTTON_TYPE.TWO:
            OK.gameObject.SetActive(true);
            Cancel.gameObject.SetActive(true);
            Big_OK.gameObject.SetActive(false);
            break;

        default:
            break;
        }
    }
示例#2
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        TrainingCount = popupData.Count;
        EndAction     = popupData.EndAction;

        TrainingType  = TKManager.Instance.GetTrainingType();
        PoseType      = TKManager.Instance.GetPoseType();
        AngleTypeList = TKManager.Instance.GetAngleType();

        DateTime time = new DateTime(DateTime.Now.Ticks);

        Date.text = string.Format("{0:D2}월 {1:D2}일", time.Month, time.Day);

        if (TrainingType == CommonData.TRAINING_TYPE.TRAINING_POSE)
        {
            TrainingPoint = TrainingCount * 3;
            Title.text    = string.Format("{0} {1}Point", CommonFunc.ConvertPoseTypeEngStr(PoseType), TrainingPoint);
        }
        else
        {
            TrainingPoint = 0;
            Title.text    = string.Format("{0} {1}회", CommonFunc.ConvertTrainingTypeEngStr(TrainingType, false), TrainingCount);
        }

        Msg.text  = "";
        StarCount = 5;
        RefreshStar();
    }
示例#3
0
    public override void SetData(PopupBaseData data)
    {
        PopupData popupData = data as PopupData;

        TutorialType = popupData.TutorialType;

        for (int i = 0; i < TutorialSlotList.Count; i++)
        {
            DestroyImmediate(TutorialSlotList[i].gameObject);
        }
        TutorialSlotList.Clear();

        if (DataManager.Instance.TutorialDataList.ContainsKey(TutorialType))
        {
            var list = DataManager.Instance.TutorialDataList[TutorialType];
            for (int i = 0; i < list.Count; i++)
            {
                var temp_data = list[i];
                var slotObj   = Instantiate(Resources.Load("Prefab/UITutorialSlot"), ListObj.transform) as GameObject;
                var slot      = slotObj.GetComponent <UITutorialSlot>();
                slot.SetData(temp_data);
                TutorialSlotList.Add(slot);
            }
        }
    }
示例#4
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        HelpImgList = popupData.HelpImgList;

        CommonFunc.SetImageFile(HelpImgList[0], ref HelpImg);
        HelpImgList.RemoveAt(0);
    }
示例#5
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        Firstuser = popupData.FirstUser;
        if (Firstuser)
        {
            Title.text = "회원가입";
            OK.gameObject.SetActive(false);
            Cancel.gameObject.SetActive(false);
            BigOK.gameObject.SetActive(true);
            TermsObj.gameObject.SetActive(false);
        }
        else
        {
            Title.text = "정보변경";
            OK.gameObject.SetActive(true);
            Cancel.gameObject.SetActive(true);
            BigOK.gameObject.SetActive(false);
            TermsObj.gameObject.SetActive(false);
        }

        OkAction = popupData.OkAction;

        Name.gameObject.SetActive(false);
        NameDesc.gameObject.SetActive(false);
        NameDescObj.gameObject.SetActive(false);
        Name.text = TKManager.Instance.Mydata.Name;
        if (string.IsNullOrWhiteSpace(TKManager.Instance.Mydata.Name))
        {
            Name.text = "";
            Name.gameObject.SetActive(true);
        }
        else
        {
            NameDescObj.gameObject.SetActive(true);
            NameDesc.gameObject.SetActive(true);
            Name.text     = TKManager.Instance.Mydata.Name;
            NameDesc.text = TKManager.Instance.Mydata.Name;
        }

        Number.text = TKManager.Instance.Mydata.PhoneNumber;
        Gender      = TKManager.Instance.Mydata.Gender;

        CommonFunc.RefreshThumbnail(ref Thumbnail);

        RefreahUI();
        RefreshTermsEnable();
    }
示例#6
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        OkAction      = popupData.OkAction;
        ID_Input.text = "";
        PW_Input.text = "";
    }
示例#7
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData != null)
        {
            FriendListFreshAction = popupData.FriendListFreshAction;
        }
        else
        {
            FriendListFreshAction = null;
        }

        RecommenderCode.text = TKManager.Instance.Mydata.UserCode;
    }
示例#8
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        OkAction = popupData.OkAction;

        AgreeEnable_1 = false;
        AgreeEnable_2 = false;

        RefreshUI();
    }
示例#9
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        PurchaseIndex = popupData.PurchaseIndex;
        Purchasedata  = TKManager.Instance.Mydata.GetPurchaseData(PurchaseIndex);

        if (Purchasedata == null)
        {
            OnClickCancel();
        }

        CommonFunc.SetImageFile(TextureCacheManager.Instance.GetTexture(Purchasedata.InfoURL), ref Img);
    }
示例#10
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        GiftconIndex    = popupData.GiftconIndex;
        Giftcondata     = TKManager.Instance.Mydata.GetGiftconData(GiftconIndex);
        RefreshUIAction = popupData.RefreshUIAction;

        if (Giftcondata == null)
        {
            OnClickOK();
        }

        CommonFunc.SetImageFile(TextureCacheManager.Instance.GetTexture(Giftcondata.GiftconURL), ref Img);
    }
示例#11
0
    public override void SetData(PopupBaseData data)
    {
        var popupData = data as PopupData;

        if (popupData == null)
        {
            return;
        }

        Man = popupData.Man;
        if (popupData.Man)
        {
            Title.text = "남자";
            REF_DATA   = CommonData.REF_MAN;
        }
        else
        {
            Title.text = "여자";
            REF_DATA   = CommonData.REF_WOMAN;
        }
        RefreshData();
    }
示例#12
0
    public override void SetData(PopupBaseData data)
    {
        var currTime = DateTime.Now;

        if (currTime.Month != TKManager.Instance.CurrSeasonTime.Month ||
            currTime.Day != TKManager.Instance.CurrSeasonTime.Day ||
            currTime.Year != TKManager.Instance.CurrSeasonTime.Year)
        {
            PopupMgr.Instance.ShowPopup(PopupMgr.POPUP_TYPE.MSG, new PopupMsg.PopupData("시즌 보상을 받을 수 없습니다."));
            PopupMgr.Instance.DismissPopup();
        }

        if (RewardSelectSlotList.Count <= 0)
        {
            for (int i = 0; i < DataManager.Instance.SeasonRewardDataList.Count; i++)
            {
                var temp_data = DataManager.Instance.SeasonRewardDataList[i];
                var slotObj   = Instantiate(Resources.Load("Prefab/UIRewardSelectSlot"), ListObj.transform) as GameObject;
                var slot      = slotObj.GetComponent <UIRewardSelectSlot>();
                slot.SetData(temp_data, RefreshSlotUI);
                RewardSelectSlotList.Add(slot);
            }
        }
    }
示例#13
0
文件: Popup.cs 项目: ttuktaksoft/golf
 public abstract void SetData(PopupBaseData data);
示例#14
0
 public override void SetData(PopupBaseData data)
 {
 }
示例#15
0
 public override void SetData(PopupBaseData data)
 {
     StartWebView();
 }