Add building editor

This commit is contained in:
Kurt
2015-08-22 12:22:41 -07:00
parent 58014c43ff
commit d6f74fd0bb
8 changed files with 775 additions and 340 deletions

View File

@@ -10,8 +10,12 @@ namespace NLSE
public partial class Main : Form
{
internal static string root;
internal static string[] itemNames = Data.getItemStrings("en");
internal static string[] itemNames = Data.getIndexStrings("item", "en");
internal static string[] buildingNames = Data.getIndexStrings("building", "en");
internal static string[] villagerNames = Data.getStrings("name", "en");
internal static List<cbItem> itemList = Data.getCBItems(itemNames);
internal static List<cbItem> vList = Data.getCBList(villagerNames, null);
internal static List<cbItem> buildingList = Data.getCBItems(buildingNames);
internal static ACNLVillager[] villagerList = Data.GetVillagers();
public Main()
{

View File

@@ -18,10 +18,10 @@ internal static ACNLVillager[] GetVillagers()
return vAr;
}
internal static string[] getItemStrings(string l)
internal static string[] getIndexStrings(string f, string l)
{
string[] storage = new string[0x8000];
object txt = Properties.Resources.ResourceManager.GetObject("item_" + l); // Fetch File, \n to list.
object txt = Properties.Resources.ResourceManager.GetObject(f + "_" + l); // Fetch File, \n to list.
List<string> rawlist = ((string)txt).Split(new[] { '\n' }).ToList();
string[] input = rawlist.ToArray();
@@ -41,6 +41,13 @@ internal static string[] getItemStrings(string l)
return storage;
}
internal static string[] getStrings(string f, string l)
{
object txt = Properties.Resources.ResourceManager.GetObject(f + "_" + l); // Fetch File, \n to list.
List<string> rawlist = ((string) txt).Split(new[] {'\n'}).ToList();
return rawlist.ToArray();
}
internal static List<cbItem> getCBItems(string[] storage)
{
List<cbItem> cbList = new List<cbItem>();
@@ -57,6 +64,32 @@ internal static List<cbItem> getCBItems(string[] storage)
catch { }
return cbList;
}
internal static List<cbItem> getCBList(string[] inStrings, params int[][] allowed)
{
List<cbItem> cbList = new List<cbItem>();
if (allowed == null)
allowed = new[] { Enumerable.Range(0, inStrings.Length).ToArray() };
foreach (int[] list in allowed)
{
// Sort the Rest based on String Name
string[] unsortedChoices = new string[list.Length];
for (int i = 0; i < list.Length; i++)
unsortedChoices[i] = inStrings[list[i]];
string[] sortedChoices = new string[unsortedChoices.Length];
Array.Copy(unsortedChoices, sortedChoices, unsortedChoices.Length);
Array.Sort(sortedChoices);
// Add the rest of the items
cbList.AddRange(sortedChoices.Select(t => new cbItem
{
Text = t,
Value = list[Array.IndexOf(unsortedChoices, t)]
}));
}
return cbList;
}
}
public class cbItem
{

View File

@@ -1019,6 +1019,12 @@
<ItemGroup>
<None Include="Resources\VillageData\name_en.txt" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\text\buildings_en.txt" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\text\building_en.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@@ -5220,6 +5220,46 @@ internal class Resources {
}
}
/// <summary>
/// Looks up a localized string similar to 4C Modern Police Station
///4D Classic Police Station
///4E Cafe
///4F Reset Center
///A6 Yellow Bench
///A7 Blue Bench
///A8 Wood Bench
///A9 Metal Bench
///AA Log Bench
///AB Modern Bench
///AC Fairy-Tale Bench
///AD Zen Bench
///AE Flower Bed
///AF Water Fountain
///B0 Instrument Shelter
///B1 Sandbox
///B2 Garbage Can
///B3 Pile of Pipes
///B4 Water Well
///B5 Fountain
///B6 Tire Toy
///B7 Jungle Gym
///B8 Park Clock
///B9 Modern Clock
///BA Fairy-Tale Clock
///BB Zen Clock
///BC Street Lamp
///BD Round Streetlight
///BE Streetlight
///BF Modern Streetlight
///C0 Fairy-Tale Streetlight
///C1 Ze [rest of string was truncated]&quot;;.
/// </summary>
internal static string building_en {
get {
return ResourceManager.GetString("building_en", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to ah-CHOO
///honk
@@ -5282,7 +5322,15 @@ internal class Resources {
///pudgy
///grah grah
///stuffin&apos;
/// [rest of string was truncated]&quot;;.
///nyet
///tralala
///bud
///rookie
///cubby
///ya heard
///buh-kay
///uh-hoo
///doodle- [rest of string was truncated]&quot;;.
/// </summary>
internal static string catch_en {
get {
@@ -5397,7 +5445,18 @@ internal class Resources {
///Barold
///Tammy
///Goose
///Bene [rest of string was truncated]&quot;;.
///Benedict
///Egbert
///Ava
///Becky
///Knox
///Broffina
///Ken
///Patty
///Tipper
///Naomi
///Alfonso
///A [rest of string was truncated]&quot;;.
/// </summary>
internal static string name_en {
get {

View File

@@ -1666,6 +1666,9 @@
<data name="acre_99" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\img\acre\acre_99.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="building_en" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\text\building_en.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data>
<data name="catch_en" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\VillageData\catch_en.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-16</value>
</data>

View File

@@ -0,0 +1,188 @@
004C Modern Police Station
004D Classic Police Station
004E Cafe
004F Reset Center
00A6 Yellow Bench
00A7 Blue Bench
00A8 Wood Bench
00A9 Metal Bench
00AA Log Bench
00AB Modern Bench
00AC Fairy-Tale Bench
00AD Zen Bench
00AE Flower Bed
00AF Water Fountain
00B0 Instrument Shelter
00B1 Sandbox
00B2 Garbage Can
00B3 Pile of Pipes
00B4 Water Well
00B5 Fountain
00B6 Tire Toy
00B7 Jungle Gym
00B8 Park Clock
00B9 Modern Clock
00BA Fairy-Tale Clock
00BB Zen Clock
00BC Street Lamp
00BD Round Streetlight
00BE Streetlight
00BF Modern Streetlight
00C0 Fairy-Tale Streetlight
00C1 Zen Streetlight
00C2 Balloon Arch
00C3 Flower Arch
00C4 Campsite
00C5 Picnic Blanket
00C6 Hammock
00C7 Fire Pit
00C8 Camping Cot
00C9 Outdoor Chair
00CA Torch
00CB Zen Garden
00CC Hot Spring
00CD Geyser
00CE Statue Fountain
00CF Stone Tablet
00D0 Water Pump
00D1 Wisteria Trellis
00D2 Bell
00D3 Zen Bell
00D4 Scarecrow
00D5 Race of Rice
00D6 Fence
00D7 Bus Stop
00D8 Fire Hydrant
00D9 Traffic Signal
00DA Custom-Design Sign
00DB Face-Cutout Standee
00DC Caution Sign
00DD Do-Not-Enter Sign
00DE Yield Sign
00DF Cube Sculpture
00E0 Archway Sculpture
00E1 Chair Sculpture
00E2 Illuminated Heart
00E3 Illuminated Arch
00E4 Illuminated Clock
00E5 Illuminated Tree
00E6 Stadium Light
00E7 Video Screen
00E8 Drilling Rig
00E9 Parabolic Antenna
00EA Solar Panels
00EB Wind Turbine
00EC Windmill
00ED Lighthouse
00EE Tower
00EF Stonehenge
00F0 Totem Pole
00F1 Moai Statue
00F2 Pyramid
00F3 Sphinx
00F4 Circle Topiary
00F5 Square Topiary
00F6 Tulip Topiary
00F7 Flower Clock
008E cobblestone bridge (N-S)
008F cobblestone bridge (SW-NE)
0090 cobblestone bridge (NW-SE)
0091 cobblestone bridge (W-E)
0092 suspension bridge (N-S)
0093 suspension bridge (SW-NE)
0094 suspension bridge (NW-SE)
0095 suspension bridge (W-E)
0096 brick bridge (N-S)
0097 brick bridge (SW-NE)
0098 brick bridge (NW-SE)
0099 brick bridge (W-E)
009A modern bridge (N-S)
009B modern bridge (SW-NE)
009C modern bridge (NW-SE)
009D modern bridge (W-E)
009E zen bridge (N-S)
009F zen bridge (SW-NE)
00A0 zen bridge (NW-SE)
00A1 zen bridge (W-E)
00A2 fairy tale bridge (N-S)
00A3 fairy tale bridge (SW-NE)
00A4 fairy tale bridge (NW-SE)
00A5 fairy tale bridge (W-E)
0000 Player 1 House
0001 Player 2 House
0002 Player 3 House
0003 Player 4 House
0004 Mailbox Only (Player 1)
0005 Mailbox Only (Player 2)
0006 Mailbox Only (Player 3)
0007 Mailbox Only (Player 4)
0008 Villager 1
0009 Villager 2
000A Villager 3
000B Villager 4
000C Villager 5
000D Villager 6
000E Villager 7
000F Villager 8
0010 Villager 9
0011 Villager 10
0050 classic town hall
0051 zen town hall
0052 fairy-tale town hall
0053 modern town hall
0054 classic train station
0055 zen train station
0056 fairy-tale train station
0057 modern train station
0058 recycle shop
0059 town plaza
005A railroad crossing arms
005B bulletin board
005C island storage bin
005D dock
005E Katrina's Tent
005F Camper's Tent
0060 Redd's Tent
0061 Chip's Tent
0062 Nat's Tent
0063 Franklin's Table
0064 Pav<61>'s Dance Stage
0065 Countdown Board
0066 Redd's Stand
0067 Dream World Bed
006B New Years Day face cutout standee
006C ??? face cutout standee (6C)
006D ??? face cutout standee (6D)
006E Groundhog Day face cutout standee
006F Bean day? face cutout standee
0070 ??? face cutout standee (70)
0071 Empty?
0072 St. Patrick's Day face cutout standee
0073 ??? face cutout standee (73)
0074 Earth Day face cutout standee
0075 Carp Banner? face cutout standee
0076 ??? face cutout standee (76)
0077 Flowers face cutout standee
0078 ??? face cutout standee (78)
0079 ??? face cutout standee (79)
007A Labor Day face cutout standee
007B ??? face cutout standee (7B)
007C ??? face cutout standee (7C)
007D Explorer's Day face cutout standee
007E Toy Day? face cutout standee
007F ??? face cutout standee (7F)
/ 0080 Dream Suite door
/ 0081 Main Street door? (81)
/ 0082 Main Street door? (82)
/ 0083 Nookling Junction door
/ 0084 Museum donation board
/ 0085 Garden Shop door
/ 0086 Main Street door? (86)
/ 0087 Able Sisters door
/ 0088 Labelle's door
/ 0089 Nook's Homes door
/ 008A Post Office door
/ 008B Photo Booth
/ 008C Main Street lamp
/ 008D Main Street bench (facing right)
00F8 (None)

View File

@@ -169,6 +169,37 @@ private void InitializeComponent()
this.PB_P0Dresser2 = new System.Windows.Forms.PictureBox();
this.PB_P0Dresser1 = new System.Windows.Forms.PictureBox();
this.L_P0Dresser = new System.Windows.Forms.Label();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.TB_VillagerCatch10 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch9 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch8 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch7 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch6 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch5 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch4 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch3 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch2 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch1 = new System.Windows.Forms.TextBox();
this.L_Villager10 = new System.Windows.Forms.Label();
this.CB_Villager10 = new System.Windows.Forms.ComboBox();
this.L_Villager9 = new System.Windows.Forms.Label();
this.CB_Villager9 = new System.Windows.Forms.ComboBox();
this.L_Villager8 = new System.Windows.Forms.Label();
this.CB_Villager8 = new System.Windows.Forms.ComboBox();
this.L_Villager7 = new System.Windows.Forms.Label();
this.CB_Villager7 = new System.Windows.Forms.ComboBox();
this.L_Villager6 = new System.Windows.Forms.Label();
this.CB_Villager6 = new System.Windows.Forms.ComboBox();
this.L_Villager5 = new System.Windows.Forms.Label();
this.CB_Villager5 = new System.Windows.Forms.ComboBox();
this.L_Villager4 = new System.Windows.Forms.Label();
this.CB_Villager4 = new System.Windows.Forms.ComboBox();
this.L_Villager3 = new System.Windows.Forms.Label();
this.CB_Villager3 = new System.Windows.Forms.ComboBox();
this.L_Villager2 = new System.Windows.Forms.Label();
this.CB_Villager2 = new System.Windows.Forms.ComboBox();
this.L_Villager1 = new System.Windows.Forms.Label();
this.CB_Villager1 = new System.Windows.Forms.ComboBox();
this.L_ItemHover = new System.Windows.Forms.Label();
this.PB_JPEG1 = new System.Windows.Forms.PictureBox();
this.PB_JPEG2 = new System.Windows.Forms.PictureBox();
@@ -177,37 +208,8 @@ private void InitializeComponent()
this.TB_Flag1 = new System.Windows.Forms.TextBox();
this.TB_Flag2 = new System.Windows.Forms.TextBox();
this.L_CurrentItem = new System.Windows.Forms.Label();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.CB_Villager1 = new System.Windows.Forms.ComboBox();
this.L_Villager1 = new System.Windows.Forms.Label();
this.L_Villager2 = new System.Windows.Forms.Label();
this.CB_Villager2 = new System.Windows.Forms.ComboBox();
this.L_Villager3 = new System.Windows.Forms.Label();
this.CB_Villager3 = new System.Windows.Forms.ComboBox();
this.L_Villager4 = new System.Windows.Forms.Label();
this.CB_Villager4 = new System.Windows.Forms.ComboBox();
this.L_Villager5 = new System.Windows.Forms.Label();
this.CB_Villager5 = new System.Windows.Forms.ComboBox();
this.L_Villager6 = new System.Windows.Forms.Label();
this.CB_Villager6 = new System.Windows.Forms.ComboBox();
this.L_Villager7 = new System.Windows.Forms.Label();
this.CB_Villager7 = new System.Windows.Forms.ComboBox();
this.L_Villager8 = new System.Windows.Forms.Label();
this.CB_Villager8 = new System.Windows.Forms.ComboBox();
this.L_Villager9 = new System.Windows.Forms.Label();
this.CB_Villager9 = new System.Windows.Forms.ComboBox();
this.L_Villager10 = new System.Windows.Forms.Label();
this.CB_Villager10 = new System.Windows.Forms.ComboBox();
this.TB_VillagerCatch1 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch2 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch3 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch4 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch5 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch6 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch7 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch8 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch9 = new System.Windows.Forms.TextBox();
this.TB_VillagerCatch10 = new System.Windows.Forms.TextBox();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG0)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
@@ -276,10 +278,12 @@ private void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.PB_P0Pocket)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PB_P0Dresser2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PB_P0Dresser1)).BeginInit();
this.tabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG3)).BeginInit();
this.tabPage4.SuspendLayout();
this.tabPage5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// PB_JPEG0
@@ -358,6 +362,7 @@ private void InitializeComponent()
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage4);
this.tabControl1.Controls.Add(this.tabPage5);
this.tabControl1.Location = new System.Drawing.Point(12, 12);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
@@ -1924,6 +1929,306 @@ private void InitializeComponent()
this.L_P0Dresser.Text = "<-- Dresser";
this.L_P0Dresser.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tabPage4
//
this.tabPage4.Controls.Add(this.TB_VillagerCatch10);
this.tabPage4.Controls.Add(this.TB_VillagerCatch9);
this.tabPage4.Controls.Add(this.TB_VillagerCatch8);
this.tabPage4.Controls.Add(this.TB_VillagerCatch7);
this.tabPage4.Controls.Add(this.TB_VillagerCatch6);
this.tabPage4.Controls.Add(this.TB_VillagerCatch5);
this.tabPage4.Controls.Add(this.TB_VillagerCatch4);
this.tabPage4.Controls.Add(this.TB_VillagerCatch3);
this.tabPage4.Controls.Add(this.TB_VillagerCatch2);
this.tabPage4.Controls.Add(this.TB_VillagerCatch1);
this.tabPage4.Controls.Add(this.L_Villager10);
this.tabPage4.Controls.Add(this.CB_Villager10);
this.tabPage4.Controls.Add(this.L_Villager9);
this.tabPage4.Controls.Add(this.CB_Villager9);
this.tabPage4.Controls.Add(this.L_Villager8);
this.tabPage4.Controls.Add(this.CB_Villager8);
this.tabPage4.Controls.Add(this.L_Villager7);
this.tabPage4.Controls.Add(this.CB_Villager7);
this.tabPage4.Controls.Add(this.L_Villager6);
this.tabPage4.Controls.Add(this.CB_Villager6);
this.tabPage4.Controls.Add(this.L_Villager5);
this.tabPage4.Controls.Add(this.CB_Villager5);
this.tabPage4.Controls.Add(this.L_Villager4);
this.tabPage4.Controls.Add(this.CB_Villager4);
this.tabPage4.Controls.Add(this.L_Villager3);
this.tabPage4.Controls.Add(this.CB_Villager3);
this.tabPage4.Controls.Add(this.L_Villager2);
this.tabPage4.Controls.Add(this.CB_Villager2);
this.tabPage4.Controls.Add(this.L_Villager1);
this.tabPage4.Controls.Add(this.CB_Villager1);
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(652, 560);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "Villagers";
this.tabPage4.UseVisualStyleBackColor = true;
//
// TB_VillagerCatch10
//
this.TB_VillagerCatch10.Location = new System.Drawing.Point(239, 248);
this.TB_VillagerCatch10.MaxLength = 10;
this.TB_VillagerCatch10.Name = "TB_VillagerCatch10";
this.TB_VillagerCatch10.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch10.TabIndex = 45;
//
// TB_VillagerCatch9
//
this.TB_VillagerCatch9.Location = new System.Drawing.Point(239, 221);
this.TB_VillagerCatch9.MaxLength = 10;
this.TB_VillagerCatch9.Name = "TB_VillagerCatch9";
this.TB_VillagerCatch9.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch9.TabIndex = 44;
//
// TB_VillagerCatch8
//
this.TB_VillagerCatch8.Location = new System.Drawing.Point(239, 194);
this.TB_VillagerCatch8.MaxLength = 10;
this.TB_VillagerCatch8.Name = "TB_VillagerCatch8";
this.TB_VillagerCatch8.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch8.TabIndex = 43;
//
// TB_VillagerCatch7
//
this.TB_VillagerCatch7.Location = new System.Drawing.Point(239, 167);
this.TB_VillagerCatch7.MaxLength = 10;
this.TB_VillagerCatch7.Name = "TB_VillagerCatch7";
this.TB_VillagerCatch7.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch7.TabIndex = 42;
//
// TB_VillagerCatch6
//
this.TB_VillagerCatch6.Location = new System.Drawing.Point(239, 140);
this.TB_VillagerCatch6.MaxLength = 10;
this.TB_VillagerCatch6.Name = "TB_VillagerCatch6";
this.TB_VillagerCatch6.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch6.TabIndex = 41;
//
// TB_VillagerCatch5
//
this.TB_VillagerCatch5.Location = new System.Drawing.Point(239, 113);
this.TB_VillagerCatch5.MaxLength = 10;
this.TB_VillagerCatch5.Name = "TB_VillagerCatch5";
this.TB_VillagerCatch5.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch5.TabIndex = 40;
//
// TB_VillagerCatch4
//
this.TB_VillagerCatch4.Location = new System.Drawing.Point(239, 86);
this.TB_VillagerCatch4.MaxLength = 10;
this.TB_VillagerCatch4.Name = "TB_VillagerCatch4";
this.TB_VillagerCatch4.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch4.TabIndex = 39;
//
// TB_VillagerCatch3
//
this.TB_VillagerCatch3.Location = new System.Drawing.Point(239, 59);
this.TB_VillagerCatch3.MaxLength = 10;
this.TB_VillagerCatch3.Name = "TB_VillagerCatch3";
this.TB_VillagerCatch3.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch3.TabIndex = 38;
//
// TB_VillagerCatch2
//
this.TB_VillagerCatch2.Location = new System.Drawing.Point(239, 32);
this.TB_VillagerCatch2.MaxLength = 10;
this.TB_VillagerCatch2.Name = "TB_VillagerCatch2";
this.TB_VillagerCatch2.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch2.TabIndex = 37;
//
// TB_VillagerCatch1
//
this.TB_VillagerCatch1.Location = new System.Drawing.Point(239, 5);
this.TB_VillagerCatch1.MaxLength = 10;
this.TB_VillagerCatch1.Name = "TB_VillagerCatch1";
this.TB_VillagerCatch1.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch1.TabIndex = 36;
//
// L_Villager10
//
this.L_Villager10.Location = new System.Drawing.Point(6, 246);
this.L_Villager10.Name = "L_Villager10";
this.L_Villager10.Size = new System.Drawing.Size(100, 23);
this.L_Villager10.TabIndex = 35;
this.L_Villager10.Text = "Villager 10:";
this.L_Villager10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager10
//
this.CB_Villager10.FormattingEnabled = true;
this.CB_Villager10.Location = new System.Drawing.Point(112, 248);
this.CB_Villager10.Name = "CB_Villager10";
this.CB_Villager10.Size = new System.Drawing.Size(121, 21);
this.CB_Villager10.TabIndex = 34;
this.CB_Villager10.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager9
//
this.L_Villager9.Location = new System.Drawing.Point(6, 219);
this.L_Villager9.Name = "L_Villager9";
this.L_Villager9.Size = new System.Drawing.Size(100, 23);
this.L_Villager9.TabIndex = 33;
this.L_Villager9.Text = "Villager 9:";
this.L_Villager9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager9
//
this.CB_Villager9.FormattingEnabled = true;
this.CB_Villager9.Location = new System.Drawing.Point(112, 221);
this.CB_Villager9.Name = "CB_Villager9";
this.CB_Villager9.Size = new System.Drawing.Size(121, 21);
this.CB_Villager9.TabIndex = 32;
this.CB_Villager9.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager8
//
this.L_Villager8.Location = new System.Drawing.Point(6, 192);
this.L_Villager8.Name = "L_Villager8";
this.L_Villager8.Size = new System.Drawing.Size(100, 23);
this.L_Villager8.TabIndex = 31;
this.L_Villager8.Text = "Villager 8:";
this.L_Villager8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager8
//
this.CB_Villager8.FormattingEnabled = true;
this.CB_Villager8.Location = new System.Drawing.Point(112, 194);
this.CB_Villager8.Name = "CB_Villager8";
this.CB_Villager8.Size = new System.Drawing.Size(121, 21);
this.CB_Villager8.TabIndex = 30;
this.CB_Villager8.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager7
//
this.L_Villager7.Location = new System.Drawing.Point(6, 165);
this.L_Villager7.Name = "L_Villager7";
this.L_Villager7.Size = new System.Drawing.Size(100, 23);
this.L_Villager7.TabIndex = 29;
this.L_Villager7.Text = "Villager 7:";
this.L_Villager7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager7
//
this.CB_Villager7.FormattingEnabled = true;
this.CB_Villager7.Location = new System.Drawing.Point(112, 167);
this.CB_Villager7.Name = "CB_Villager7";
this.CB_Villager7.Size = new System.Drawing.Size(121, 21);
this.CB_Villager7.TabIndex = 28;
this.CB_Villager7.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager6
//
this.L_Villager6.Location = new System.Drawing.Point(6, 138);
this.L_Villager6.Name = "L_Villager6";
this.L_Villager6.Size = new System.Drawing.Size(100, 23);
this.L_Villager6.TabIndex = 27;
this.L_Villager6.Text = "Villager 6:";
this.L_Villager6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager6
//
this.CB_Villager6.FormattingEnabled = true;
this.CB_Villager6.Location = new System.Drawing.Point(112, 140);
this.CB_Villager6.Name = "CB_Villager6";
this.CB_Villager6.Size = new System.Drawing.Size(121, 21);
this.CB_Villager6.TabIndex = 26;
this.CB_Villager6.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager5
//
this.L_Villager5.Location = new System.Drawing.Point(6, 111);
this.L_Villager5.Name = "L_Villager5";
this.L_Villager5.Size = new System.Drawing.Size(100, 23);
this.L_Villager5.TabIndex = 25;
this.L_Villager5.Text = "Villager 5:";
this.L_Villager5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager5
//
this.CB_Villager5.FormattingEnabled = true;
this.CB_Villager5.Location = new System.Drawing.Point(112, 113);
this.CB_Villager5.Name = "CB_Villager5";
this.CB_Villager5.Size = new System.Drawing.Size(121, 21);
this.CB_Villager5.TabIndex = 24;
this.CB_Villager5.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager4
//
this.L_Villager4.Location = new System.Drawing.Point(6, 84);
this.L_Villager4.Name = "L_Villager4";
this.L_Villager4.Size = new System.Drawing.Size(100, 23);
this.L_Villager4.TabIndex = 23;
this.L_Villager4.Text = "Villager 4:";
this.L_Villager4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager4
//
this.CB_Villager4.FormattingEnabled = true;
this.CB_Villager4.Location = new System.Drawing.Point(112, 86);
this.CB_Villager4.Name = "CB_Villager4";
this.CB_Villager4.Size = new System.Drawing.Size(121, 21);
this.CB_Villager4.TabIndex = 22;
this.CB_Villager4.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager3
//
this.L_Villager3.Location = new System.Drawing.Point(6, 57);
this.L_Villager3.Name = "L_Villager3";
this.L_Villager3.Size = new System.Drawing.Size(100, 23);
this.L_Villager3.TabIndex = 21;
this.L_Villager3.Text = "Villager 3:";
this.L_Villager3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager3
//
this.CB_Villager3.FormattingEnabled = true;
this.CB_Villager3.Location = new System.Drawing.Point(112, 59);
this.CB_Villager3.Name = "CB_Villager3";
this.CB_Villager3.Size = new System.Drawing.Size(121, 21);
this.CB_Villager3.TabIndex = 20;
this.CB_Villager3.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager2
//
this.L_Villager2.Location = new System.Drawing.Point(6, 30);
this.L_Villager2.Name = "L_Villager2";
this.L_Villager2.Size = new System.Drawing.Size(100, 23);
this.L_Villager2.TabIndex = 19;
this.L_Villager2.Text = "Villager 2:";
this.L_Villager2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager2
//
this.CB_Villager2.FormattingEnabled = true;
this.CB_Villager2.Location = new System.Drawing.Point(112, 32);
this.CB_Villager2.Name = "CB_Villager2";
this.CB_Villager2.Size = new System.Drawing.Size(121, 21);
this.CB_Villager2.TabIndex = 18;
this.CB_Villager2.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager1
//
this.L_Villager1.Location = new System.Drawing.Point(6, 3);
this.L_Villager1.Name = "L_Villager1";
this.L_Villager1.Size = new System.Drawing.Size(100, 23);
this.L_Villager1.TabIndex = 17;
this.L_Villager1.Text = "Villager 1:";
this.L_Villager1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager1
//
this.CB_Villager1.FormattingEnabled = true;
this.CB_Villager1.Location = new System.Drawing.Point(112, 5);
this.CB_Villager1.Name = "CB_Villager1";
this.CB_Villager1.Size = new System.Drawing.Size(121, 21);
this.CB_Villager1.TabIndex = 16;
this.CB_Villager1.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_ItemHover
//
this.L_ItemHover.AutoSize = true;
@@ -2015,305 +2320,39 @@ private void InitializeComponent()
this.L_CurrentItem.TabIndex = 15;
this.L_CurrentItem.Text = "Current Item:";
//
// tabPage4
// tabPage5
//
this.tabPage4.Controls.Add(this.TB_VillagerCatch10);
this.tabPage4.Controls.Add(this.TB_VillagerCatch9);
this.tabPage4.Controls.Add(this.TB_VillagerCatch8);
this.tabPage4.Controls.Add(this.TB_VillagerCatch7);
this.tabPage4.Controls.Add(this.TB_VillagerCatch6);
this.tabPage4.Controls.Add(this.TB_VillagerCatch5);
this.tabPage4.Controls.Add(this.TB_VillagerCatch4);
this.tabPage4.Controls.Add(this.TB_VillagerCatch3);
this.tabPage4.Controls.Add(this.TB_VillagerCatch2);
this.tabPage4.Controls.Add(this.TB_VillagerCatch1);
this.tabPage4.Controls.Add(this.L_Villager10);
this.tabPage4.Controls.Add(this.CB_Villager10);
this.tabPage4.Controls.Add(this.L_Villager9);
this.tabPage4.Controls.Add(this.CB_Villager9);
this.tabPage4.Controls.Add(this.L_Villager8);
this.tabPage4.Controls.Add(this.CB_Villager8);
this.tabPage4.Controls.Add(this.L_Villager7);
this.tabPage4.Controls.Add(this.CB_Villager7);
this.tabPage4.Controls.Add(this.L_Villager6);
this.tabPage4.Controls.Add(this.CB_Villager6);
this.tabPage4.Controls.Add(this.L_Villager5);
this.tabPage4.Controls.Add(this.CB_Villager5);
this.tabPage4.Controls.Add(this.L_Villager4);
this.tabPage4.Controls.Add(this.CB_Villager4);
this.tabPage4.Controls.Add(this.L_Villager3);
this.tabPage4.Controls.Add(this.CB_Villager3);
this.tabPage4.Controls.Add(this.L_Villager2);
this.tabPage4.Controls.Add(this.CB_Villager2);
this.tabPage4.Controls.Add(this.L_Villager1);
this.tabPage4.Controls.Add(this.CB_Villager1);
this.tabPage4.Location = new System.Drawing.Point(4, 22);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
this.tabPage4.Size = new System.Drawing.Size(652, 560);
this.tabPage4.TabIndex = 3;
this.tabPage4.Text = "Villagers";
this.tabPage4.UseVisualStyleBackColor = true;
this.tabPage5.Controls.Add(this.dataGridView1);
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
this.tabPage5.Size = new System.Drawing.Size(652, 560);
this.tabPage5.TabIndex = 4;
this.tabPage5.Text = "Buildings";
this.tabPage5.UseVisualStyleBackColor = true;
//
// CB_Villager1
// dataGridView1
//
this.CB_Villager1.FormattingEnabled = true;
this.CB_Villager1.Location = new System.Drawing.Point(112, 5);
this.CB_Villager1.Name = "CB_Villager1";
this.CB_Villager1.Size = new System.Drawing.Size(121, 21);
this.CB_Villager1.TabIndex = 16;
this.CB_Villager1.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager1
//
this.L_Villager1.Location = new System.Drawing.Point(6, 3);
this.L_Villager1.Name = "L_Villager1";
this.L_Villager1.Size = new System.Drawing.Size(100, 23);
this.L_Villager1.TabIndex = 17;
this.L_Villager1.Text = "Villager 1:";
this.L_Villager1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// L_Villager2
//
this.L_Villager2.Location = new System.Drawing.Point(6, 30);
this.L_Villager2.Name = "L_Villager2";
this.L_Villager2.Size = new System.Drawing.Size(100, 23);
this.L_Villager2.TabIndex = 19;
this.L_Villager2.Text = "Villager 2:";
this.L_Villager2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager2
//
this.CB_Villager2.FormattingEnabled = true;
this.CB_Villager2.Location = new System.Drawing.Point(112, 32);
this.CB_Villager2.Name = "CB_Villager2";
this.CB_Villager2.Size = new System.Drawing.Size(121, 21);
this.CB_Villager2.TabIndex = 18;
this.CB_Villager2.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager3
//
this.L_Villager3.Location = new System.Drawing.Point(6, 57);
this.L_Villager3.Name = "L_Villager3";
this.L_Villager3.Size = new System.Drawing.Size(100, 23);
this.L_Villager3.TabIndex = 21;
this.L_Villager3.Text = "Villager 3:";
this.L_Villager3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager3
//
this.CB_Villager3.FormattingEnabled = true;
this.CB_Villager3.Location = new System.Drawing.Point(112, 59);
this.CB_Villager3.Name = "CB_Villager3";
this.CB_Villager3.Size = new System.Drawing.Size(121, 21);
this.CB_Villager3.TabIndex = 20;
this.CB_Villager3.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager4
//
this.L_Villager4.Location = new System.Drawing.Point(6, 84);
this.L_Villager4.Name = "L_Villager4";
this.L_Villager4.Size = new System.Drawing.Size(100, 23);
this.L_Villager4.TabIndex = 23;
this.L_Villager4.Text = "Villager 4:";
this.L_Villager4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager4
//
this.CB_Villager4.FormattingEnabled = true;
this.CB_Villager4.Location = new System.Drawing.Point(112, 86);
this.CB_Villager4.Name = "CB_Villager4";
this.CB_Villager4.Size = new System.Drawing.Size(121, 21);
this.CB_Villager4.TabIndex = 22;
this.CB_Villager4.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager5
//
this.L_Villager5.Location = new System.Drawing.Point(6, 111);
this.L_Villager5.Name = "L_Villager5";
this.L_Villager5.Size = new System.Drawing.Size(100, 23);
this.L_Villager5.TabIndex = 25;
this.L_Villager5.Text = "Villager 5:";
this.L_Villager5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager5
//
this.CB_Villager5.FormattingEnabled = true;
this.CB_Villager5.Location = new System.Drawing.Point(112, 113);
this.CB_Villager5.Name = "CB_Villager5";
this.CB_Villager5.Size = new System.Drawing.Size(121, 21);
this.CB_Villager5.TabIndex = 24;
this.CB_Villager5.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager6
//
this.L_Villager6.Location = new System.Drawing.Point(6, 138);
this.L_Villager6.Name = "L_Villager6";
this.L_Villager6.Size = new System.Drawing.Size(100, 23);
this.L_Villager6.TabIndex = 27;
this.L_Villager6.Text = "Villager 6:";
this.L_Villager6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager6
//
this.CB_Villager6.FormattingEnabled = true;
this.CB_Villager6.Location = new System.Drawing.Point(112, 140);
this.CB_Villager6.Name = "CB_Villager6";
this.CB_Villager6.Size = new System.Drawing.Size(121, 21);
this.CB_Villager6.TabIndex = 26;
this.CB_Villager6.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager7
//
this.L_Villager7.Location = new System.Drawing.Point(6, 165);
this.L_Villager7.Name = "L_Villager7";
this.L_Villager7.Size = new System.Drawing.Size(100, 23);
this.L_Villager7.TabIndex = 29;
this.L_Villager7.Text = "Villager 7:";
this.L_Villager7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager7
//
this.CB_Villager7.FormattingEnabled = true;
this.CB_Villager7.Location = new System.Drawing.Point(112, 167);
this.CB_Villager7.Name = "CB_Villager7";
this.CB_Villager7.Size = new System.Drawing.Size(121, 21);
this.CB_Villager7.TabIndex = 28;
this.CB_Villager7.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager8
//
this.L_Villager8.Location = new System.Drawing.Point(6, 192);
this.L_Villager8.Name = "L_Villager8";
this.L_Villager8.Size = new System.Drawing.Size(100, 23);
this.L_Villager8.TabIndex = 31;
this.L_Villager8.Text = "Villager 8:";
this.L_Villager8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager8
//
this.CB_Villager8.FormattingEnabled = true;
this.CB_Villager8.Location = new System.Drawing.Point(112, 194);
this.CB_Villager8.Name = "CB_Villager8";
this.CB_Villager8.Size = new System.Drawing.Size(121, 21);
this.CB_Villager8.TabIndex = 30;
this.CB_Villager8.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager9
//
this.L_Villager9.Location = new System.Drawing.Point(6, 219);
this.L_Villager9.Name = "L_Villager9";
this.L_Villager9.Size = new System.Drawing.Size(100, 23);
this.L_Villager9.TabIndex = 33;
this.L_Villager9.Text = "Villager 9:";
this.L_Villager9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager9
//
this.CB_Villager9.FormattingEnabled = true;
this.CB_Villager9.Location = new System.Drawing.Point(112, 221);
this.CB_Villager9.Name = "CB_Villager9";
this.CB_Villager9.Size = new System.Drawing.Size(121, 21);
this.CB_Villager9.TabIndex = 32;
this.CB_Villager9.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// L_Villager10
//
this.L_Villager10.Location = new System.Drawing.Point(6, 246);
this.L_Villager10.Name = "L_Villager10";
this.L_Villager10.Size = new System.Drawing.Size(100, 23);
this.L_Villager10.TabIndex = 35;
this.L_Villager10.Text = "Villager 10:";
this.L_Villager10.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// CB_Villager10
//
this.CB_Villager10.FormattingEnabled = true;
this.CB_Villager10.Location = new System.Drawing.Point(112, 248);
this.CB_Villager10.Name = "CB_Villager10";
this.CB_Villager10.Size = new System.Drawing.Size(121, 21);
this.CB_Villager10.TabIndex = 34;
this.CB_Villager10.SelectedIndexChanged += new System.EventHandler(this.changeVillager);
//
// TB_VillagerCatch1
//
this.TB_VillagerCatch1.Location = new System.Drawing.Point(239, 5);
this.TB_VillagerCatch1.MaxLength = 10;
this.TB_VillagerCatch1.Name = "TB_VillagerCatch1";
this.TB_VillagerCatch1.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch1.TabIndex = 36;
//
// TB_VillagerCatch2
//
this.TB_VillagerCatch2.Location = new System.Drawing.Point(239, 32);
this.TB_VillagerCatch2.MaxLength = 10;
this.TB_VillagerCatch2.Name = "TB_VillagerCatch2";
this.TB_VillagerCatch2.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch2.TabIndex = 37;
//
// TB_VillagerCatch3
//
this.TB_VillagerCatch3.Location = new System.Drawing.Point(239, 59);
this.TB_VillagerCatch3.MaxLength = 10;
this.TB_VillagerCatch3.Name = "TB_VillagerCatch3";
this.TB_VillagerCatch3.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch3.TabIndex = 38;
//
// TB_VillagerCatch4
//
this.TB_VillagerCatch4.Location = new System.Drawing.Point(239, 86);
this.TB_VillagerCatch4.MaxLength = 10;
this.TB_VillagerCatch4.Name = "TB_VillagerCatch4";
this.TB_VillagerCatch4.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch4.TabIndex = 39;
//
// TB_VillagerCatch5
//
this.TB_VillagerCatch5.Location = new System.Drawing.Point(239, 113);
this.TB_VillagerCatch5.MaxLength = 10;
this.TB_VillagerCatch5.Name = "TB_VillagerCatch5";
this.TB_VillagerCatch5.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch5.TabIndex = 40;
//
// TB_VillagerCatch6
//
this.TB_VillagerCatch6.Location = new System.Drawing.Point(239, 140);
this.TB_VillagerCatch6.MaxLength = 10;
this.TB_VillagerCatch6.Name = "TB_VillagerCatch6";
this.TB_VillagerCatch6.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch6.TabIndex = 41;
//
// TB_VillagerCatch7
//
this.TB_VillagerCatch7.Location = new System.Drawing.Point(239, 167);
this.TB_VillagerCatch7.MaxLength = 10;
this.TB_VillagerCatch7.Name = "TB_VillagerCatch7";
this.TB_VillagerCatch7.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch7.TabIndex = 42;
//
// TB_VillagerCatch8
//
this.TB_VillagerCatch8.Location = new System.Drawing.Point(239, 194);
this.TB_VillagerCatch8.MaxLength = 10;
this.TB_VillagerCatch8.Name = "TB_VillagerCatch8";
this.TB_VillagerCatch8.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch8.TabIndex = 43;
//
// TB_VillagerCatch9
//
this.TB_VillagerCatch9.Location = new System.Drawing.Point(239, 221);
this.TB_VillagerCatch9.MaxLength = 10;
this.TB_VillagerCatch9.Name = "TB_VillagerCatch9";
this.TB_VillagerCatch9.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch9.TabIndex = 44;
//
// TB_VillagerCatch10
//
this.TB_VillagerCatch10.Location = new System.Drawing.Point(239, 248);
this.TB_VillagerCatch10.MaxLength = 10;
this.TB_VillagerCatch10.Name = "TB_VillagerCatch10";
this.TB_VillagerCatch10.Size = new System.Drawing.Size(100, 20);
this.TB_VillagerCatch10.TabIndex = 45;
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.AllowUserToResizeColumns = false;
this.dataGridView1.AllowUserToResizeRows = false;
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)));
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.ControlLightLight;
this.dataGridView1.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.ColumnHeadersVisible = false;
this.dataGridView1.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dataGridView1.Location = new System.Drawing.Point(6, 6);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowHeadersVisible = false;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dataGridView1.ShowEditingIcon = false;
this.dataGridView1.Size = new System.Drawing.Size(249, 548);
this.dataGridView1.TabIndex = 16;
this.dataGridView1.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dropclick);
//
// Garden
//
@@ -2410,11 +2449,13 @@ private void InitializeComponent()
((System.ComponentModel.ISupportInitialize)(this.PB_P0Pocket)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PB_P0Dresser2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PB_P0Dresser1)).EndInit();
this.tabPage4.ResumeLayout(false);
this.tabPage4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.PB_JPEG3)).EndInit();
this.tabPage4.ResumeLayout(false);
this.tabPage4.PerformLayout();
this.tabPage5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@@ -2601,5 +2642,7 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox TB_VillagerCatch3;
private System.Windows.Forms.TextBox TB_VillagerCatch2;
private System.Windows.Forms.TextBox TB_VillagerCatch1;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.DataGridView dataGridView1;
}
}

