Skip to content

Commit

Permalink
Update to settings.xml file closes #105
Browse files Browse the repository at this point in the history
  • Loading branch information
BinaryConstruct committed Aug 28, 2011
1 parent e872d83 commit 67330a7
Show file tree
Hide file tree
Showing 21 changed files with 371 additions and 1,219 deletions.
1 change: 0 additions & 1 deletion TEdit.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
changelog.txt = changelog.txt
GPL.txt = GPL.txt
README = README
EndProjectSection
EndProject
Global
Expand Down
4 changes: 2 additions & 2 deletions TEdit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("2.0.8.4")]
[assembly: AssemblyFileVersion("2.0.8.4")]
[assembly: AssemblyVersion("2.0.8.5")]
[assembly: AssemblyFileVersion("2.0.8.5")]
153 changes: 153 additions & 0 deletions TEdit/RenderWorld/ColorProperty.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
using System;
using System.Windows.Media;
using TEdit.Common;

namespace TEdit.RenderWorld
{
[Serializable]
public class TileProperty : ColorProperty
{
private bool _isFramed;
public bool IsFramed
{
get { return _isFramed; }
set
{
if (_isFramed != value)
{
_isFramed = value;
RaisePropertyChanged("IsFramed");
}
}
}

private bool _isSolid;
public bool IsSolid
{
get { return _isSolid; }
set
{
if (_isSolid != value)
{
_isSolid = value;
RaisePropertyChanged("IsSolid");
}
}
}

private bool _IsSolidTop;
public bool IsSolidTop
{
get { return this._IsSolidTop; }
set
{
if (this._IsSolidTop != value)
{
this._IsSolidTop = value;
this.RaisePropertyChanged("IsSolidTop");
}
}
}


}

[Serializable]
public class ItemProperty : ObservableObject
{
private int _id;
public int Id
{
get { return _id; }
set
{
if (_id != value)
{
_id = value;
RaisePropertyChanged("Id");
}
}
}

private string _name;
public string Name
{
get { return _name; }
set
{
if (_name != value)
{
_name = value;
RaisePropertyChanged("Name");
}
}
}



}

[Serializable]
public class ColorProperty : ObservableObject
{
private Color _color;
private byte _id;
private string _name;

public ColorProperty()
{
}

public ColorProperty(byte id, Color color, string name)
{
_id = id;
_name = name;
_color = color;
}

public byte ID
{
get { return _id; }
set
{
if (_id != value)
{
_id = value;
RaisePropertyChanged("ID");
}
}
}


public string Name
{
get { return _name; }
set
{
if (_name != value)
{
_name = value;
RaisePropertyChanged("Name");
}
}
}

public Color Color
{
get { return _color; }
set
{
if (_color != value)
{
_color = value;
RaisePropertyChanged("Color");
}
}
}

public override string ToString()
{
return String.Format("{0}|{1}|#{2:x2}{3:x2}{4:x2}{5:x2}", ID, Name, Color.A, Color.R, Color.G, Color.B);
}
}
}
160 changes: 0 additions & 160 deletions TEdit/RenderWorld/Settings.cs

This file was deleted.

Loading

0 comments on commit 67330a7

Please sign in to comment.