UltimateZoneBuilder/Source/Core/Windows/UpdateForm.cs
MaxED 008846539b Added: Auto-updater window now has "Ignore this revision" checkbox. If enabled, the window will show up only if a newer update is available.
Fixed, Edit Selection mode: sector highlight was not updated when switching from Edit Selection to Sectors mode.
Fixed, Edit Selection mode, UDMF: in some cases texture scale Y was flipped when applying/canceling changes made in the mode.
Probably fixed a crash caused by uninitialized Association when highlighting map elements.
Fixed, Comments Panel plugin: selection info was not updated when selecting map elements in the side panel.
Fixed, Tag Explorer plugin: selection info was not updated when selecting map elements in the side panel.
Fixed a typo in Hexen_things.cfg.
2015-09-04 12:44:09 +00:00

40 lines
965 B
C#

using System;
using System.Windows.Forms;
namespace CodeImp.DoomBuilder.Windows
{
public partial class UpdateForm : Form
{
public bool IgnoreThisUpdate { get { return ignorethisupdate.Checked; } }
public UpdateForm(int remoterev, string changelog)
{
InitializeComponent();
Setup(remoterev, changelog);
}
private void Setup(int remoterev, string changelog)
{
this.Text = this.Text.Replace("[rev]", remoterev.ToString());
this.label.Text = label.Text.Replace("[rev]", remoterev.ToString());
this.changelog.SelectedRtf = changelog;
}
private void UpdateForm_Shown(object sender, EventArgs e)
{
this.changelog.Focus();
}
private void downloadupdate_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
private void cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
}