Mesen-X/GUI.NET/Debugger/Controls/ApuViewer/ctrlEnvelopeInfo.cs

31 lines
719 B
C#
Raw Normal View History

2018-01-01 23:23:18 -05:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesen.GUI.Debugger.Controls.ApuViewer
{
public partial class ctrlEnvelopeInfo : UserControl
{
public ctrlEnvelopeInfo()
{
InitializeComponent();
}
public void ProcessState(ref ApuEnvelopeState state)
{
chkStart.Checked = state.StartFlag;
chkLoop.Checked = state.Loop;
chkConstantVolume.Checked = state.ConstantVolume;
txtCounter.Text = state.Counter.ToString();
txtDivider.Text = state.Divider.ToString();
txtVolume.Text = state.Volume.ToString();
}
}
}