// Token: 0x06000191 RID: 401 RVA: 0x0000E8C0 File Offset: 0x0000CAC0 public ACCTexture(ACCTexture src) { this.original = src; this.propName = src.propName; this.type = src.type; this.prop = src.prop; this.propKey = src.propKey; this.editname = src.editname; this.filepath = src.filepath; this.texOffset = src.texOffset; this.texScale = src.texScale; this.toonType = src.toonType; }
public ACCTexture(ACCTexture src) { original = src; propName = src.propName; type = src.type; prop = src.prop; propKey = src.propKey; editname = src.editname; filepath = src.filepath; texOffset = src.texOffset; texScale = src.texScale; toonType = src.toonType; }
private void OpenFileBrowser(int matNo1, ACCTexture acctex) { fileBrowser = new FileBrowser( new Rect(0, 0, uiParams.fileBrowserRect.width, uiParams.fileBrowserRect.height), "テクスチャファイル選択", (path) => { fileBrowser = null; if (path == null) return; acctex.filepath = textureDir = Path.GetDirectoryName(path); string name = Path.GetFileName(path); if (acctex.editname != name) { acctex.editname = name; acctex.dirty = true; } ChangeTexFile(textureDir, acctex.editname, matNo1, acctex.propName); }); ResourceHolder resource = ResourceHolder.Instance; fileBrowser.DirectoryImage = resource.DirImage; fileBrowser.FileImage = resource.PictImage; fileBrowser.NoFileImage = resource.FileImage; fileBrowser.labelStyle = uiParams.listStyle; fileBrowser.SelectionPatterns = new string[] { "*.tex", "*.png" }; if (!String.IsNullOrEmpty(textureDir)) { fileBrowser.CurrentDirectory = textureDir; } }
// public ACCTexture(Material mate, string propName, MaterialType type) :this(propName) { // this.type = type; // this.tex = mate.GetTexture(propName); // // if (tex != null) { // this.editname = tex.name; // if (tex is Texture2D) { // texOffset = mate.GetTextureOffset(propName); // texScale = mate.GetTextureScale(propName); // } else { // LogUtil.DebugF("propName({0}): texture type:{1}", propName, tex.GetType()); // } // } else { // // シェーダ切り替えなどで、元々存在しないテクスチャの場合 // LogUtil.DebugF("texture not found. propname={0}, material={1}", propName, mate.name); // // 空のテクスチャは作成しない //// this.tex = new Texture2D(2, 2); //// this.tex.name = string.Empty; //// // テクスチャを追加セット //// mate.SetTexture(propName, this.tex); // } // } public ACCTexture(ACCTexture src) { this.original = src; this.propName = src.propName; this.type = src.type; this.prop = src.prop; this.propKey = src.propKey; this.editname = src.editname; this.filepath = src.filepath; this.texOffset = src.texOffset; this.texScale = src.texScale; this.toonType = src.toonType; }