public static bool Get_IsBarrageLocked_X(this ModelManager mmng, SysBulletScreenVo item) { if (item == null) { return(false); } if (item.type == "1") { return(false); } if (item.type == "2") { string[] array = ModelManager.Instance.Get_userData_X().captionIds.Split(new char[] { ',' }); if (array == null || array.Length == 0) { return(true); } string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string a = array2[i]; if (a == item.id.ToString()) { return(false); } } return(true); } else { if (!item.type.StartsWith("3")) { return(false); } string[] array3 = item.type.Split(new char[] { '|' }); if (array3.Length < 2) { return(false); } int num = int.Parse(array3[1]); return(num > ModelManager.Instance.Get_userData_X().VIP); } }
public void SetData(SysBulletScreenVo _param) { if (_param == null) { return; } base.gameObject.name = _param.id.ToString(); this._cfgDataVo = _param; this.content = LanguageManager.Instance.GetStringById(_param.content); BarrageItem component = NGUITools.AddChild(base.transform.FindChild("select").gameObject, Singleton <BarrageEmitterView> .Instance.mItemCache).GetComponent <BarrageItem>(); BarrageEmitterView.SetFormat(_param.format.ToString(), component); component.transform.GetComponent <TweenPosition>().enabled = false; component.transform.localPosition = new Vector3(130f, 0f, 0f); component.fontSize = 60; component.ComposeText(Singleton <BarrageEmitterView> .Instance.barragePrefix, base.transform.Find("label").GetComponent <UILabel>().text); }