Make ContentCompilerGui compatible to recent changes in pipeline and did some usability changes. Make the Visual Studio Extension work even if the ANX Framework is not installed additionally.. Improve that the path for assembly refernces in a content project doesn't get automatically updated, only if the reference is actually saved, this is so you can specify a relative path yourself. Fix missing icon for ContentProject when it was opened with Visual Studio. Made create_shaders.bat directly executable under windows by fixing the directory separators.
66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
using ANX.ContentCompiler.GUI.Converters;
|
|
using ANX.Framework.Content.Pipeline.Tasks;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace ANX.ContentCompiler.GUI.Nodes
|
|
{
|
|
class BuildItemNodeProperties : NodeProperties
|
|
{
|
|
public BuildItemNodeProperties(BuildItem buildItem)
|
|
{
|
|
if (buildItem == null)
|
|
throw new ArgumentNullException("buildItem");
|
|
|
|
this.BuildItem = buildItem;
|
|
}
|
|
|
|
internal BuildItem BuildItem
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public string AssetName
|
|
{
|
|
get { return BuildItem.AssetName; }
|
|
set
|
|
{
|
|
if (value != null)
|
|
{
|
|
foreach (var c in Path.GetInvalidFileNameChars())
|
|
{
|
|
if (value.Contains(c))
|
|
return;
|
|
}
|
|
}
|
|
|
|
BuildItem.AssetName = value;
|
|
}
|
|
}
|
|
|
|
public string SourceFilename
|
|
{
|
|
get { return BuildItem.SourceFilename; }
|
|
}
|
|
|
|
[TypeConverter(typeof(ImporterConverter))]
|
|
public string Importer
|
|
{
|
|
get { return BuildItem.ImporterName; }
|
|
set { BuildItem.ImporterName = value; }
|
|
}
|
|
|
|
[TypeConverter(typeof(ProcessorConverter))]
|
|
public string Processor
|
|
{
|
|
get { return BuildItem.ProcessorName; }
|
|
set { BuildItem.ProcessorName = value; }
|
|
}
|
|
}
|
|
}
|