private void FilterTexture( ICollection <Material> slotMaterials, List <Texture2D> textures, Maid maid, EditTarget texEdit) { Material material = null; Texture2D texture = null; { if (slotMaterials != null) { material = slotMaterials.ElementAtOrDefault(texEdit.matNo); if (material != null) { texture = material.GetTexture(texEdit.propName) as Texture2D; } } } if (material == null || texture == null) { return; } FilterParam filterParam = GetFilterParam(maid, texEdit.slotName, material, texEdit.propName); if (!filterParam.Dirty.Value) { return; } FilterTexture(texture, filterParam); }
public void Update(Maid maid, Dictionary <string, List <Material> > slotMaterials, List <Texture2D> textures, EditTarget texEdit) { originalTexCache.Refresh(textures.ToArray()); FilterTexture(slotMaterials, textures, maid, texEdit); }
public bool UpdateTex(Maid maid, Material[] slotMaterials, EditTarget texEdit) { // material 抽出 => texture 抽出 if (slotMaterials.Length <= texEdit.matNo) return false; Material mat = slotMaterials[texEdit.matNo]; return UpdateTex(maid, mat, texEdit); }
public void Update(Maid maid, Dictionary<string, List<Material>> slotMaterials, List<Texture2D> textures, EditTarget texEdit ) { originalTexCache.Refresh(textures.ToArray()); FilterTexture(slotMaterials, textures, maid, texEdit); }
// Token: 0x0600008D RID: 141 RVA: 0x00008F68 File Offset: 0x00007168 public bool UpdateTex(Maid maid, Material[] slotMaterials, EditTarget texEdit) { if (slotMaterials.Length <= texEdit.matNo) { return(false); } Material mat = slotMaterials[texEdit.matNo]; return(this.UpdateTex(maid, mat, texEdit)); }
private void FilterTexture( IDictionary <string, List <Material> > slotMaterials, List <Texture2D> textures, Maid maid, EditTarget texEdit) { List <Material> materials; if (slotMaterials.TryGetValue(texEdit.slotName, out materials)) { FilterTexture(materials, textures, maid, texEdit); } }
public bool UpdateTex(Maid maid, Material[] slotMaterials, EditTarget texEdit) { // material 抽出 => texture 抽出 if (slotMaterials.Length <= texEdit.matNo) { return(false); } var mat = slotMaterials[texEdit.matNo]; return(UpdateTex(maid, mat, texEdit)); }
public bool UpdateTex(Maid maid, Material mat, EditTarget texEdit) { var tex2d = mat.GetTexture(texEdit.propName) as Texture2D; if (tex2d == null || string.IsNullOrEmpty(tex2d.name)) return false; var key = CreateKey(maid.Param.status.guid, texEdit.slotName, mat.name, tex2d.name); FilterParam filterParam = filterParams.GetOrAdd(key.ToString()); // スライダー変更がなければ何もしない if (!filterParam.IsDirty) return false; //LogUtil.DebugLogF("Update Texture. slot={0}, material={0}, tex={1}", texEdit.slotName, mat.name, tex2d.name); FilterTexture(tex2d, filterParam); return true; }
public bool UpdateTex(Maid maid, Material mat, EditTarget texEdit) { var tex2d = mat.GetTexture(texEdit.propName) as Texture2D; if (tex2d == null || string.IsNullOrEmpty(tex2d.name)) { return(false); } var key = CreateKey(maid.Param.status.guid, texEdit.slotName, mat.name, tex2d.name); FilterParam filterParam = filterParams.GetOrAdd(key.ToString()); // スライダー変更がなければ何もしない if (!filterParam.IsDirty) { return(false); } //LogUtil.DebugLogF("Update Texture. slot={0}, material={0}, tex={1}", texEdit.slotName, mat.name, tex2d.name); FilterTexture(tex2d, filterParam); return(true); }
// Token: 0x0600008E RID: 142 RVA: 0x00008F94 File Offset: 0x00007194 public bool UpdateTex(Maid maid, Material mat, EditTarget texEdit) { Texture2D texture2D = mat.GetTexture(texEdit.propName) as Texture2D; if (texture2D == null || string.IsNullOrEmpty(texture2D.name)) { return(false); } StringBuilder stringBuilder = this.CreateKey(new string[] { MaidHelper.GetGuid(maid), texEdit.slotName, mat.name, texture2D.name }); TextureModifier.FilterParam orAdd = this._filterParams.GetOrAdd(stringBuilder.ToString()); if (!orAdd.IsDirty) { return(false); } this.FilterTexture(texture2D, orAdd); return(true); }
private void FilterTexture( ICollection<Material> slotMaterials, List<Texture2D> textures, Maid maid, EditTarget texEdit) { Material material = null; Texture2D texture = null; { if ( slotMaterials != null ) { material = slotMaterials.ElementAtOrDefault(texEdit.matNo); if (material != null) { texture = material.GetTexture(texEdit.propName) as Texture2D; } } } if (material == null || texture == null) return; FilterParam filterParam = GetFilterParam(maid, texEdit.slotName, material, texEdit.propName); if (!filterParam.Dirty.Value) return; FilterTexture(texture, filterParam); }
private void FilterTexture( IDictionary<string, List<Material>> slotMaterials, List<Texture2D> textures, Maid maid, EditTarget texEdit) { List<Material> materials; if (slotMaterials.TryGetValue(texEdit.slotName, out materials)) { FilterTexture(materials, textures, maid, texEdit); } }