View File

@@ -27,9 +27,9 @@ public Garden()
InitializeComponent();
CB_Item.DisplayMember = "Text";
CB_Item.ValueMember = "Value";
CB_Item.DataSource = new BindingSource(Main.itemList, null);
TB_Flag1.KeyPress += EnterKey;
TB_Flag2.KeyPress += EnterKey;
CB_Item.DataSource = Main.itemList;
Save = new GardenData(Main.SaveData);
#region Array Initialization
TownAcres = new[]
@@ -141,7 +141,11 @@ public Garden()
CB_Villager6, CB_Villager7, CB_Villager8, CB_Villager9, CB_Villager10
};
foreach (ComboBox id in TownVillagers)
id.DataSource = (Properties.Resources.name_en).Split(new[] { '\n' }).ToArray();
{
id.DisplayMember = "Text";
id.ValueMember = "Value";
id.DataSource = new BindingSource(Main.vList, null);
}
TownVillagersCatch = new[]
{
@@ -159,6 +163,7 @@ public Garden()
#endregion
// Load
loadData();
populateBuildingList();
reloadCurrentItem(currentItem);
}
private void B_Save_Click(object sender, EventArgs e)
@@ -465,6 +470,7 @@ private void saveData()
Array.Copy(IslandItems[i].Write(), 0, Save.Data, 0x6A4A8 + i * 4, 4);
// Write Buildings
saveBuildingList();
for (int i = 0; i < Buildings.Length; i++)
Array.Copy(Buildings[i].Write(), 0, Save.Data, 0x0495A8 + i * 4, 4);
@@ -513,12 +519,12 @@ private void loadVillager(int i)
{
Villagers[i] = new Villager(Save.Data, 0x027D10 + 0x24F8 * i, 0x24F8);
TownVillagers[i].Enabled = TownVillagersCatch[i].Enabled = (Villagers[i].ID != -1);
TownVillagers[i].SelectedIndex = Villagers[i].ID;
TownVillagers[i].SelectedValue = (int)Villagers[i].ID;
TownVillagersCatch[i].Text = Villagers[i].CatchPhrase;
}
private void saveVillager(int i)
{
Villagers[i].ID = (short)TownVillagers[i].SelectedIndex;
Villagers[i].ID = (short)Util.getIndex(TownVillagers[i]);
Villagers[i].CatchPhrase = TownVillagersCatch[i].Text;
Array.Copy(Villagers[i].Write(), 0, Save.Data, 0x027D10 + 0x24F8 * i, 0x24F8);
}
@@ -987,7 +993,7 @@ private void changeVillager(object sender, EventArgs e)
{
if (!loaded) return;
int index = Array.IndexOf(TownVillagers, sender as ComboBox);
int value = (sender as ComboBox).SelectedIndex;
int value = Util.getIndex(sender as ComboBox);
if (index == -1 || value == -1) return;
Villagers[index].Type = Main.villagerList[value].Type;
@@ -997,5 +1003,98 @@ private void changeVillager(object sender, EventArgs e)
Array.Copy(Main.villagerList[value].DefaultBytes, 0, Villagers[index].Data, 0x244E, 88);
TownVillagersCatch[index].Text = Main.villagerList[value].CatchPhrase;
}
private void saveBuildingList()
{
int itemcount = dataGridView1.Rows.Count;
for (int i = 0; i < itemcount; i++)
{
int ID = (int)dataGridView1.Rows[i].Cells[0].Value;
if (ID > 0xF8 || ID < 0)
{
Buildings[i].ID = 0xF8;
Buildings[i].X = 0;
Buildings[i].Y = 0;
}
else
{
Buildings[i].ID = ID;
try
{ Buildings[i].X = Convert.ToUInt16(dataGridView1.Rows[i].Cells[1].Value.ToString()); }
catch { }
try
{ Buildings[i].Y = Convert.ToUInt16(dataGridView1.Rows[i].Cells[2].Value.ToString()); }
catch { }
}
}
}
private void populateBuildingList()
{
dataGridView1.Rows.Clear();
dataGridView1.Columns.Clear();
DataGridViewComboBoxColumn dgvItemVal = new DataGridViewComboBoxColumn
{
DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing,
DisplayIndex = 0,
DisplayMember = "Text",
ValueMember = "Value",
DataSource = Main.buildingList,
Width = 150,
FlatStyle = FlatStyle.Flat
};
DataGridViewColumn dgvX = new DataGridViewTextBoxColumn
{
HeaderText = "X",
DisplayIndex = 1,
Width = 45,
};
DataGridViewColumn dgvY = new DataGridViewTextBoxColumn
{
HeaderText = "Y",
DisplayIndex = 2,
Width = 45,
};
dgvX.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
dgvY.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
dataGridView1.Columns.Add(dgvItemVal);
dataGridView1.Columns.Add(dgvX);
dataGridView1.Columns.Add(dgvY);
dataGridView1.Rows.Add(Buildings.Length);
dataGridView1.CancelEdit();
string itemname = "";
for (int i = 0; i < Buildings.Length; i++)
{
int itemvalue = Buildings[i].ID;
try { itemname = Main.buildingNames[itemvalue]; }
catch
{
Util.Error("Unknown building detected.", "Building ID: " + itemvalue, "Building is after: " + itemname);
continue;
}
int itemarrayval = Array.IndexOf(Main.buildingNames, itemname);
if (itemarrayval == -1)
{
Buildings[i].ID = 0xFE;
Buildings[i].X = 0;
Buildings[i].Y = 0;
Util.Alert(itemname + " removed from Building List.", "If you save changes to Garden, the Building will no longer be in the Town.");
}
dataGridView1.Rows[i].Cells[0].Value = Buildings[i].ID;
dataGridView1.Rows[i].Cells[1].Value = Buildings[i].X;
dataGridView1.Rows[i].Cells[2].Value = Buildings[i].Y;
}
}
private void dropclick(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex != 0) return;
ComboBox comboBox = (ComboBox)dataGridView1.EditingControl;
comboBox.DroppedDown = true;
}
}
}