| | |
| | | tabButtons[i] = go.GetComponent<GroupButtonEx>(); |
| | | tabButtons[i].selectIcon.SetSprite(data.iconName); |
| | | tabButtons[i].selectIcon.SetNativeSize(); |
| | | tabButtons[i].unSelectIcon.SetSprite(data.unSelectIconName); |
| | | tabButtons[i].unSelectIcon.SetNativeSize(); |
| | | tabButtons[i].title.text = Language.Get(data.name); |
| | | tabButtons[i].redpoint.redpointId = data.redpointID; |
| | | tabButtons[i].SetActive(true); |
| | |
| | | public int redpointID; |
| | | public string name; |
| | | public string iconName; //默认显示的图标(选中) |
| | | public string unSelectIconName; //图标(未选中) |
| | | } |