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.
51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace ANX.ContentCompiler.GUI.Nodes
|
|
{
|
|
class FolderNodeProperties : NodeProperties, INotifyPropertyChanged
|
|
{
|
|
public FolderNodeProperties(string folderName)
|
|
{
|
|
this._name = folderName;
|
|
}
|
|
|
|
private string _name;
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
set
|
|
{
|
|
if (_name != value)
|
|
{
|
|
if (value != null)
|
|
{
|
|
foreach (var c in Path.GetInvalidFileNameChars())
|
|
{
|
|
if (value.Contains(c))
|
|
return;
|
|
}
|
|
}
|
|
|
|
_name = value;
|
|
OnPropertyChanged(new PropertyChangedEventArgs("Name"));
|
|
}
|
|
}
|
|
}
|
|
|
|
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
|
|
{
|
|
if (PropertyChanged != null)
|
|
PropertyChanged(this, e);
|
|
}
|
|
|
|
[Browsable(false)]
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
}
|
|
}
|