55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
![]() |
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace BizHawk.MultiClient
|
|||
|
{
|
|||
|
public partial class SubtitleMaker : Form
|
|||
|
{
|
|||
|
public Subtitle sub = new Subtitle();
|
|||
|
|
|||
|
public SubtitleMaker()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void Cancel_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.Close();
|
|||
|
}
|
|||
|
|
|||
|
private void OK_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
sub.Frame = (int)FrameNumeric.Value;
|
|||
|
sub.Message = Message.Text;
|
|||
|
sub.X = (int)XNumeric.Value;
|
|||
|
sub.Duration = (int)DurationNumeric.Value;
|
|||
|
sub.Color = (uint)colorDialog1.Color.ToArgb();
|
|||
|
this.Close();
|
|||
|
}
|
|||
|
|
|||
|
private void SubtitleMaker_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
FrameNumeric.Value = sub.Frame;
|
|||
|
Message.Text = sub.Message;
|
|||
|
XNumeric.Value = sub.X;
|
|||
|
YNumeric.Value = sub.Y;
|
|||
|
DurationNumeric.Value = sub.Duration;
|
|||
|
Message.Focus();
|
|||
|
colorDialog1.Color = Color.FromArgb((int)sub.Color);
|
|||
|
ColorPanel.BackColor = colorDialog1.Color;
|
|||
|
}
|
|||
|
|
|||
|
private void ColorPanel_DoubleClick(object sender, EventArgs e)
|
|||
|
{
|
|||
|
if (colorDialog1.ShowDialog() == DialogResult.OK)
|
|||
|
ColorPanel.BackColor = colorDialog1.Color;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|