Input Roll - expose a Columns property

This commit is contained in:
adelikat 2014-08-23 13:19:48 +00:00
parent a381fcf349
commit e2ffd4c175
1 changed files with 14 additions and 0 deletions

View File

@ -171,6 +171,12 @@ namespace BizHawk.Client.EmuHawk
[DefaultValue(false)]
public bool InputPaintingMode { get; set; }
/// <summary>
/// The columns shown
/// </summary>
[Category("Behavior")]
public RollColumns Columns { get { return _columns; } }
#endregion
#region Event Handlers
@ -1107,6 +1113,14 @@ namespace BizHawk.Client.EmuHawk
public class RollColumns : List<RollColumn>
{
public RollColumn this[string name]
{
get
{
return this.SingleOrDefault(column => column.Name == name);
}
}
public Action ChangedCallback { get; set; }
private void DoChangeCallback()