public SysBulletScreenFormatVo GetBarrageFormatById(string _id) { if (!this.mFormatDict.ContainsKey(_id)) { SysBulletScreenFormatVo dataById = BaseDataMgr.instance.GetDataById <SysBulletScreenFormatVo>(_id); this.mFormatDict.Add(_id, dataById); } return(this.mFormatDict[_id]); }
private void SetFormat(string _id) { SysBulletScreenFormatVo sysBulletScreenFormatVo = ModelManager.Instance.Get_BarrageFormat_X(_id); bool flag = sysBulletScreenFormatVo.isGradient == 1; this.isGradient = flag; this.colorStr = ((!flag) ? sysBulletScreenFormatVo.font_color : "255,255,255,255"); this.gradientTopStr = ((!flag) ? "255,255,255,255" : sysBulletScreenFormatVo.gradient_top); this.gradientBottomStr = ((!flag) ? "255,255,255,255" : sysBulletScreenFormatVo.gradient_bottom); this.outlineColorStr = sysBulletScreenFormatVo.outline_color; this.fontSize = sysBulletScreenFormatVo.font_size; this.spriteName = sysBulletScreenFormatVo.bullet_screen_background; }