Add armor and tools

This commit is contained in:
2025-09-24 23:54:20 -05:00
parent 031aeded8f
commit 22e529f222
11 changed files with 404 additions and 22 deletions

View File

@@ -42,6 +42,9 @@ namespace NethackHelper {
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();
@@ -75,6 +78,7 @@ namespace NethackHelper {
mainMenu = new MenuStrip();
fileToolStripMenuItem = new ToolStripMenuItem();
resetToolStripMenuItem = new ToolStripMenuItem();
toolTip1 = new ToolTip(components);
mainTabControl.SuspendLayout();
itemsTab.SuspendLayout();
((System.ComponentModel.ISupportInitialize) saveSourceBindingSource).BeginInit();
@@ -82,6 +86,7 @@ namespace NethackHelper {
scrollPotionTab.SuspendLayout();
wandRingTab.SuspendLayout();
spellbookTab.SuspendLayout();
toolsTab.SuspendLayout();
intrinsicsTab.SuspendLayout();
((System.ComponentModel.ISupportInitialize) lastPrayerPicker).BeginInit();
((System.ComponentModel.ISupportInitialize) intrinsicsBindingSource).BeginInit();
@@ -119,12 +124,14 @@ namespace NethackHelper {
// 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;
//
@@ -139,6 +146,7 @@ namespace NethackHelper {
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;
@@ -161,6 +169,7 @@ namespace NethackHelper {
//
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);
@@ -170,6 +179,7 @@ namespace NethackHelper {
//
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);
@@ -191,6 +201,7 @@ namespace NethackHelper {
//
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);
@@ -200,6 +211,7 @@ namespace NethackHelper {
//
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);
@@ -221,6 +233,7 @@ namespace NethackHelper {
//
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);
@@ -230,11 +243,44 @@ namespace NethackHelper {
//
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));
@@ -617,6 +663,7 @@ namespace NethackHelper {
scrollPotionTab.ResumeLayout(false);
wandRingTab.ResumeLayout(false);
spellbookTab.ResumeLayout(false);
toolsTab.ResumeLayout(false);
intrinsicsTab.ResumeLayout(false);
intrinsicsTab.PerformLayout();
((System.ComponentModel.ISupportInitialize) lastPrayerPicker).EndInit();
@@ -680,5 +727,9 @@ namespace NethackHelper {
private TabPage spellbookTab;
private ItemDisplay spellbookDisplay;
private ItemDisplay amuletDisplay;
private ToolTip toolTip1;
private TabPage toolsTab;
private ItemDisplay toolDisplay;
private ItemDisplay armorDisplay;
}
}