InputRoll - methods for saving and loading column info, not wired up yet
This commit is contained in:
parent
9304283c03
commit
0b3e25fcfd
|
@ -1,12 +1,13 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
using BizHawk.Client.Common;
|
||||||
using BizHawk.Client.EmuHawk.CustomControls;
|
using BizHawk.Client.EmuHawk.CustomControls;
|
||||||
using System.Collections;
|
|
||||||
|
|
||||||
namespace BizHawk.Client.EmuHawk
|
namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
|
@ -16,7 +17,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
public class InputRoll : Control
|
public class InputRoll : Control
|
||||||
{
|
{
|
||||||
private readonly GDIRenderer Gdi;
|
private readonly GDIRenderer Gdi;
|
||||||
private readonly RollColumns _columns = new RollColumns();
|
private RollColumns _columns = new RollColumns();
|
||||||
private readonly List<Cell> SelectedItems = new List<Cell>();
|
private readonly List<Cell> SelectedItems = new List<Cell>();
|
||||||
|
|
||||||
private readonly VScrollBar VBar;
|
private readonly VScrollBar VBar;
|
||||||
|
@ -422,7 +423,16 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public string UserSettingsSerialized()
|
public string UserSettingsSerialized()
|
||||||
{
|
{
|
||||||
return string.Empty; // TODO
|
// TODO: More than just columns
|
||||||
|
var settings = ConfigService.SaveWithType(_columns);
|
||||||
|
return settings;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void LoadSettingsSerialized(string settingsJson)
|
||||||
|
{
|
||||||
|
//TODO: more than just columns
|
||||||
|
var settings = ConfigService.LoadWithType(settingsJson);
|
||||||
|
_columns = (RollColumns)settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue