Example #1
0
    public void SetData(s_signinInfo info, int signInIndex)
    {
        string str = string.Format("{0} x{1}", GetName(info), info.item_num);

        NGUIUtil.SetLableText(MyHead.LblItem, str);
        SetItemIcon((SignInRewardType)info.reward_type, info.item_type);
        string str1 = string.Format(NGUIUtil.GetStringByKey(70000266), signInIndex + 1);

        NGUIUtil.SetLableText(MyHead.LblTips, str1);
        NGUIUtil.SetLableText(MyHead.LblHaveNum, ItemM.GetItemCount(info));
        NGUIUtil.SetLableText(MyHead.LblDescribe, ItemM.GetItemTitle(info));
    }