// Token: 0x0600025E RID: 606 RVA: 0x000155E8 File Offset: 0x000137E8 private void WriteTex(BinaryWriter writer, string propName, TargetMaterial tm, TargetTexture trgtTex) { this.Write(writer, new string[] { "tex" }); this.Write(writer, new string[] { propName }); string text = "tex2d"; if (trgtTex == null || trgtTex.tex == null) { text = "null"; } this.Write(writer, new string[] { text }); string a; if ((a = text) != null) { if (!(a == "tex2d")) { if (!(a == "null")) { if (!(a == "texRT")) { return; } writer.Write(string.Empty); writer.Write(string.Empty); } } else if (trgtTex.fileChanged || trgtTex.colorChanged) { this.Write(writer, new string[] { trgtTex.EditFileNameNoExt() }); this.Write(writer, new string[] { trgtTex.EditTxtPath() }); this.Write(writer, tm.editedMat.material.GetTextureOffset(propName)); this.Write(writer, tm.editedMat.material.GetTextureScale(propName)); return; } } }
private void WriteTex(BinaryWriter writer, string propName, TargetMaterial tm, TargetTexture trgtTex) { Write(writer, "tex"); Write(writer, propName); var sub = "tex2d"; if (trgtTex == null || trgtTex.tex == null) { sub = "null"; } Write(writer, sub); switch (sub) { case "tex2d": // カラー変更時にはファイル生成するため、ファイル名も変更が必要 if (trgtTex.fileChanged || trgtTex.colorChanged) { Write(writer, trgtTex.EditFileNameNoExt()); // 拡張子不要 //Write(writer, trgtTex.EditFileName()); Write(writer, trgtTex.EditTxtPath()); Write(writer, tm.editedMat.material.GetTextureOffset(propName)); Write(writer, tm.editedMat.material.GetTextureScale(propName)); } break; case "null": break; case "texRT": // texRTはない writer.Write(string.Empty); writer.Write(string.Empty); break; } }