Beispiel #1
0
        public override bool Init(GamePromotionView masterView)
        {
            m_masterVeiw = masterView;

            withdrawText.text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "WithdrawDesc");
            withDrawBtn.GetComponentInChildren <Text>().text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "WithdrawBtnDesc");
            withDrawBtn.onClick.AddListener(OnWithdrawBtnClick);
            myUserPayInfoText.text  = String.Format(ULocalizationService.Instance.Get("UIView", "GamePromotion", "MyUserPayInfo"), 0);
            joinedRecentlyText.text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "JoinedRecently");
            accontText.text         = ULocalizationService.Instance.Get("UIView", "GamePromotion", "Account");
            totalPayText.text       = ULocalizationService.Instance.Get("UIView", "GamePromotion", "TotalPay");
            totalExchangeText.text  = ULocalizationService.Instance.Get("UIView", "GamePromotion", "TotalExchange");
            createDatetimeText.text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "CreateDatetime");
            privateLinkText.text    = "";
            copyBtn.GetComponentInChildren <Text>().text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "CopyBtnText");
            copyBtn.onClick.AddListener(OnCopyBtnClick);
            QRCodeText.text      = ULocalizationService.Instance.Get("UIView", "GamePromotion", "QRCodeDesc");
            screenShortText.text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "ScreenShortDesc");
            screenshortImage.GetComponent <Button>().onClick.AddListener(OnScreenshortBtnClick);
            TaiTanLinkBtn.GetComponentInChildren <Text>().text = ULocalizationService.Instance.Get("UIView", "GamePromotion", "TaiTanLinkBtnDesc");
            TaiTanLinkBtn.onClick.AddListener(OnTaiTanLinkBtnClick);

            if (!InitTotalNumGamesFrame())
            {
                return(false);
            }

            InitShareRecordData();

            SetMyUserListData();

            return(true);
        }
Beispiel #2
0
        public override bool Init(GamePromotionView masterView)
        {
            m_reqUrlList = new LinkedList <string>();

            m_masterView = masterView;
            LoadWebBrowser();

            if (m_canvGroup == null)
            {
                m_canvGroup = this.GetComponent <CanvasGroup>();
            }

            return(true);
        }
Beispiel #3
0
 public abstract bool Init(GamePromotionView masterView);