コード例 #1
0
 protected override void InitUI()
 {
     base.InitUI();
     this.m_spFaceIcon = base.FindTransform("FaceIcon").GetComponent <ImageSequenceFrames>();
     this.ResetAll();
     base.get_gameObject().GetComponent <Button>().get_onClick().AddListener(new UnityAction(this.OnBtnClick));
 }
コード例 #2
0
    private void DoPlayProgressFX()
    {
        ImageSequenceFrames component = base.FindTransform("LoadingFX").GetComponent <ImageSequenceFrames>();

        component.IsAnimating = false;
        List <string> list = new List <string>();

        for (int i = 0; i <= 24; i++)
        {
            list.Add("cat000" + i.ToString("D2"));
        }
        component.Scale = 1f;
        component.PlayAnimation2Loop(list, 0.0333333351f);
    }
コード例 #3
0
    private void Awake()
    {
        base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
        this.LINE_WIDTH            = 290f;
        this.m_sender              = (base.FindTransform("Sender") as RectTransform);
        this.m_spSenderBG          = base.FindTransform("Sender").GetComponent <Image>();
        this.m_spSenderIcon        = base.FindTransform("SenderIcon").GetComponent <Image>();
        this.m_lblSenderName       = base.FindTransform("SenderName").GetComponent <Text>();
        this.m_lblSenderTime       = base.FindTransform("SenderTime").GetComponent <Text>();
        this.m_spContentBg         = base.FindTransform("ContentBg").GetComponent <Image>();
        this.m_quContentBg         = (base.FindTransform("QuestionContentBg") as RectTransform);
        this.m_quContentBg2        = (base.FindTransform("QuestionContentBg2") as RectTransform);
        this.m_quInfoBg            = base.FindTransform("QuestionInfoBg").GetComponent <Image>();
        this.m_rectVIP             = (base.FindTransform("VIP") as RectTransform);
        this.m_leVIPName           = base.FindTransform("VIPName").GetComponent <LayoutElement>();
        this.m_leVIPLevel10        = base.FindTransform("VIPLevel10").GetComponent <LayoutElement>();
        this.m_leVIPLevel1         = base.FindTransform("VIPLevel1").GetComponent <LayoutElement>();
        this.m_spVIPLevel10        = base.FindTransform("VIPLevel10").GetComponent <Image>();
        this.m_spVIPLevel1         = base.FindTransform("VIPLevel1").GetComponent <Image>();
        this.m_rootContent         = (base.FindTransform("RootContent") as RectTransform);
        base.FaceParent            = this.m_rootContent;
        this.m_questionRootContent = (base.FindTransform("QuestionRootContent") as RectTransform);
        this.m_normalMsg           = base.FindTransform("NormalMsg").get_gameObject();
        this.m_questionMsg         = base.FindTransform("QuestionMsg").get_gameObject();
        this.m_questionContent     = base.FindTransform("QuestionContent").GetComponent <Text>();
        this.m_questionRootTitle   = base.FindTransform("QuestionRootTitle").get_gameObject();
        this.m_questionTitle       = base.FindTransform("QuestionTitle").GetComponent <Text>();
        this.m_rootVoice           = (base.FindTransform("RootVoice") as RectTransform);
        this.m_rootVoiceIcon       = (base.FindTransform("RootVoiceIcon") as RectTransform);
        this.m_isfVoiceIcon        = base.FindTransform("RootVoiceIcon").GetComponent <ImageSequenceFrames>();
        this.m_rootVoiceDOT        = (base.FindTransform("RootVoiceDOT") as RectTransform);
        this.m_lblRootVoiceTime    = base.FindTransform("RootVoiceTime").GetComponent <Text>();
        ButtonCustom expr_281 = base.FindTransform("SenderIcon").GetComponent <ButtonCustom>();

        expr_281.onClickCustom = (ButtonCustom.VoidDelegateObj)Delegate.Combine(expr_281.onClickCustom, new ButtonCustom.VoidDelegateObj(this.OnClickHeadIcon));
        this.m_btnContentBg    = this.m_spContentBg.GetComponent <Button>();
        this.m_btnContentBg.get_onClick().AddListener(new UnityAction(this.OnClickBackground));
    }
コード例 #4
0
ファイル: Item2Face.cs プロジェクト: unseen-code/tianqi_src
 protected override void InitUI()
 {
     base.InitUI();
     this.m_spFaceIcon = base.FindTransform("FaceIcon").GetComponent <ImageSequenceFrames>();
     this.ResetAll();
 }