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]); }
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); } }
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); }
public override void updateItem(GameObject item, int index) { Ladders_FriendItem button = item.GetComponent <Ladders_FriendItem> (); button.M_update(friends[index]); }