Exemplo n.º 1
0
    public override void initButton(int i)
    {
        nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as LaddersFriendsWindow).friendsBarPrefab);
        nodeList [i].SetActive(true);
        nodeList [i].name = StringKit.intToFixString(i + 1);
        Ladders_FriendItem button = nodeList [i].GetComponent <Ladders_FriendItem> ();

        button.M_update(friends[i]);
    }
Exemplo n.º 2
0
 public override void updateItem(GameObject item, int index)
 {
     if (fawinTapType == 4)
     {
         Ladders_FriendItem button = item.GetComponent <Ladders_FriendItem> ();
         button.M_update(ic[index]);
     }
     else
     {
         friendsItem button = item.GetComponent <friendsItem> ();
         button.initInfo(fawinTapType, ic[index], fawinTapType == 5);
     }
 }
Exemplo n.º 3
0
    public override void initButton(int i)
    {
        if (fawinTapType == 4)
        {
            if (nodeList[i] == null)
            {
                nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as LaddersFriendsWindow).friendsBarPrefab);
            }
            nodeList[i].SetActive(true);
            nodeList[i].name = StringKit.intToFixString(i + 1);
            Ladders_FriendItem button_4 = nodeList[i].GetComponent <Ladders_FriendItem> ();
            button_4.M_update(ic[i]);
            return;
        }



        if (fawinTapType == 3)
        {
            if (nodeList[i] == null)
            {
                nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as GuildInviteMinWindow).friendsBarPrefab);
            }
        }
        else
        {
            if (nodeList[i] == null)
            {
                nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as IFriendsWindow).FriendsBarPrefab);
            }
        }

        nodeList[i].name = StringKit.intToFixString(i + 1);
        friendsItem button = nodeList[i].GetComponent <friendsItem> ();

        button.fatherWindow = fatherWindow;
        button.initInfo(fawinTapType, ic[i], false);
    }
Exemplo n.º 4
0
    public override void updateItem(GameObject item, int index)
    {
        Ladders_FriendItem button = item.GetComponent <Ladders_FriendItem> ();

        button.M_update(friends[index]);
    }