735 lines
35 KiB
C#
735 lines
35 KiB
C#
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace NethackHelper {
|
|
partial class MainForm : Form {
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing) {
|
|
if (disposing && (components != null)) {
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent() {
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
mainTabControl = new TabControl();
|
|
itemsTab = new TabPage();
|
|
suckerBox = new CheckBox();
|
|
saveSourceBindingSource = new BindingSource(components);
|
|
itemTabControl = new TabControl();
|
|
scrollPotionTab = new TabPage();
|
|
potionDisplay = new ItemDisplay();
|
|
scrollDisplay = new ItemDisplay();
|
|
wandRingTab = new TabPage();
|
|
ringDisplay = new ItemDisplay();
|
|
wandDisplay = new ItemDisplay();
|
|
spellbookTab = new TabPage();
|
|
amuletDisplay = new ItemDisplay();
|
|
spellbookDisplay = new ItemDisplay();
|
|
toolsTab = new TabPage();
|
|
armorDisplay = new ItemDisplay();
|
|
toolDisplay = new ItemDisplay();
|
|
charismaSelector = new ComboBox();
|
|
intrinsicsTab = new TabPage();
|
|
label2 = new Label();
|
|
lastPrayerPicker = new NumericUpDown();
|
|
intrinsicsBindingSource = new BindingSource(components);
|
|
label1 = new Label();
|
|
protectionPicker = new NumericUpDown();
|
|
warningCheckbox = new CheckBox();
|
|
teleportitisCheckbox = new CheckBox();
|
|
teleportControlCheckbox = new CheckBox();
|
|
telepathyCheckbox = new CheckBox();
|
|
stealthCheckbox = new CheckBox();
|
|
speedCheckbox = new CheckBox();
|
|
sleepResistanceCheckbox = new CheckBox();
|
|
shockResistanceCheckbox = new CheckBox();
|
|
seeInvisibleCheckbox = new CheckBox();
|
|
searchingCheckbox = new CheckBox();
|
|
poisonResistanceCheckbox = new CheckBox();
|
|
invisibleCheckbox = new CheckBox();
|
|
fireResistanceCheckbox = new CheckBox();
|
|
disintegrationResistanceCheckbox = new CheckBox();
|
|
coldResistanceCheckbox = new CheckBox();
|
|
sokobanTab = new TabPage();
|
|
sokobanVertical = new CheckBox();
|
|
sokobanHorizontal = new CheckBox();
|
|
sokobanPrev = new Button();
|
|
sokobanNext = new Button();
|
|
sokobanSolution = new Label();
|
|
sokobanLevelList = new ListBox();
|
|
charismaSourceBindingSource = new BindingSource(components);
|
|
mainMenu = new MenuStrip();
|
|
fileToolStripMenuItem = new ToolStripMenuItem();
|
|
resetToolStripMenuItem = new ToolStripMenuItem();
|
|
toolTip1 = new ToolTip(components);
|
|
mainTabControl.SuspendLayout();
|
|
itemsTab.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize) saveSourceBindingSource).BeginInit();
|
|
itemTabControl.SuspendLayout();
|
|
scrollPotionTab.SuspendLayout();
|
|
wandRingTab.SuspendLayout();
|
|
spellbookTab.SuspendLayout();
|
|
toolsTab.SuspendLayout();
|
|
intrinsicsTab.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize) lastPrayerPicker).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize) intrinsicsBindingSource).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize) protectionPicker).BeginInit();
|
|
sokobanTab.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize) charismaSourceBindingSource).BeginInit();
|
|
mainMenu.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// mainTabControl
|
|
//
|
|
mainTabControl.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
mainTabControl.Controls.Add(itemsTab);
|
|
mainTabControl.Controls.Add(intrinsicsTab);
|
|
mainTabControl.Controls.Add(sokobanTab);
|
|
mainTabControl.Location = new Point(12, 27);
|
|
mainTabControl.Name = "mainTabControl";
|
|
mainTabControl.SelectedIndex = 0;
|
|
mainTabControl.Size = new Size(672, 621);
|
|
mainTabControl.TabIndex = 0;
|
|
//
|
|
// itemsTab
|
|
//
|
|
itemsTab.Controls.Add(suckerBox);
|
|
itemsTab.Controls.Add(itemTabControl);
|
|
itemsTab.Controls.Add(charismaSelector);
|
|
itemsTab.Location = new Point(4, 24);
|
|
itemsTab.Name = "itemsTab";
|
|
itemsTab.Padding = new Padding(3);
|
|
itemsTab.Size = new Size(664, 593);
|
|
itemsTab.TabIndex = 1;
|
|
itemsTab.Text = "Items";
|
|
itemsTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// suckerBox
|
|
//
|
|
suckerBox.AutoSize = true;
|
|
suckerBox.Cursor = Cursors.Help;
|
|
suckerBox.DataBindings.Add(new Binding("Checked", saveSourceBindingSource, "Sucker", true));
|
|
suckerBox.Location = new Point(133, 8);
|
|
suckerBox.Name = "suckerBox";
|
|
suckerBox.Size = new Size(61, 19);
|
|
suckerBox.TabIndex = 2;
|
|
suckerBox.Text = "Sucker";
|
|
toolTip1.SetToolTip(suckerBox, "Check this box if you are a tourist under level 15, are wearing a dunce cap, or are wearing a visible shirt.");
|
|
suckerBox.UseVisualStyleBackColor = true;
|
|
suckerBox.CheckedChanged += suckerBox_CheckedChanged;
|
|
//
|
|
// saveSourceBindingSource
|
|
//
|
|
saveSourceBindingSource.DataSource = typeof(SaveSource);
|
|
saveSourceBindingSource.Position = 0;
|
|
//
|
|
// itemTabControl
|
|
//
|
|
itemTabControl.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
itemTabControl.Controls.Add(scrollPotionTab);
|
|
itemTabControl.Controls.Add(wandRingTab);
|
|
itemTabControl.Controls.Add(spellbookTab);
|
|
itemTabControl.Controls.Add(toolsTab);
|
|
itemTabControl.Location = new Point(6, 35);
|
|
itemTabControl.Name = "itemTabControl";
|
|
itemTabControl.SelectedIndex = 0;
|
|
itemTabControl.Size = new Size(652, 555);
|
|
itemTabControl.TabIndex = 1;
|
|
//
|
|
// scrollPotionTab
|
|
//
|
|
scrollPotionTab.Controls.Add(potionDisplay);
|
|
scrollPotionTab.Controls.Add(scrollDisplay);
|
|
scrollPotionTab.Location = new Point(4, 24);
|
|
scrollPotionTab.Name = "scrollPotionTab";
|
|
scrollPotionTab.Padding = new Padding(3);
|
|
scrollPotionTab.Size = new Size(644, 527);
|
|
scrollPotionTab.TabIndex = 1;
|
|
scrollPotionTab.Text = "Scrolls / Potions";
|
|
scrollPotionTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// potionDisplay
|
|
//
|
|
potionDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
potionDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("potionDisplay.Columns");
|
|
potionDisplay.Grouping = ItemAttribute.Cost;
|
|
potionDisplay.Location = new Point(325, 6);
|
|
potionDisplay.Name = "potionDisplay";
|
|
potionDisplay.Size = new Size(313, 515);
|
|
potionDisplay.TabIndex = 1;
|
|
//
|
|
// scrollDisplay
|
|
//
|
|
scrollDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
scrollDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("scrollDisplay.Columns");
|
|
scrollDisplay.Grouping = ItemAttribute.Cost;
|
|
scrollDisplay.Location = new Point(6, 6);
|
|
scrollDisplay.Name = "scrollDisplay";
|
|
scrollDisplay.Size = new Size(313, 515);
|
|
scrollDisplay.TabIndex = 0;
|
|
//
|
|
// wandRingTab
|
|
//
|
|
wandRingTab.Controls.Add(ringDisplay);
|
|
wandRingTab.Controls.Add(wandDisplay);
|
|
wandRingTab.Location = new Point(4, 24);
|
|
wandRingTab.Name = "wandRingTab";
|
|
wandRingTab.Padding = new Padding(3);
|
|
wandRingTab.Size = new Size(644, 527);
|
|
wandRingTab.TabIndex = 2;
|
|
wandRingTab.Text = "Wands / Rings";
|
|
wandRingTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// ringDisplay
|
|
//
|
|
ringDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
ringDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("ringDisplay.Columns");
|
|
ringDisplay.Grouping = ItemAttribute.Cost;
|
|
ringDisplay.Location = new Point(325, 6);
|
|
ringDisplay.Name = "ringDisplay";
|
|
ringDisplay.Size = new Size(313, 515);
|
|
ringDisplay.TabIndex = 2;
|
|
//
|
|
// wandDisplay
|
|
//
|
|
wandDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
wandDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("wandDisplay.Columns");
|
|
wandDisplay.Grouping = ItemAttribute.Cost;
|
|
wandDisplay.Location = new Point(6, 6);
|
|
wandDisplay.Name = "wandDisplay";
|
|
wandDisplay.Size = new Size(313, 515);
|
|
wandDisplay.TabIndex = 1;
|
|
//
|
|
// spellbookTab
|
|
//
|
|
spellbookTab.Controls.Add(amuletDisplay);
|
|
spellbookTab.Controls.Add(spellbookDisplay);
|
|
spellbookTab.Location = new Point(4, 24);
|
|
spellbookTab.Name = "spellbookTab";
|
|
spellbookTab.Padding = new Padding(3);
|
|
spellbookTab.Size = new Size(644, 527);
|
|
spellbookTab.TabIndex = 3;
|
|
spellbookTab.Text = "Spellbooks / Amulets";
|
|
spellbookTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// amuletDisplay
|
|
//
|
|
amuletDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
amuletDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("amuletDisplay.Columns");
|
|
amuletDisplay.Grouping = ItemAttribute.Cost;
|
|
amuletDisplay.Location = new Point(325, 6);
|
|
amuletDisplay.Name = "amuletDisplay";
|
|
amuletDisplay.Size = new Size(313, 515);
|
|
amuletDisplay.TabIndex = 1;
|
|
//
|
|
// spellbookDisplay
|
|
//
|
|
spellbookDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
spellbookDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("spellbookDisplay.Columns");
|
|
spellbookDisplay.Grouping = ItemAttribute.Cost;
|
|
spellbookDisplay.Location = new Point(6, 6);
|
|
spellbookDisplay.Name = "spellbookDisplay";
|
|
spellbookDisplay.Size = new Size(313, 515);
|
|
spellbookDisplay.TabIndex = 0;
|
|
//
|
|
// toolsTab
|
|
//
|
|
toolsTab.Controls.Add(armorDisplay);
|
|
toolsTab.Controls.Add(toolDisplay);
|
|
toolsTab.Location = new Point(4, 24);
|
|
toolsTab.Name = "toolsTab";
|
|
toolsTab.Padding = new Padding(3);
|
|
toolsTab.Size = new Size(644, 527);
|
|
toolsTab.TabIndex = 4;
|
|
toolsTab.Text = "Tools / Armor";
|
|
toolsTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// armorDisplay
|
|
//
|
|
armorDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
armorDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("armorDisplay.Columns");
|
|
armorDisplay.Grouping = ItemAttribute.Slot;
|
|
armorDisplay.Location = new Point(225, 6);
|
|
armorDisplay.Name = "armorDisplay";
|
|
armorDisplay.Size = new Size(413, 515);
|
|
armorDisplay.TabIndex = 1;
|
|
//
|
|
// toolDisplay
|
|
//
|
|
toolDisplay.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
toolDisplay.Columns = (System.Collections.Generic.List<ItemDisplayColumn>) resources.GetObject("toolDisplay.Columns");
|
|
toolDisplay.Grouping = ItemAttribute.Appearance;
|
|
toolDisplay.Location = new Point(6, 6);
|
|
toolDisplay.Name = "toolDisplay";
|
|
toolDisplay.Size = new Size(213, 515);
|
|
toolDisplay.TabIndex = 0;
|
|
//
|
|
// charismaSelector
|
|
//
|
|
charismaSelector.DataBindings.Add(new Binding("SelectedItem", saveSourceBindingSource, "CharismaClass", true));
|
|
charismaSelector.FormattingEnabled = true;
|
|
charismaSelector.Location = new Point(6, 6);
|
|
charismaSelector.Name = "charismaSelector";
|
|
charismaSelector.Size = new Size(121, 23);
|
|
charismaSelector.TabIndex = 0;
|
|
charismaSelector.SelectedIndexChanged += charismaSelector_SelectedIndexChanged;
|
|
//
|
|
// intrinsicsTab
|
|
//
|
|
intrinsicsTab.Controls.Add(label2);
|
|
intrinsicsTab.Controls.Add(lastPrayerPicker);
|
|
intrinsicsTab.Controls.Add(label1);
|
|
intrinsicsTab.Controls.Add(protectionPicker);
|
|
intrinsicsTab.Controls.Add(warningCheckbox);
|
|
intrinsicsTab.Controls.Add(teleportitisCheckbox);
|
|
intrinsicsTab.Controls.Add(teleportControlCheckbox);
|
|
intrinsicsTab.Controls.Add(telepathyCheckbox);
|
|
intrinsicsTab.Controls.Add(stealthCheckbox);
|
|
intrinsicsTab.Controls.Add(speedCheckbox);
|
|
intrinsicsTab.Controls.Add(sleepResistanceCheckbox);
|
|
intrinsicsTab.Controls.Add(shockResistanceCheckbox);
|
|
intrinsicsTab.Controls.Add(seeInvisibleCheckbox);
|
|
intrinsicsTab.Controls.Add(searchingCheckbox);
|
|
intrinsicsTab.Controls.Add(poisonResistanceCheckbox);
|
|
intrinsicsTab.Controls.Add(invisibleCheckbox);
|
|
intrinsicsTab.Controls.Add(fireResistanceCheckbox);
|
|
intrinsicsTab.Controls.Add(disintegrationResistanceCheckbox);
|
|
intrinsicsTab.Controls.Add(coldResistanceCheckbox);
|
|
intrinsicsTab.Location = new Point(4, 24);
|
|
intrinsicsTab.Name = "intrinsicsTab";
|
|
intrinsicsTab.Padding = new Padding(3);
|
|
intrinsicsTab.Size = new Size(664, 593);
|
|
intrinsicsTab.TabIndex = 2;
|
|
intrinsicsTab.Text = "Intrinsics";
|
|
intrinsicsTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// label2
|
|
//
|
|
label2.AutoSize = true;
|
|
label2.Location = new Point(6, 411);
|
|
label2.Name = "label2";
|
|
label2.Size = new Size(64, 15);
|
|
label2.TabIndex = 18;
|
|
label2.Text = "Last Prayer";
|
|
//
|
|
// lastPrayerPicker
|
|
//
|
|
lastPrayerPicker.DataBindings.Add(new Binding("Value", intrinsicsBindingSource, "LastPrayer", true));
|
|
lastPrayerPicker.Increment = new decimal(new int[] { 1000, 0, 0, 0 });
|
|
lastPrayerPicker.Location = new Point(76, 409);
|
|
lastPrayerPicker.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
|
lastPrayerPicker.Name = "lastPrayerPicker";
|
|
lastPrayerPicker.Size = new Size(61, 23);
|
|
lastPrayerPicker.TabIndex = 17;
|
|
lastPrayerPicker.ThousandsSeparator = true;
|
|
//
|
|
// intrinsicsBindingSource
|
|
//
|
|
intrinsicsBindingSource.DataSource = typeof(IntrinsicsSource);
|
|
intrinsicsBindingSource.Position = 0;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(6, 382);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(62, 15);
|
|
label1.TabIndex = 16;
|
|
label1.Text = "Protection";
|
|
//
|
|
// protectionPicker
|
|
//
|
|
protectionPicker.DataBindings.Add(new Binding("Value", intrinsicsBindingSource, "Protection", true));
|
|
protectionPicker.Location = new Point(74, 380);
|
|
protectionPicker.Maximum = new decimal(new int[] { 30, 0, 0, 0 });
|
|
protectionPicker.Name = "protectionPicker";
|
|
protectionPicker.Size = new Size(41, 23);
|
|
protectionPicker.TabIndex = 15;
|
|
//
|
|
// warningCheckbox
|
|
//
|
|
warningCheckbox.AutoSize = true;
|
|
warningCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Warning", true));
|
|
warningCheckbox.Location = new Point(6, 355);
|
|
warningCheckbox.Name = "warningCheckbox";
|
|
warningCheckbox.Size = new Size(71, 19);
|
|
warningCheckbox.TabIndex = 14;
|
|
warningCheckbox.Text = "Warning";
|
|
warningCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// teleportitisCheckbox
|
|
//
|
|
teleportitisCheckbox.AutoSize = true;
|
|
teleportitisCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Teleportitis", true));
|
|
teleportitisCheckbox.Location = new Point(6, 330);
|
|
teleportitisCheckbox.Name = "teleportitisCheckbox";
|
|
teleportitisCheckbox.Size = new Size(83, 19);
|
|
teleportitisCheckbox.TabIndex = 13;
|
|
teleportitisCheckbox.Text = "Teleportitis";
|
|
teleportitisCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// teleportControlCheckbox
|
|
//
|
|
teleportControlCheckbox.AutoSize = true;
|
|
teleportControlCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "TeleportControl", true));
|
|
teleportControlCheckbox.Location = new Point(6, 305);
|
|
teleportControlCheckbox.Name = "teleportControlCheckbox";
|
|
teleportControlCheckbox.Size = new Size(111, 19);
|
|
teleportControlCheckbox.TabIndex = 12;
|
|
teleportControlCheckbox.Text = "Teleport Control";
|
|
teleportControlCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// telepathyCheckbox
|
|
//
|
|
telepathyCheckbox.AutoSize = true;
|
|
telepathyCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Telepathy", true));
|
|
telepathyCheckbox.Location = new Point(6, 280);
|
|
telepathyCheckbox.Name = "telepathyCheckbox";
|
|
telepathyCheckbox.Size = new Size(76, 19);
|
|
telepathyCheckbox.TabIndex = 11;
|
|
telepathyCheckbox.Text = "Telepathy";
|
|
telepathyCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// stealthCheckbox
|
|
//
|
|
stealthCheckbox.AutoSize = true;
|
|
stealthCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Stealth", true));
|
|
stealthCheckbox.Location = new Point(6, 255);
|
|
stealthCheckbox.Name = "stealthCheckbox";
|
|
stealthCheckbox.Size = new Size(62, 19);
|
|
stealthCheckbox.TabIndex = 10;
|
|
stealthCheckbox.Text = "Stealth";
|
|
stealthCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// speedCheckbox
|
|
//
|
|
speedCheckbox.AutoSize = true;
|
|
speedCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Speed", true));
|
|
speedCheckbox.Location = new Point(6, 230);
|
|
speedCheckbox.Name = "speedCheckbox";
|
|
speedCheckbox.Size = new Size(58, 19);
|
|
speedCheckbox.TabIndex = 9;
|
|
speedCheckbox.Text = "Speed";
|
|
speedCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// sleepResistanceCheckbox
|
|
//
|
|
sleepResistanceCheckbox.AutoSize = true;
|
|
sleepResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "SleepResistance", true));
|
|
sleepResistanceCheckbox.Location = new Point(6, 207);
|
|
sleepResistanceCheckbox.Name = "sleepResistanceCheckbox";
|
|
sleepResistanceCheckbox.Size = new Size(112, 19);
|
|
sleepResistanceCheckbox.TabIndex = 8;
|
|
sleepResistanceCheckbox.Text = "Sleep Resistance";
|
|
sleepResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// shockResistanceCheckbox
|
|
//
|
|
shockResistanceCheckbox.AutoSize = true;
|
|
shockResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "ShockResistance", true));
|
|
shockResistanceCheckbox.Location = new Point(6, 182);
|
|
shockResistanceCheckbox.Name = "shockResistanceCheckbox";
|
|
shockResistanceCheckbox.Size = new Size(116, 19);
|
|
shockResistanceCheckbox.TabIndex = 7;
|
|
shockResistanceCheckbox.Text = "Shock Resistance";
|
|
shockResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// seeInvisibleCheckbox
|
|
//
|
|
seeInvisibleCheckbox.AutoSize = true;
|
|
seeInvisibleCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "SeeInvisible", true));
|
|
seeInvisibleCheckbox.Location = new Point(6, 157);
|
|
seeInvisibleCheckbox.Name = "seeInvisibleCheckbox";
|
|
seeInvisibleCheckbox.Size = new Size(90, 19);
|
|
seeInvisibleCheckbox.TabIndex = 6;
|
|
seeInvisibleCheckbox.Text = "See Invisible";
|
|
seeInvisibleCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// searchingCheckbox
|
|
//
|
|
searchingCheckbox.AutoSize = true;
|
|
searchingCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Searching", true));
|
|
searchingCheckbox.Location = new Point(6, 131);
|
|
searchingCheckbox.Name = "searchingCheckbox";
|
|
searchingCheckbox.Size = new Size(78, 19);
|
|
searchingCheckbox.TabIndex = 5;
|
|
searchingCheckbox.Text = "Searching";
|
|
searchingCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// poisonResistanceCheckbox
|
|
//
|
|
poisonResistanceCheckbox.AutoSize = true;
|
|
poisonResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "PoisonResistance", true));
|
|
poisonResistanceCheckbox.Location = new Point(6, 106);
|
|
poisonResistanceCheckbox.Name = "poisonResistanceCheckbox";
|
|
poisonResistanceCheckbox.Size = new Size(120, 19);
|
|
poisonResistanceCheckbox.TabIndex = 4;
|
|
poisonResistanceCheckbox.Text = "Poison Resistance";
|
|
poisonResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// invisibleCheckbox
|
|
//
|
|
invisibleCheckbox.AutoSize = true;
|
|
invisibleCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "Invisible", true));
|
|
invisibleCheckbox.Location = new Point(6, 81);
|
|
invisibleCheckbox.Name = "invisibleCheckbox";
|
|
invisibleCheckbox.Size = new Size(69, 19);
|
|
invisibleCheckbox.TabIndex = 3;
|
|
invisibleCheckbox.Text = "Inivisble";
|
|
invisibleCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// fireResistanceCheckbox
|
|
//
|
|
fireResistanceCheckbox.AutoSize = true;
|
|
fireResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "FireResistance", true));
|
|
fireResistanceCheckbox.Location = new Point(6, 56);
|
|
fireResistanceCheckbox.Name = "fireResistanceCheckbox";
|
|
fireResistanceCheckbox.Size = new Size(103, 19);
|
|
fireResistanceCheckbox.TabIndex = 2;
|
|
fireResistanceCheckbox.Text = "Fire Resistance";
|
|
fireResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// disintegrationResistanceCheckbox
|
|
//
|
|
disintegrationResistanceCheckbox.AutoSize = true;
|
|
disintegrationResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "DisintegrationResistance", true));
|
|
disintegrationResistanceCheckbox.Location = new Point(6, 31);
|
|
disintegrationResistanceCheckbox.Name = "disintegrationResistanceCheckbox";
|
|
disintegrationResistanceCheckbox.Size = new Size(158, 19);
|
|
disintegrationResistanceCheckbox.TabIndex = 1;
|
|
disintegrationResistanceCheckbox.Text = "Disintegration Resistance";
|
|
disintegrationResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// coldResistanceCheckbox
|
|
//
|
|
coldResistanceCheckbox.AutoSize = true;
|
|
coldResistanceCheckbox.DataBindings.Add(new Binding("Checked", intrinsicsBindingSource, "ColdResistance", true));
|
|
coldResistanceCheckbox.Location = new Point(6, 6);
|
|
coldResistanceCheckbox.Name = "coldResistanceCheckbox";
|
|
coldResistanceCheckbox.Size = new Size(109, 19);
|
|
coldResistanceCheckbox.TabIndex = 0;
|
|
coldResistanceCheckbox.Text = "Cold Resistance";
|
|
coldResistanceCheckbox.UseVisualStyleBackColor = true;
|
|
//
|
|
// sokobanTab
|
|
//
|
|
sokobanTab.Controls.Add(sokobanVertical);
|
|
sokobanTab.Controls.Add(sokobanHorizontal);
|
|
sokobanTab.Controls.Add(sokobanPrev);
|
|
sokobanTab.Controls.Add(sokobanNext);
|
|
sokobanTab.Controls.Add(sokobanSolution);
|
|
sokobanTab.Controls.Add(sokobanLevelList);
|
|
sokobanTab.Location = new Point(4, 24);
|
|
sokobanTab.Name = "sokobanTab";
|
|
sokobanTab.Padding = new Padding(3);
|
|
sokobanTab.Size = new Size(664, 593);
|
|
sokobanTab.TabIndex = 0;
|
|
sokobanTab.Text = "Sokoban";
|
|
sokobanTab.UseVisualStyleBackColor = true;
|
|
//
|
|
// sokobanVertical
|
|
//
|
|
sokobanVertical.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
sokobanVertical.Location = new Point(151, 564);
|
|
sokobanVertical.Name = "sokobanVertical";
|
|
sokobanVertical.Size = new Size(123, 23);
|
|
sokobanVertical.TabIndex = 3;
|
|
sokobanVertical.Text = "Vertical Reflection";
|
|
sokobanVertical.UseVisualStyleBackColor = true;
|
|
sokobanVertical.CheckedChanged += sokobanReflection_CheckedChanged;
|
|
sokobanVertical.KeyDown += sokobanLevelList_KeyDown;
|
|
//
|
|
// sokobanHorizontal
|
|
//
|
|
sokobanHorizontal.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
sokobanHorizontal.Location = new Point(6, 564);
|
|
sokobanHorizontal.Name = "sokobanHorizontal";
|
|
sokobanHorizontal.Size = new Size(139, 23);
|
|
sokobanHorizontal.TabIndex = 2;
|
|
sokobanHorizontal.Text = "Horizontal Reflection";
|
|
sokobanHorizontal.UseVisualStyleBackColor = true;
|
|
sokobanHorizontal.CheckedChanged += sokobanReflection_CheckedChanged;
|
|
sokobanHorizontal.KeyDown += sokobanLevelList_KeyDown;
|
|
//
|
|
// sokobanPrev
|
|
//
|
|
sokobanPrev.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
sokobanPrev.Location = new Point(438, 563);
|
|
sokobanPrev.Name = "sokobanPrev";
|
|
sokobanPrev.Size = new Size(24, 23);
|
|
sokobanPrev.TabIndex = 4;
|
|
sokobanPrev.Text = "<";
|
|
sokobanPrev.UseVisualStyleBackColor = true;
|
|
sokobanPrev.Click += sokobanPrev_Click;
|
|
sokobanPrev.KeyDown += sokobanLevelList_KeyDown;
|
|
//
|
|
// sokobanNext
|
|
//
|
|
sokobanNext.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
sokobanNext.Location = new Point(468, 563);
|
|
sokobanNext.Name = "sokobanNext";
|
|
sokobanNext.Size = new Size(24, 23);
|
|
sokobanNext.TabIndex = 5;
|
|
sokobanNext.Text = ">";
|
|
sokobanNext.UseVisualStyleBackColor = true;
|
|
sokobanNext.Click += sokobanNext_Click;
|
|
sokobanNext.KeyDown += sokobanLevelList_KeyDown;
|
|
//
|
|
// sokobanSolution
|
|
//
|
|
sokobanSolution.Font = new Font("Consolas", 18F);
|
|
sokobanSolution.Location = new Point(6, 6);
|
|
sokobanSolution.Name = "sokobanSolution";
|
|
sokobanSolution.Size = new Size(486, 554);
|
|
sokobanSolution.TabIndex = 1;
|
|
//
|
|
// sokobanLevelList
|
|
//
|
|
sokobanLevelList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
|
|
sokobanLevelList.FormattingEnabled = true;
|
|
sokobanLevelList.IntegralHeight = false;
|
|
sokobanLevelList.Location = new Point(498, 6);
|
|
sokobanLevelList.Name = "sokobanLevelList";
|
|
sokobanLevelList.Size = new Size(160, 581);
|
|
sokobanLevelList.TabIndex = 1;
|
|
sokobanLevelList.SelectedIndexChanged += sokobanLevelList_SelectedIndexChanged;
|
|
sokobanLevelList.KeyDown += sokobanLevelList_KeyDown;
|
|
//
|
|
// charismaSourceBindingSource
|
|
//
|
|
charismaSourceBindingSource.DataSource = typeof(CharismaSource);
|
|
charismaSourceBindingSource.Position = 0;
|
|
//
|
|
// mainMenu
|
|
//
|
|
mainMenu.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
|
|
mainMenu.Location = new Point(0, 0);
|
|
mainMenu.Name = "mainMenu";
|
|
mainMenu.Size = new Size(696, 24);
|
|
mainMenu.TabIndex = 1;
|
|
//
|
|
// fileToolStripMenuItem
|
|
//
|
|
fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { resetToolStripMenuItem });
|
|
fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
fileToolStripMenuItem.Size = new Size(37, 20);
|
|
fileToolStripMenuItem.Text = "File";
|
|
//
|
|
// resetToolStripMenuItem
|
|
//
|
|
resetToolStripMenuItem.Name = "resetToolStripMenuItem";
|
|
resetToolStripMenuItem.Size = new Size(102, 22);
|
|
resetToolStripMenuItem.Text = "Reset";
|
|
//
|
|
// MainForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(696, 660);
|
|
Controls.Add(mainTabControl);
|
|
Controls.Add(mainMenu);
|
|
Icon = (Icon) resources.GetObject("$this.Icon");
|
|
MainMenuStrip = mainMenu;
|
|
MaximizeBox = false;
|
|
MaximumSize = new Size(712, 1200);
|
|
MinimumSize = new Size(712, 500);
|
|
Name = "MainForm";
|
|
SizeGripStyle = SizeGripStyle.Hide;
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "NethackHelper";
|
|
FormClosing += Form1_FormClosing;
|
|
mainTabControl.ResumeLayout(false);
|
|
itemsTab.ResumeLayout(false);
|
|
itemsTab.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize) saveSourceBindingSource).EndInit();
|
|
itemTabControl.ResumeLayout(false);
|
|
scrollPotionTab.ResumeLayout(false);
|
|
wandRingTab.ResumeLayout(false);
|
|
spellbookTab.ResumeLayout(false);
|
|
toolsTab.ResumeLayout(false);
|
|
intrinsicsTab.ResumeLayout(false);
|
|
intrinsicsTab.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize) lastPrayerPicker).EndInit();
|
|
((System.ComponentModel.ISupportInitialize) intrinsicsBindingSource).EndInit();
|
|
((System.ComponentModel.ISupportInitialize) protectionPicker).EndInit();
|
|
sokobanTab.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize) charismaSourceBindingSource).EndInit();
|
|
mainMenu.ResumeLayout(false);
|
|
mainMenu.PerformLayout();
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private TabControl mainTabControl;
|
|
private TabPage sokobanTab;
|
|
private Label sokobanSolution;
|
|
private ListBox sokobanLevelList;
|
|
private Button sokobanPrev;
|
|
private Button sokobanNext;
|
|
private CheckBox sokobanVertical;
|
|
private CheckBox sokobanHorizontal;
|
|
private TabPage itemsTab;
|
|
private ComboBox charismaSelector;
|
|
private TabControl itemTabControl;
|
|
private TabPage potionsTab;
|
|
private TabPage scrollPotionTab;
|
|
private ItemDisplay scrollDisplay;
|
|
private ItemDisplay potionDisplay;
|
|
private TabPage wandRingTab;
|
|
private ItemDisplay ringDisplay;
|
|
private ItemDisplay wandDisplay;
|
|
private CheckBox suckerBox;
|
|
private TabPage intrinsicsTab;
|
|
private CheckBox warningCheckbox;
|
|
private CheckBox teleportitisCheckbox;
|
|
private CheckBox teleportControlCheckbox;
|
|
private CheckBox telepathyCheckbox;
|
|
private CheckBox stealthCheckbox;
|
|
private CheckBox speedCheckbox;
|
|
private CheckBox sleepResistanceCheckbox;
|
|
private CheckBox shockResistanceCheckbox;
|
|
private CheckBox seeInvisibleCheckbox;
|
|
private CheckBox searchingCheckbox;
|
|
private CheckBox poisonResistanceCheckbox;
|
|
private CheckBox invisibleCheckbox;
|
|
private CheckBox fireResistanceCheckbox;
|
|
private CheckBox disintegrationResistanceCheckbox;
|
|
private CheckBox coldResistanceCheckbox;
|
|
private Label label2;
|
|
private NumericUpDown lastPrayerPicker;
|
|
private Label label1;
|
|
private NumericUpDown protectionPicker;
|
|
private BindingSource intrinsicsBindingSource;
|
|
private BindingSource saveSourceBindingSource;
|
|
private BindingSource charismaSourceBindingSource;
|
|
private MenuStrip mainMenu;
|
|
private ToolStripMenuItem fileToolStripMenuItem;
|
|
private ToolStripMenuItem resetToolStripMenuItem;
|
|
private TabPage spellbookTab;
|
|
private ItemDisplay spellbookDisplay;
|
|
private ItemDisplay amuletDisplay;
|
|
private ToolTip toolTip1;
|
|
private TabPage toolsTab;
|
|
private ItemDisplay toolDisplay;
|
|
private ItemDisplay armorDisplay;
|
|
}
|
|
} |