Inheritance: System.Windows.Forms.PictureBox
コード例 #1
0
        public override void LoadForm()
        {
            this.SuspendForm();
            base.NotificationInitialize();

            this.cityNameLabel.Text = city.name.ToTitle();
            mapBox = UIManager.DrawRoute(city.location, new Coordinate(-1,-1,mapSize.Width), mapSize, mapSize, mapSize, new List<Color>(), new List<Target>());
            mapBox.Location = new Point(5, cityNameLabel.Location.Y + cityNameLabel.Height);
            mapBox.MapUpdated += ResetTimer;
            this.Controls.Add(mapBox);

            baseHeight = this.Size.Height;
            RefreshForm();

            UnregisterControl(npcButton);
            UnregisterControl(utilityButton);
            UnregisterControl(huntButton);
            UnregisterControl(questButton);
            UnregisterControl(nextButton);
            UnregisterControl(previousButton);
            mapUpLevel.Image = StyleManager.GetImage("mapup.png");
            UnregisterControl(mapUpLevel);
            mapDownLevel.Image = StyleManager.GetImage("mapdown.png");
            UnregisterControl(mapDownLevel);

            this.NotificationFinalize();
            this.ResumeForm();
        }
コード例 #2
0
        public override void LoadForm()
        {
            this.SuspendForm();
            base.NotificationInitialize();

            this.cityNameLabel.Text = city.name.ToTitle();
            mapBox             = UIManager.DrawRoute(city.location, new Coordinate(-1, -1, mapSize.Width), mapSize, mapSize, mapSize, new List <Color>(), new List <Target>());
            mapBox.Location    = new Point(5, cityNameLabel.Location.Y + cityNameLabel.Height);
            mapBox.MapUpdated += ResetTimer;
            this.Controls.Add(mapBox);

            baseHeight = this.Size.Height;
            RefreshForm();

            npcButton.Click         -= c_Click;
            utilityButton.Click     -= c_Click;
            huntButton.Click        -= c_Click;
            questButton.Click       -= c_Click;
            nextButton.Click        -= c_Click;
            previousButton.Click    -= c_Click;
            this.mapUpLevel.Image    = StyleManager.GetImage("mapup.png");
            this.mapUpLevel.Click   -= c_Click;
            this.mapDownLevel.Image  = StyleManager.GetImage("mapdown.png");
            this.mapDownLevel.Click -= c_Click;

            this.NotificationFinalize();
            this.ResumeForm();
        }
コード例 #3
0
ファイル: CityDisplayForm.cs プロジェクト: Ikkish/Tibialyzer
        public override void LoadForm()
        {
            this.SuspendForm();
            base.NotificationInitialize();

            this.cityNameLabel.Text = MainForm.ToTitle(city.name);
            mapBox             = MainForm.DrawRoute(city.location, new Coordinate(-1, -1, mapSize.Width), mapSize, mapSize, mapSize, new List <Color>(), new List <Target>());
            mapBox.Location    = new Point(5, cityNameLabel.Location.Y + cityNameLabel.Height);
            mapBox.MapUpdated += ResetTimer;
            this.Controls.Add(mapBox);

            baseHeight = this.Size.Height;
            int listHeight = InitializeList(city.utilities, null);

            this.Size = new Size(this.Size.Width, Math.Max(listHeight, baseHeight));

            npcButton.Click         -= c_Click;
            utilityButton.Click     -= c_Click;
            huntButton.Click        -= c_Click;
            questButton.Click       -= c_Click;
            nextButton.Click        -= c_Click;
            previousButton.Click    -= c_Click;
            this.mapUpLevel.Image    = MainForm.mapup_image;
            this.mapUpLevel.Click   -= c_Click;
            this.mapDownLevel.Image  = MainForm.mapdown_image;
            this.mapDownLevel.Click -= c_Click;

            this.NotificationFinalize();
            this.ResumeForm();
        }
コード例 #4
0
ファイル: CityDisplayForm.cs プロジェクト: TheSumm/Tibialyzer
        public override void LoadForm()
        {
            this.SuspendForm();
            base.NotificationInitialize();

            this.cityNameLabel.Text = MainForm.ToTitle(city.name);
            mapBox = MainForm.DrawRoute(city.location, new Coordinate(-1,-1,mapSize.Width), mapSize, mapSize, mapSize, new List<Color>(), new List<Target>());
            mapBox.Location = new Point(5, cityNameLabel.Location.Y + cityNameLabel.Height);
            mapBox.MapUpdated += ResetTimer;
            this.Controls.Add(mapBox);

            baseHeight = this.Size.Height;
            int listHeight = InitializeList(city.utilities, null);

            this.Size = new Size(this.Size.Width, Math.Max(listHeight, baseHeight));

            npcButton.Click -= c_Click;
            utilityButton.Click -= c_Click;
            huntButton.Click -= c_Click;
            questButton.Click -= c_Click;
            nextButton.Click -= c_Click;
            previousButton.Click -= c_Click;
            this.mapUpLevel.Image = StyleManager.GetImage("mapup.png");
            this.mapUpLevel.Click -= c_Click;
            this.mapDownLevel.Image = StyleManager.GetImage("mapdown.png");
            this.mapDownLevel.Click -= c_Click;

            this.NotificationFinalize();
            this.ResumeForm();
        }
コード例 #5
0
ファイル: NPCForm.cs プロジェクト: villor/Tibialyzer
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NPCForm));
     this.mapBox = new Tibialyzer.MapPictureBox();
     this.npcImage = new System.Windows.Forms.PictureBox();
     this.creatureName = new System.Windows.Forms.Label();
     this.mapUpLevel = new System.Windows.Forms.PictureBox();
     this.mapDownLevel = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.npcImage)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
     this.SuspendLayout();
     //
     // mapBox
     //
     this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mapBox.Location = new System.Drawing.Point(121, 12);
     this.mapBox.Name = "mapBox";
     this.mapBox.Size = new System.Drawing.Size(195, 190);
     this.mapBox.TabIndex = 0;
     this.mapBox.TabStop = false;
     //
     // npcImage
     //
     this.npcImage.BackColor = System.Drawing.Color.Transparent;
     this.npcImage.Location = new System.Drawing.Point(12, 45);
     this.npcImage.Name = "npcImage";
     this.npcImage.Size = new System.Drawing.Size(100, 98);
     this.npcImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.npcImage.TabIndex = 1;
     this.npcImage.TabStop = false;
     //
     // creatureName
     //
     this.creatureName.BackColor = System.Drawing.Color.Transparent;
     this.creatureName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.creatureName.ForeColor = System.Drawing.SystemColors.ControlLight;
     this.creatureName.Location = new System.Drawing.Point(11, 146);
     this.creatureName.MaximumSize = new System.Drawing.Size(100, 28);
     this.creatureName.Name = "creatureName";
     this.creatureName.Size = new System.Drawing.Size(100, 28);
     this.creatureName.TabIndex = 2;
     this.creatureName.Text = "Rashid";
     this.creatureName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.creatureName.Click += new System.EventHandler(this.creatureName_Click);
     //
     // mapUpLevel
     //
     this.mapUpLevel.Location = new System.Drawing.Point(121, 13);
     this.mapUpLevel.Name = "mapUpLevel";
     this.mapUpLevel.Size = new System.Drawing.Size(21, 21);
     this.mapUpLevel.TabIndex = 3;
     this.mapUpLevel.TabStop = false;
     //
     // mapDownLevel
     //
     this.mapDownLevel.Location = new System.Drawing.Point(121, 34);
     this.mapDownLevel.Name = "mapDownLevel";
     this.mapDownLevel.Size = new System.Drawing.Size(21, 21);
     this.mapDownLevel.TabIndex = 4;
     this.mapDownLevel.TabStop = false;
     //
     // NPCForm
     //
     this.ClientSize = new System.Drawing.Size(328, 209);
     this.Controls.Add(this.mapDownLevel);
     this.Controls.Add(this.mapUpLevel);
     this.Controls.Add(this.creatureName);
     this.Controls.Add(this.npcImage);
     this.Controls.Add(this.mapBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "NPCForm";
     this.Text = "NPC Form";
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.npcImage)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #6
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HuntingPlaceForm));
     this.requirementLabel = new System.Windows.Forms.Label();
     this.cityLabel = new System.Windows.Forms.Label();
     this.levelLabel = new System.Windows.Forms.Label();
     this.lootStarBox = new System.Windows.Forms.PictureBox();
     this.experienceStarBox = new System.Windows.Forms.PictureBox();
     this.label1 = new System.Windows.Forms.Label();
     this.experienceLabel = new System.Windows.Forms.Label();
     this.mapDownLevel = new System.Windows.Forms.PictureBox();
     this.mapUpLevel = new System.Windows.Forms.PictureBox();
     this.creatureLabel = new System.Windows.Forms.Label();
     this.huntingPlaceName = new System.Windows.Forms.Label();
     this.mapBox = new Tibialyzer.MapPictureBox();
     this.guideButton = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.lootStarBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.experienceStarBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
     this.SuspendLayout();
     //
     // requirementLabel
     //
     this.requirementLabel.AutoSize = true;
     this.requirementLabel.BackColor = System.Drawing.Color.Transparent;
     this.requirementLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.requirementLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.requirementLabel.Location = new System.Drawing.Point(37, 121);
     this.requirementLabel.Name = "requirementLabel";
     this.requirementLabel.Size = new System.Drawing.Size(104, 16);
     this.requirementLabel.TabIndex = 13;
     this.requirementLabel.Text = "Requirements";
     //
     // cityLabel
     //
     this.cityLabel.AutoSize = true;
     this.cityLabel.BackColor = System.Drawing.Color.Transparent;
     this.cityLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cityLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.cityLabel.Location = new System.Drawing.Point(7, 58);
     this.cityLabel.Name = "cityLabel";
     this.cityLabel.Size = new System.Drawing.Size(34, 16);
     this.cityLabel.TabIndex = 12;
     this.cityLabel.Text = "City";
     this.cityLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.cityLabel.Click += new System.EventHandler(this.cityLabel_Click);
     //
     // levelLabel
     //
     this.levelLabel.BackColor = System.Drawing.Color.Transparent;
     this.levelLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.levelLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.levelLabel.Location = new System.Drawing.Point(111, 58);
     this.levelLabel.Name = "levelLabel";
     this.levelLabel.Size = new System.Drawing.Size(54, 16);
     this.levelLabel.TabIndex = 11;
     this.levelLabel.Text = "Level: ";
     this.levelLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // lootStarBox
     //
     this.lootStarBox.BackColor = System.Drawing.Color.Transparent;
     this.lootStarBox.Location = new System.Drawing.Point(100, 96);
     this.lootStarBox.Name = "lootStarBox";
     this.lootStarBox.Size = new System.Drawing.Size(61, 20);
     this.lootStarBox.TabIndex = 10;
     this.lootStarBox.TabStop = false;
     //
     // experienceStarBox
     //
     this.experienceStarBox.BackColor = System.Drawing.Color.Transparent;
     this.experienceStarBox.Location = new System.Drawing.Point(8, 96);
     this.experienceStarBox.Name = "experienceStarBox";
     this.experienceStarBox.Size = new System.Drawing.Size(61, 20);
     this.experienceStarBox.TabIndex = 9;
     this.experienceStarBox.TabStop = false;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label1.Location = new System.Drawing.Point(111, 79);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(38, 16);
     this.label1.TabIndex = 8;
     this.label1.Text = "Loot";
     //
     // experienceLabel
     //
     this.experienceLabel.AutoSize = true;
     this.experienceLabel.BackColor = System.Drawing.Color.Transparent;
     this.experienceLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.experienceLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.experienceLabel.Location = new System.Drawing.Point(23, 77);
     this.experienceLabel.Name = "experienceLabel";
     this.experienceLabel.Size = new System.Drawing.Size(34, 16);
     this.experienceLabel.TabIndex = 7;
     this.experienceLabel.Text = "Exp";
     //
     // mapDownLevel
     //
     this.mapDownLevel.Location = new System.Drawing.Point(170, 33);
     this.mapDownLevel.Name = "mapDownLevel";
     this.mapDownLevel.Size = new System.Drawing.Size(21, 21);
     this.mapDownLevel.TabIndex = 6;
     this.mapDownLevel.TabStop = false;
     //
     // mapUpLevel
     //
     this.mapUpLevel.Location = new System.Drawing.Point(170, 12);
     this.mapUpLevel.Name = "mapUpLevel";
     this.mapUpLevel.Size = new System.Drawing.Size(21, 21);
     this.mapUpLevel.TabIndex = 5;
     this.mapUpLevel.TabStop = false;
     //
     // creatureLabel
     //
     this.creatureLabel.AutoSize = true;
     this.creatureLabel.BackColor = System.Drawing.Color.Transparent;
     this.creatureLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.creatureLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.creatureLabel.Location = new System.Drawing.Point(39, 211);
     this.creatureLabel.Name = "creatureLabel";
     this.creatureLabel.Size = new System.Drawing.Size(75, 16);
     this.creatureLabel.TabIndex = 4;
     this.creatureLabel.Text = "Creatures";
     //
     // huntingPlaceName
     //
     this.huntingPlaceName.BackColor = System.Drawing.Color.Transparent;
     this.huntingPlaceName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.huntingPlaceName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.huntingPlaceName.Location = new System.Drawing.Point(6, 27);
     this.huntingPlaceName.Name = "huntingPlaceName";
     this.huntingPlaceName.Size = new System.Drawing.Size(158, 34);
     this.huntingPlaceName.TabIndex = 3;
     this.huntingPlaceName.Text = "Brimstone Cave";
     this.huntingPlaceName.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // mapBox
     //
     this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mapBox.Location = new System.Drawing.Point(170, 12);
     this.mapBox.Name = "mapBox";
     this.mapBox.Size = new System.Drawing.Size(195, 190);
     this.mapBox.TabIndex = 0;
     this.mapBox.TabStop = false;
     //
     // guideButton
     //
     this.guideButton.BackColor = System.Drawing.Color.Transparent;
     this.guideButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.guideButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.guideButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.guideButton.Location = new System.Drawing.Point(269, 209);
     this.guideButton.Name = "guideButton";
     this.guideButton.Padding = new System.Windows.Forms.Padding(2);
     this.guideButton.Size = new System.Drawing.Size(96, 21);
     this.guideButton.TabIndex = 31;
     this.guideButton.Text = "Guide";
     this.guideButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.guideButton.Click += new System.EventHandler(this.guideButton_Click);
     //
     // HuntingPlaceForm
     //
     this.ClientSize = new System.Drawing.Size(382, 273);
     this.Controls.Add(this.guideButton);
     this.Controls.Add(this.requirementLabel);
     this.Controls.Add(this.cityLabel);
     this.Controls.Add(this.levelLabel);
     this.Controls.Add(this.lootStarBox);
     this.Controls.Add(this.experienceStarBox);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.experienceLabel);
     this.Controls.Add(this.mapDownLevel);
     this.Controls.Add(this.mapUpLevel);
     this.Controls.Add(this.creatureLabel);
     this.Controls.Add(this.huntingPlaceName);
     this.Controls.Add(this.mapBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "HuntingPlaceForm";
     this.Text = "Hunting Place";
     ((System.ComponentModel.ISupportInitialize)(this.lootStarBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.experienceStarBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #7
0
ファイル: TaskForm.cs プロジェクト: jpodeszwik/Tibialyzer
 private void InitializeComponent()
 {
     this.mapDownLevel   = new System.Windows.Forms.PictureBox();
     this.mapUpLevel     = new System.Windows.Forms.PictureBox();
     this.taskName       = new System.Windows.Forms.Label();
     this.mapBox         = new Tibialyzer.MapPictureBox();
     this.label1         = new System.Windows.Forms.Label();
     this.label2         = new System.Windows.Forms.Label();
     this.bossInfoLabel  = new System.Windows.Forms.Label();
     this.pointsLabel    = new System.Windows.Forms.Label();
     this.countLabel     = new System.Windows.Forms.Label();
     this.bossPictureBox = new System.Windows.Forms.PictureBox();
     this.bossNameLabel  = new System.Windows.Forms.Label();
     this.taskGroupLabel = new System.Windows.Forms.Label();
     this.creatureLabel  = new System.Windows.Forms.Label();
     this.huntLabel      = new System.Windows.Forms.Label();
     this.routeButton    = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bossPictureBox)).BeginInit();
     this.SuspendLayout();
     //
     // mapDownLevel
     //
     this.mapDownLevel.Location = new System.Drawing.Point(168, 33);
     this.mapDownLevel.Name     = "mapDownLevel";
     this.mapDownLevel.Size     = new System.Drawing.Size(21, 21);
     this.mapDownLevel.TabIndex = 11;
     this.mapDownLevel.TabStop  = false;
     this.mapDownLevel.Click   += new System.EventHandler(this.mapDownLevel_Click);
     //
     // mapUpLevel
     //
     this.mapUpLevel.Location = new System.Drawing.Point(168, 12);
     this.mapUpLevel.Name     = "mapUpLevel";
     this.mapUpLevel.Size     = new System.Drawing.Size(21, 21);
     this.mapUpLevel.TabIndex = 10;
     this.mapUpLevel.TabStop  = false;
     this.mapUpLevel.Click   += new System.EventHandler(this.mapUpLevel_Click);
     //
     // taskName
     //
     this.taskName.BackColor = System.Drawing.Color.Transparent;
     this.taskName.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.taskName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.taskName.Location  = new System.Drawing.Point(4, 27);
     this.taskName.Name      = "taskName";
     this.taskName.Size      = new System.Drawing.Size(158, 34);
     this.taskName.TabIndex  = 8;
     this.taskName.Text      = "Crystal Spiders";
     this.taskName.TextAlign = System.Drawing.ContentAlignment.TopCenter;
     //
     // mapBox
     //
     this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mapBox.Location    = new System.Drawing.Point(168, 12);
     this.mapBox.Name        = "mapBox";
     this.mapBox.Size        = new System.Drawing.Size(195, 190);
     this.mapBox.TabIndex    = 7;
     this.mapBox.TabStop     = false;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label1.Location  = new System.Drawing.Point(7, 79);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(47, 15);
     this.label1.TabIndex  = 12;
     this.label1.Text      = "Points";
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label2.Location  = new System.Drawing.Point(7, 96);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(44, 15);
     this.label2.TabIndex  = 13;
     this.label2.Text      = "Count";
     //
     // bossInfoLabel
     //
     this.bossInfoLabel.AutoSize  = true;
     this.bossInfoLabel.BackColor = System.Drawing.Color.Transparent;
     this.bossInfoLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bossInfoLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.bossInfoLabel.Location  = new System.Drawing.Point(8, 114);
     this.bossInfoLabel.Name      = "bossInfoLabel";
     this.bossInfoLabel.Size      = new System.Drawing.Size(38, 15);
     this.bossInfoLabel.TabIndex  = 14;
     this.bossInfoLabel.Text      = "Boss";
     //
     // pointsLabel
     //
     this.pointsLabel.BackColor = System.Drawing.Color.Transparent;
     this.pointsLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.pointsLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.pointsLabel.Location  = new System.Drawing.Point(92, 79);
     this.pointsLabel.Name      = "pointsLabel";
     this.pointsLabel.Size      = new System.Drawing.Size(70, 15);
     this.pointsLabel.TabIndex  = 15;
     this.pointsLabel.Text      = "1";
     this.pointsLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // countLabel
     //
     this.countLabel.BackColor = System.Drawing.Color.Transparent;
     this.countLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.countLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.countLabel.Location  = new System.Drawing.Point(92, 96);
     this.countLabel.Name      = "countLabel";
     this.countLabel.Size      = new System.Drawing.Size(70, 15);
     this.countLabel.TabIndex  = 16;
     this.countLabel.Text      = "1";
     this.countLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // bossPictureBox
     //
     this.bossPictureBox.BackColor = System.Drawing.Color.Transparent;
     this.bossPictureBox.Location  = new System.Drawing.Point(12, 133);
     this.bossPictureBox.Name      = "bossPictureBox";
     this.bossPictureBox.Size      = new System.Drawing.Size(48, 48);
     this.bossPictureBox.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.Zoom;
     this.bossPictureBox.TabIndex  = 18;
     this.bossPictureBox.TabStop   = false;
     this.bossPictureBox.Click    += new System.EventHandler(this.bossPictureBox_Click);
     //
     // bossNameLabel
     //
     this.bossNameLabel.BackColor   = System.Drawing.Color.Transparent;
     this.bossNameLabel.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bossNameLabel.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.bossNameLabel.Location    = new System.Drawing.Point(62, 133);
     this.bossNameLabel.MaximumSize = new System.Drawing.Size(100, 48);
     this.bossNameLabel.Name        = "bossNameLabel";
     this.bossNameLabel.Size        = new System.Drawing.Size(100, 48);
     this.bossNameLabel.TabIndex    = 19;
     this.bossNameLabel.Text        = "Hide";
     this.bossNameLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.bossNameLabel.Click      += new System.EventHandler(this.bossNameLabel_Click);
     //
     // taskGroupLabel
     //
     this.taskGroupLabel.BackColor = System.Drawing.Color.Transparent;
     this.taskGroupLabel.Font      = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.taskGroupLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.taskGroupLabel.Location  = new System.Drawing.Point(10, 53);
     this.taskGroupLabel.Name      = "taskGroupLabel";
     this.taskGroupLabel.Size      = new System.Drawing.Size(150, 15);
     this.taskGroupLabel.TabIndex  = 20;
     this.taskGroupLabel.Text      = "Points";
     this.taskGroupLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.taskGroupLabel.Click    += new System.EventHandler(this.taskGroupLabel_Click);
     //
     // creatureLabel
     //
     this.creatureLabel.BackColor   = System.Drawing.Color.Transparent;
     this.creatureLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.creatureLabel.Font        = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.creatureLabel.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.creatureLabel.Location    = new System.Drawing.Point(13, 205);
     this.creatureLabel.Name        = "creatureLabel";
     this.creatureLabel.Size        = new System.Drawing.Size(96, 25);
     this.creatureLabel.TabIndex    = 21;
     this.creatureLabel.Text        = "Creatures";
     this.creatureLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.creatureLabel.Click      += new System.EventHandler(this.creatureLabel_Click);
     //
     // huntLabel
     //
     this.huntLabel.BackColor   = System.Drawing.Color.Transparent;
     this.huntLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.huntLabel.Font        = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.huntLabel.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.huntLabel.Location    = new System.Drawing.Point(115, 205);
     this.huntLabel.Name        = "huntLabel";
     this.huntLabel.Size        = new System.Drawing.Size(96, 25);
     this.huntLabel.TabIndex    = 22;
     this.huntLabel.Text        = "Hunts";
     this.huntLabel.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.huntLabel.Click      += new System.EventHandler(this.huntLabel_Click);
     //
     // routeButton
     //
     this.routeButton.BackColor   = System.Drawing.Color.Transparent;
     this.routeButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.routeButton.Font        = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.routeButton.ForeColor   = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.routeButton.Location    = new System.Drawing.Point(216, 205);
     this.routeButton.Name        = "routeButton";
     this.routeButton.Padding     = new System.Windows.Forms.Padding(2);
     this.routeButton.Size        = new System.Drawing.Size(96, 25);
     this.routeButton.TabIndex    = 23;
     this.routeButton.Text        = "Route";
     this.routeButton.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     this.routeButton.Click      += new System.EventHandler(this.routeButton_Click);
     //
     // TaskForm
     //
     this.ClientSize = new System.Drawing.Size(378, 233);
     this.Controls.Add(this.routeButton);
     this.Controls.Add(this.huntLabel);
     this.Controls.Add(this.creatureLabel);
     this.Controls.Add(this.taskGroupLabel);
     this.Controls.Add(this.bossNameLabel);
     this.Controls.Add(this.bossPictureBox);
     this.Controls.Add(this.countLabel);
     this.Controls.Add(this.pointsLabel);
     this.Controls.Add(this.bossInfoLabel);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.mapDownLevel);
     this.Controls.Add(this.mapUpLevel);
     this.Controls.Add(this.taskName);
     this.Controls.Add(this.mapBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Name            = "TaskForm";
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bossPictureBox)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #8
0
ファイル: TaskForm.cs プロジェクト: Ikkish/Tibialyzer
        private void InitializeComponent() {
            this.mapDownLevel = new System.Windows.Forms.PictureBox();
            this.mapUpLevel = new System.Windows.Forms.PictureBox();
            this.taskName = new System.Windows.Forms.Label();
            this.mapBox = new Tibialyzer.MapPictureBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.bossInfoLabel = new System.Windows.Forms.Label();
            this.pointsLabel = new System.Windows.Forms.Label();
            this.countLabel = new System.Windows.Forms.Label();
            this.bossPictureBox = new System.Windows.Forms.PictureBox();
            this.bossNameLabel = new System.Windows.Forms.Label();
            this.taskGroupLabel = new System.Windows.Forms.Label();
            this.creatureLabel = new System.Windows.Forms.Label();
            this.huntLabel = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bossPictureBox)).BeginInit();
            this.SuspendLayout();
            // 
            // mapDownLevel
            // 
            this.mapDownLevel.Location = new System.Drawing.Point(168, 33);
            this.mapDownLevel.Name = "mapDownLevel";
            this.mapDownLevel.Size = new System.Drawing.Size(21, 21);
            this.mapDownLevel.TabIndex = 11;
            this.mapDownLevel.TabStop = false;
            this.mapDownLevel.Click += new System.EventHandler(this.mapDownLevel_Click);
            // 
            // mapUpLevel
            // 
            this.mapUpLevel.Location = new System.Drawing.Point(168, 12);
            this.mapUpLevel.Name = "mapUpLevel";
            this.mapUpLevel.Size = new System.Drawing.Size(21, 21);
            this.mapUpLevel.TabIndex = 10;
            this.mapUpLevel.TabStop = false;
            this.mapUpLevel.Click += new System.EventHandler(this.mapUpLevel_Click);
            // 
            // taskName
            // 
            this.taskName.BackColor = System.Drawing.Color.Transparent;
            this.taskName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.taskName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.taskName.Location = new System.Drawing.Point(4, 27);
            this.taskName.Name = "taskName";
            this.taskName.Size = new System.Drawing.Size(158, 34);
            this.taskName.TabIndex = 8;
            this.taskName.Text = "Crystal Spiders";
            this.taskName.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // mapBox
            // 
            this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.mapBox.Location = new System.Drawing.Point(168, 12);
            this.mapBox.Name = "mapBox";
            this.mapBox.Size = new System.Drawing.Size(195, 190);
            this.mapBox.TabIndex = 7;
            this.mapBox.TabStop = false;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.BackColor = System.Drawing.Color.Transparent;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.label1.Location = new System.Drawing.Point(7, 79);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(47, 15);
            this.label1.TabIndex = 12;
            this.label1.Text = "Points";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.BackColor = System.Drawing.Color.Transparent;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.label2.Location = new System.Drawing.Point(7, 96);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(44, 15);
            this.label2.TabIndex = 13;
            this.label2.Text = "Count";
            // 
            // bossInfoLabel
            // 
            this.bossInfoLabel.AutoSize = true;
            this.bossInfoLabel.BackColor = System.Drawing.Color.Transparent;
            this.bossInfoLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.bossInfoLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.bossInfoLabel.Location = new System.Drawing.Point(8, 114);
            this.bossInfoLabel.Name = "bossInfoLabel";
            this.bossInfoLabel.Size = new System.Drawing.Size(38, 15);
            this.bossInfoLabel.TabIndex = 14;
            this.bossInfoLabel.Text = "Boss";
            // 
            // pointsLabel
            // 
            this.pointsLabel.BackColor = System.Drawing.Color.Transparent;
            this.pointsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.pointsLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.pointsLabel.Location = new System.Drawing.Point(92, 79);
            this.pointsLabel.Name = "pointsLabel";
            this.pointsLabel.Size = new System.Drawing.Size(70, 15);
            this.pointsLabel.TabIndex = 15;
            this.pointsLabel.Text = "1";
            this.pointsLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
            // 
            // countLabel
            // 
            this.countLabel.BackColor = System.Drawing.Color.Transparent;
            this.countLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.countLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.countLabel.Location = new System.Drawing.Point(92, 96);
            this.countLabel.Name = "countLabel";
            this.countLabel.Size = new System.Drawing.Size(70, 15);
            this.countLabel.TabIndex = 16;
            this.countLabel.Text = "1";
            this.countLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
            // 
            // bossPictureBox
            // 
            this.bossPictureBox.BackColor = System.Drawing.Color.Transparent;
            this.bossPictureBox.Location = new System.Drawing.Point(12, 133);
            this.bossPictureBox.Name = "bossPictureBox";
            this.bossPictureBox.Size = new System.Drawing.Size(48, 48);
            this.bossPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
            this.bossPictureBox.TabIndex = 18;
            this.bossPictureBox.TabStop = false;
            this.bossPictureBox.Click += new System.EventHandler(this.bossPictureBox_Click);
            // 
            // bossNameLabel
            // 
            this.bossNameLabel.BackColor = System.Drawing.Color.Transparent;
            this.bossNameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.bossNameLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.bossNameLabel.Location = new System.Drawing.Point(62, 133);
            this.bossNameLabel.MaximumSize = new System.Drawing.Size(100, 48);
            this.bossNameLabel.Name = "bossNameLabel";
            this.bossNameLabel.Size = new System.Drawing.Size(100, 48);
            this.bossNameLabel.TabIndex = 19;
            this.bossNameLabel.Text = "Hide";
            this.bossNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.bossNameLabel.Click += new System.EventHandler(this.bossNameLabel_Click);
            // 
            // taskGroupLabel
            // 
            this.taskGroupLabel.BackColor = System.Drawing.Color.Transparent;
            this.taskGroupLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.taskGroupLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.taskGroupLabel.Location = new System.Drawing.Point(10, 53);
            this.taskGroupLabel.Name = "taskGroupLabel";
            this.taskGroupLabel.Size = new System.Drawing.Size(150, 15);
            this.taskGroupLabel.TabIndex = 20;
            this.taskGroupLabel.Text = "Points";
            this.taskGroupLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.taskGroupLabel.Click += new System.EventHandler(this.taskGroupLabel_Click);
            // 
            // creatureLabel
            // 
            this.creatureLabel.BackColor = System.Drawing.Color.Transparent;
            this.creatureLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.creatureLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.creatureLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.creatureLabel.Location = new System.Drawing.Point(13, 205);
            this.creatureLabel.Name = "creatureLabel";
            this.creatureLabel.Size = new System.Drawing.Size(96, 25);
            this.creatureLabel.TabIndex = 21;
            this.creatureLabel.Text = "Creatures";
            this.creatureLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.creatureLabel.Click += new System.EventHandler(this.creatureLabel_Click);
            // 
            // huntLabel
            // 
            this.huntLabel.BackColor = System.Drawing.Color.Transparent;
            this.huntLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.huntLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.huntLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
            this.huntLabel.Location = new System.Drawing.Point(115, 205);
            this.huntLabel.Name = "huntLabel";
            this.huntLabel.Size = new System.Drawing.Size(96, 25);
            this.huntLabel.TabIndex = 22;
            this.huntLabel.Text = "Hunts";
            this.huntLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            this.huntLabel.Click += new System.EventHandler(this.huntLabel_Click);
            // 
            // TaskForm
            // 
            this.ClientSize = new System.Drawing.Size(378, 233);
            this.Controls.Add(this.huntLabel);
            this.Controls.Add(this.creatureLabel);
            this.Controls.Add(this.taskGroupLabel);
            this.Controls.Add(this.bossNameLabel);
            this.Controls.Add(this.bossPictureBox);
            this.Controls.Add(this.countLabel);
            this.Controls.Add(this.pointsLabel);
            this.Controls.Add(this.bossInfoLabel);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.mapDownLevel);
            this.Controls.Add(this.mapUpLevel);
            this.Controls.Add(this.taskName);
            this.Controls.Add(this.mapBox);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name = "TaskForm";
            ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bossPictureBox)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #9
0
ファイル: MainForm.cs プロジェクト: TheSumm/Tibialyzer
        public static MapPictureBox DrawRoute(Coordinate begin, Coordinate end, Size pictureBoxSize, Size minSize, Size maxSize, List<Color> additionalWalkableColors, List<Target> targetList = null)
        {
            if (end.x >= 0 && begin.z != end.z) {
                throw new Exception("Can't draw route with different z-coordinates");
            }
            Rectangle sourceRectangle;
            MapPictureBox pictureBox = new MapPictureBox();
            if (pictureBoxSize.Width != 0) {
                pictureBox.Size = pictureBoxSize;
            }
            pictureBox.SizeMode = PictureBoxSizeMode.Zoom;

            if (targetList != null) {
                foreach (Target target in targetList) {
                    pictureBox.targets.Add(target);
                }
                if (end.x < 0) {
                    if (pictureBoxSize.Width == 0) {
                        pictureBoxSize = new Size(Math.Min(Math.Max(end.z, minSize.Width), maxSize.Width),
                            Math.Min(Math.Max(end.z, minSize.Height), maxSize.Height));
                        pictureBox.Size = pictureBoxSize;
                    }
                    Map map = getMap(begin.z);
                    pictureBox.map = map;
                    pictureBox.sourceWidth = end.z;
                    pictureBox.mapCoordinate = new Coordinate(begin.x, begin.y, begin.z);
                    pictureBox.zCoordinate = begin.z;
                    pictureBox.UpdateMap();
                    return pictureBox;
                }

            }

            // First find the route at a high level
            Node beginNode = Pathfinder.GetNode(begin.x, begin.y, begin.z);
            Node endNode = Pathfinder.GetNode(end.x, end.y, end.z);

            List<Rectangle> collisionBounds = null;
            DijkstraNode highresult = Dijkstra.FindRoute(beginNode, endNode);
            if (highresult != null) {
                collisionBounds = new List<Rectangle>();
                while (highresult != null) {
                    highresult.rect.Inflate(5, 5);
                    collisionBounds.Add(highresult.rect);
                    highresult = highresult.previous;
                }
                if (collisionBounds.Count == 0) collisionBounds = null;
            }

            Map m = getMap(begin.z);
            DijkstraPoint result = Dijkstra.FindRoute(m.image, new Point(begin.x, begin.y), new Point(end.x, end.y), collisionBounds, additionalWalkableColors);
            if (result == null) {
                throw new Exception("Couldn't find route.");
            }

            // create a rectangle from the result
            double minX = int.MaxValue, minY = int.MaxValue, maxX = int.MinValue, maxY = int.MinValue;
            DijkstraPoint node = result;
            while (node != null) {
                if (node.point.X < minX) minX = node.point.X;
                if (node.point.Y < minY) minY = node.point.Y;
                if (node.point.X > maxX) maxX = node.point.X;
                if (node.point.Y > maxY) maxY = node.point.Y;
                node = node.previous;
            }

            minX -= 10;
            minY -= 10;
            maxX += 10;
            maxY += 10;

            int size = (int)Math.Max(maxX - minX, maxY - minY);
            sourceRectangle = new Rectangle((int)minX, (int)minY, size, size);
            if (pictureBoxSize.Width == 0) {
                pictureBoxSize = new Size(Math.Min(Math.Max(sourceRectangle.Width, minSize.Width), maxSize.Width),
                    Math.Min(Math.Max(sourceRectangle.Height, minSize.Height), maxSize.Height));
                pictureBox.Size = pictureBoxSize;
            }
            TibiaPath path = new TibiaPath();
            path.begin = new Coordinate(begin);
            path.end = new Coordinate(end);
            path.path = result;
            pictureBox.paths.Add(path);

            pictureBox.map = m;
            pictureBox.sourceWidth = size;
            pictureBox.mapCoordinate = new Coordinate(sourceRectangle.X + sourceRectangle.Width / 2, sourceRectangle.Y + sourceRectangle.Height / 2, begin.z);
            pictureBox.zCoordinate = begin.z;
            pictureBox.UpdateMap();

            return pictureBox;
        }
コード例 #10
0
        private int drawDirections(Coordinate begin, Coordinate end, string settings, string description, int start_x, int y, bool variableSize, int imageCount, bool noText, out int width)
        {
            int  mapSize = this.Size.Width / 2;
            Size minSize = new Size(mapSize, mapSize);

            List <Color>  additionalWalkableColors = new List <Color>();
            List <Target> targetList = new List <Target>();

            // parse settings
            if (settings != null)
            {
                string[] splits = settings.ToLower().Split('@');
                foreach (string split in splits)
                {
                    string[] setting = split.Split('=');
                    switch (setting[0])
                    {
                    case "walkablecolor":
                        string[] rgb = setting[1].Split(',');
                        additionalWalkableColors.Add(Color.FromArgb(int.Parse(rgb[0]), int.Parse(rgb[1]), int.Parse(rgb[2])));
                        break;

                    case "marking":
                        Target   target     = new Target();
                        string[] coordinate = setting[1].Split(',');
                        target.size       = 12;
                        target.image      = StyleManager.GetImage("cross.png");
                        target.coordinate = new Coordinate(int.Parse(coordinate[0]), int.Parse(coordinate[1]), int.Parse(coordinate[2]));
                        targetList.Add(target);
                        break;

                    case "markicon":
                        Image image = null;
                        switch (setting[1].ToLower())
                        {
                        case "item":
                            image = StorageManager.getItem(setting[2]).image;
                            break;

                        case "npc":
                            image = StorageManager.getNPC(setting[2]).image;
                            break;

                        case "cr":
                            image = StorageManager.getCreature(setting[2]).image;
                            break;

                        case "spell":
                            image = StorageManager.getSpell(setting[2]).image;
                            break;

                        case "object":
                            image = StorageManager.getWorldObject(setting[2]).image;
                            break;

                        default:
                            throw new Exception("Unknown image type " + setting[1] + ".");
                        }
                        targetList[targetList.Count - 1].image = image;
                        break;

                    case "marksize":
                        targetList[targetList.Count - 1].size = int.Parse(setting[1]);
                        break;
                    }
                }
            }
            if (targetList.Count == 0)
            {
                targetList = null;
            }

            MapPictureBox map = UIManager.DrawRoute(begin, end, variableSize ? new Size(0, 0) : new Size(mapSize, mapSize), minSize, new Size(mapSize, mapSize), additionalWalkableColors, targetList);

            width = map.Width + 5;
            if (!noText)
            {
                map.Location = new Point(this.Size.Width - (map.Width + 5), y);
            }
            else
            {
                map.Location = new Point(start_x, y);
            }
            map.MapUpdated += refreshTimer;
            this.Controls.Add(map);
            addedControls.Add(map);
            if (noText)
            {
                return(y + map.Height + 5);
            }
            if (description.Contains("@"))
            {
                int      x = 5;
                int      minheightoffset = 20;
                string[] questStrings    = description.Split('@');
                int      minY            = y + map.Size.Height + 10;
                foreach (string instruction in questStrings)
                {
                    if (instruction == "")
                    {
                        y += 10;
                        continue;
                    }
                    if (instruction.Contains("="))
                    {
                        string[] splits = instruction.Split('=');
                        if (splits[0].ToLower() == "cr" || splits[0].ToLower() == "npc" || splits[0].ToLower() == "item")
                        {
                            bool   blockWidth  = true;
                            string imageString = splits[1];
                            if (splits[1].Contains(';'))
                            {
                                string[] options = splits[1].Split(';');
                                imageString = options[0];
                                for (int i = 1; i < options.Length; i++)
                                {
                                    if (options[i].ToLower() == "blockheight")
                                    {
                                        blockWidth = false;
                                    }
                                }
                            }
                            string command = "";
                            Image  image   = null;
                            if (splits[0].ToLower() == "cr")
                            {
                                Creature cr = StorageManager.getCreature(imageString);
                                image   = cr.GetImage();
                                command = "creature" + Constants.CommandSymbol + cr.GetName().ToLower();
                            }
                            else if (splits[0].ToLower() == "npc")
                            {
                                NPC npc = StorageManager.getNPC(imageString);
                                image   = npc.GetImage();
                                command = "npc" + Constants.CommandSymbol + npc.GetName().ToLower();
                            }
                            else if (splits[0].ToLower() == "item")
                            {
                                Item item = StorageManager.getItem(imageString);
                                image   = item.GetImage();
                                command = "item" + Constants.CommandSymbol + item.GetName().ToLower();
                            }
                            PictureBox pictureBox = new PictureBox();
                            pictureBox.Location  = new Point(x, y);
                            pictureBox.Image     = image;
                            pictureBox.SizeMode  = PictureBoxSizeMode.Zoom;
                            pictureBox.Size      = new Size(image.Width, image.Height);
                            pictureBox.BackColor = Color.Transparent;
                            pictureBox.Name      = command;
                            pictureBox.Click    += QuestTitle_Click;
                            if (blockWidth)
                            {
                                x += pictureBox.Size.Width;
                                minheightoffset = pictureBox.Size.Height + 5;
                            }
                            else
                            {
                                y += pictureBox.Size.Height;
                            }

                            addedControls.Add(pictureBox);
                            this.Controls.Add(pictureBox);
                            continue;
                        }
                    }
                    Label label = new Label();
                    label.Location    = new Point(x, y);
                    label.ForeColor   = StyleManager.NotificationTextColor;
                    label.BackColor   = Color.Transparent;
                    label.Font        = requirementFont;
                    label.AutoSize    = true;
                    label.MaximumSize = new Size(this.Size.Width - (map.Size.Width) - x, 0);
                    string labelText = CreateLinks(label, instruction);
                    label.Text = labelText == "" ? "" : "- " + labelText;

                    int labelHeight = 0;
                    using (Graphics gr = Graphics.FromHwnd(label.Handle)) {
                        labelHeight = (int)(gr.MeasureString(label.Text, label.Font, this.Size.Width - (map.Size.Width + 10) - x, StringFormat.GenericTypographic).Height * 1.2);
                    }
                    addedControls.Add(label);
                    this.Controls.Add(label);
                    y += Math.Max(labelHeight, minheightoffset);
                    minheightoffset = 0;
                    x = 5;
                }
                if (y < minY)
                {
                    y = minY;
                }
            }
            else
            {
                Label label = new Label();
                label.Location  = new Point(5, y);
                label.ForeColor = StyleManager.NotificationTextColor;
                label.BackColor = Color.Transparent;
                label.Font      = requirementFont;
                string labelText = CreateLinks(label, description);
                label.Text = labelText == "" ? "" : "- " + labelText;
                Size size;
                using (Graphics gr = Graphics.FromHwnd(label.Handle)) {
                    size       = gr.MeasureString(label.Text, label.Font, this.Size.Width - (map.Size.Width + 10)).ToSize();
                    label.Size = new Size(this.Size.Width - (map.Size.Width + 5), Math.Max((int)(size.Height * 1.3), map.Size.Height));
                }
                addedControls.Add(label);
                this.Controls.Add(label);
                y += Math.Max(label.Size.Height, map.Size.Height) + 10;
            }
            return(y);
        }
コード例 #11
0
ファイル: MapForm.cs プロジェクト: Mytherin/Tibialyzer
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MapForm));
     this.mapBox = new Tibialyzer.MapPictureBox();
     this.mapUpLevel = new System.Windows.Forms.PictureBox();
     this.mapDownLevel = new System.Windows.Forms.PictureBox();
     this.mapperBox = new Tibialyzer.EnterTextBox();
     this.usedItemsLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.coordinateBox = new Tibialyzer.EnterTextBox();
     this.routeButton = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
     this.SuspendLayout();
     //
     // mapBox
     //
     this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mapBox.Location = new System.Drawing.Point(121, 12);
     this.mapBox.Name = "mapBox";
     this.mapBox.Size = new System.Drawing.Size(195, 190);
     this.mapBox.TabIndex = 0;
     this.mapBox.TabStop = false;
     //
     // mapUpLevel
     //
     this.mapUpLevel.Location = new System.Drawing.Point(121, 13);
     this.mapUpLevel.Name = "mapUpLevel";
     this.mapUpLevel.Size = new System.Drawing.Size(21, 21);
     this.mapUpLevel.TabIndex = 3;
     this.mapUpLevel.TabStop = false;
     //
     // mapDownLevel
     //
     this.mapDownLevel.Location = new System.Drawing.Point(121, 34);
     this.mapDownLevel.Name = "mapDownLevel";
     this.mapDownLevel.Size = new System.Drawing.Size(21, 21);
     this.mapDownLevel.TabIndex = 4;
     this.mapDownLevel.TabStop = false;
     //
     // mapperBox
     //
     this.mapperBox.Location = new System.Drawing.Point(6, 47);
     this.mapperBox.Name = "mapperBox";
     this.mapperBox.Size = new System.Drawing.Size(108, 20);
     this.mapperBox.TabIndex = 5;
     this.mapperBox.Text = "127.128,124.128,7";
     this.mapperBox.TextChanged += new System.EventHandler(this.mapperBox_TextChanged);
     //
     // usedItemsLabel
     //
     this.usedItemsLabel.AutoSize = true;
     this.usedItemsLabel.BackColor = System.Drawing.Color.Transparent;
     this.usedItemsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.usedItemsLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.usedItemsLabel.Location = new System.Drawing.Point(7, 29);
     this.usedItemsLabel.Name = "usedItemsLabel";
     this.usedItemsLabel.Size = new System.Drawing.Size(107, 16);
     this.usedItemsLabel.TabIndex = 42;
     this.usedItemsLabel.Text = "Mapper Coord";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label1.Location = new System.Drawing.Point(19, 75);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(84, 16);
     this.label1.TabIndex = 44;
     this.label1.Text = "Coordinate";
     //
     // coordinateBox
     //
     this.coordinateBox.Location = new System.Drawing.Point(6, 93);
     this.coordinateBox.Name = "coordinateBox";
     this.coordinateBox.Size = new System.Drawing.Size(108, 20);
     this.coordinateBox.TabIndex = 43;
     this.coordinateBox.Text = "1024,1024,7";
     this.coordinateBox.TextChanged += new System.EventHandler(this.coordinateBox_TextChanged);
     //
     // routeButton
     //
     this.routeButton.BackColor = System.Drawing.Color.Transparent;
     this.routeButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.routeButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.routeButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.routeButton.Location = new System.Drawing.Point(6, 181);
     this.routeButton.Name = "routeButton";
     this.routeButton.Padding = new System.Windows.Forms.Padding(2);
     this.routeButton.Size = new System.Drawing.Size(103, 21);
     this.routeButton.TabIndex = 45;
     this.routeButton.Text = "Route";
     this.routeButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.routeButton.Click += new System.EventHandler(this.routeButton_Click);
     //
     // MapForm
     //
     this.ClientSize = new System.Drawing.Size(328, 221);
     this.Controls.Add(this.routeButton);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.coordinateBox);
     this.Controls.Add(this.usedItemsLabel);
     this.Controls.Add(this.mapperBox);
     this.Controls.Add(this.mapDownLevel);
     this.Controls.Add(this.mapUpLevel);
     this.Controls.Add(this.mapBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "MapForm";
     this.Text = "NPC Form";
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #12
0
ファイル: UIManager.cs プロジェクト: villor/Tibialyzer
        public static MapPictureBox DrawRoute(Coordinate begin, Coordinate end, Size pictureBoxSize, Size minSize, Size maxSize, List <Color> additionalWalkableColors, List <Target> targetList = null)
        {
            if (end.x >= 0 && begin.z != end.z)
            {
                throw new Exception("Can't draw route with different z-coordinates");
            }
            Rectangle     sourceRectangle;
            MapPictureBox pictureBox = new MapPictureBox();

            if (pictureBoxSize.Width != 0)
            {
                pictureBox.Size = pictureBoxSize;
            }
            pictureBox.SizeMode = PictureBoxSizeMode.Zoom;

            if (targetList != null)
            {
                foreach (Target target in targetList)
                {
                    pictureBox.targets.Add(target);
                }
                if (end.x < 0)
                {
                    if (pictureBoxSize.Width == 0)
                    {
                        pictureBoxSize = new Size(Math.Min(Math.Max(end.z, minSize.Width), maxSize.Width),
                                                  Math.Min(Math.Max(end.z, minSize.Height), maxSize.Height));
                        pictureBox.Size = pictureBoxSize;
                    }
                    Map map = StorageManager.getMap(begin.z);
                    pictureBox.map           = map;
                    pictureBox.sourceWidth   = end.z;
                    pictureBox.mapCoordinate = new Coordinate(begin.x, begin.y, begin.z);
                    pictureBox.zCoordinate   = begin.z;
                    pictureBox.UpdateMap();
                    return(pictureBox);
                }
            }

            // First find the route at a high level
            Node beginNode = Pathfinder.GetNode(begin.x, begin.y, begin.z);
            Node endNode   = Pathfinder.GetNode(end.x, end.y, end.z);

            List <Rectangle> collisionBounds = null;
            DijkstraNode     highresult      = Dijkstra.FindRoute(beginNode, endNode);

            if (highresult != null)
            {
                collisionBounds = new List <Rectangle>();
                while (highresult != null)
                {
                    highresult.rect.Inflate(5, 5);
                    collisionBounds.Add(highresult.rect);
                    highresult = highresult.previous;
                }
                if (collisionBounds.Count == 0)
                {
                    collisionBounds = null;
                }
            }

            Map           m      = StorageManager.getMap(begin.z);
            DijkstraPoint result = Dijkstra.FindRoute(m.image, new Point(begin.x, begin.y), new Point(end.x, end.y), collisionBounds, additionalWalkableColors);

            if (result == null)
            {
                throw new Exception("Couldn't find route.");
            }

            // create a rectangle from the result
            double        minX = int.MaxValue, minY = int.MaxValue, maxX = int.MinValue, maxY = int.MinValue;
            DijkstraPoint node = result;

            while (node != null)
            {
                if (node.point.X < minX)
                {
                    minX = node.point.X;
                }
                if (node.point.Y < minY)
                {
                    minY = node.point.Y;
                }
                if (node.point.X > maxX)
                {
                    maxX = node.point.X;
                }
                if (node.point.Y > maxY)
                {
                    maxY = node.point.Y;
                }
                node = node.previous;
            }

            minX -= 10;
            minY -= 10;
            maxX += 10;
            maxY += 10;

            int size = (int)Math.Max(maxX - minX, maxY - minY);

            sourceRectangle = new Rectangle((int)minX, (int)minY, size, size);
            if (pictureBoxSize.Width == 0)
            {
                pictureBoxSize = new Size(Math.Min(Math.Max(sourceRectangle.Width, minSize.Width), maxSize.Width),
                                          Math.Min(Math.Max(sourceRectangle.Height, minSize.Height), maxSize.Height));
                pictureBox.Size = pictureBoxSize;
            }
            TibiaPath path = new TibiaPath();

            path.begin = new Coordinate(begin);
            path.end   = new Coordinate(end);
            path.path  = result;
            pictureBox.paths.Add(path);

            pictureBox.map           = m;
            pictureBox.sourceWidth   = size;
            pictureBox.mapCoordinate = new Coordinate(sourceRectangle.X + sourceRectangle.Width / 2, sourceRectangle.Y + sourceRectangle.Height / 2, begin.z);
            pictureBox.zCoordinate   = begin.z;
            pictureBox.UpdateMap();

            return(pictureBox);
        }
コード例 #13
0
ファイル: HouseForm.cs プロジェクト: Mytherin/Tibialyzer
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HouseForm));
     this.mapBox = new Tibialyzer.MapPictureBox();
     this.houseName = new System.Windows.Forms.Label();
     this.mapUpLevel = new System.Windows.Forms.PictureBox();
     this.mapDownLevel = new System.Windows.Forms.PictureBox();
     this.routeButton = new System.Windows.Forms.Label();
     this.expHourLabel = new System.Windows.Forms.Label();
     this.cityLabel = new System.Windows.Forms.Label();
     this.sizeLabel = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.bedLabel = new System.Windows.Forms.Label();
     this.tibiaButton = new System.Windows.Forms.Label();
     this.statusHeader = new System.Windows.Forms.Label();
     this.statusLabel = new System.Windows.Forms.Label();
     this.timeLeftHeader = new System.Windows.Forms.Label();
     this.timeLeftLabel = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).BeginInit();
     this.SuspendLayout();
     //
     // mapBox
     //
     this.mapBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.mapBox.Location = new System.Drawing.Point(121, 12);
     this.mapBox.Name = "mapBox";
     this.mapBox.Size = new System.Drawing.Size(195, 190);
     this.mapBox.TabIndex = 0;
     this.mapBox.TabStop = false;
     //
     // houseName
     //
     this.houseName.BackColor = System.Drawing.Color.Transparent;
     this.houseName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.houseName.ForeColor = System.Drawing.SystemColors.ControlLight;
     this.houseName.Location = new System.Drawing.Point(11, 27);
     this.houseName.MaximumSize = new System.Drawing.Size(100, 28);
     this.houseName.Name = "houseName";
     this.houseName.Size = new System.Drawing.Size(100, 28);
     this.houseName.TabIndex = 2;
     this.houseName.Text = "Rashid";
     this.houseName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // mapUpLevel
     //
     this.mapUpLevel.Location = new System.Drawing.Point(121, 13);
     this.mapUpLevel.Name = "mapUpLevel";
     this.mapUpLevel.Size = new System.Drawing.Size(21, 21);
     this.mapUpLevel.TabIndex = 3;
     this.mapUpLevel.TabStop = false;
     //
     // mapDownLevel
     //
     this.mapDownLevel.Location = new System.Drawing.Point(121, 34);
     this.mapDownLevel.Name = "mapDownLevel";
     this.mapDownLevel.Size = new System.Drawing.Size(21, 21);
     this.mapDownLevel.TabIndex = 4;
     this.mapDownLevel.TabStop = false;
     //
     // routeButton
     //
     this.routeButton.BackColor = System.Drawing.Color.Transparent;
     this.routeButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.routeButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.routeButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.routeButton.Location = new System.Drawing.Point(12, 180);
     this.routeButton.Name = "routeButton";
     this.routeButton.Padding = new System.Windows.Forms.Padding(2);
     this.routeButton.Size = new System.Drawing.Size(103, 21);
     this.routeButton.TabIndex = 16;
     this.routeButton.Text = "Route";
     this.routeButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.routeButton.Click += new System.EventHandler(this.routeButton_Click);
     //
     // expHourLabel
     //
     this.expHourLabel.AutoSize = true;
     this.expHourLabel.BackColor = System.Drawing.Color.Transparent;
     this.expHourLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.expHourLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.expHourLabel.Location = new System.Drawing.Point(6, 79);
     this.expHourLabel.Name = "expHourLabel";
     this.expHourLabel.Size = new System.Drawing.Size(28, 13);
     this.expHourLabel.TabIndex = 45;
     this.expHourLabel.Text = "City";
     //
     // cityLabel
     //
     this.cityLabel.BackColor = System.Drawing.Color.Transparent;
     this.cityLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.cityLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.cityLabel.Location = new System.Drawing.Point(40, 79);
     this.cityLabel.Name = "cityLabel";
     this.cityLabel.Size = new System.Drawing.Size(80, 13);
     this.cityLabel.TabIndex = 46;
     this.cityLabel.Text = "Edron";
     this.cityLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // sizeLabel
     //
     this.sizeLabel.BackColor = System.Drawing.Color.Transparent;
     this.sizeLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.sizeLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.sizeLabel.Location = new System.Drawing.Point(40, 95);
     this.sizeLabel.Name = "sizeLabel";
     this.sizeLabel.Size = new System.Drawing.Size(80, 13);
     this.sizeLabel.TabIndex = 48;
     this.sizeLabel.Text = "50 sqm";
     this.sizeLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label1.Location = new System.Drawing.Point(6, 95);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(31, 13);
     this.label1.TabIndex = 47;
     this.label1.Text = "Size";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.label2.Location = new System.Drawing.Point(6, 110);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(35, 13);
     this.label2.TabIndex = 49;
     this.label2.Text = "Beds";
     //
     // bedLabel
     //
     this.bedLabel.BackColor = System.Drawing.Color.Transparent;
     this.bedLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.bedLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.bedLabel.Location = new System.Drawing.Point(40, 110);
     this.bedLabel.Name = "bedLabel";
     this.bedLabel.Size = new System.Drawing.Size(80, 13);
     this.bedLabel.TabIndex = 50;
     this.bedLabel.Text = "3";
     this.bedLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // tibiaButton
     //
     this.tibiaButton.BackColor = System.Drawing.Color.Transparent;
     this.tibiaButton.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.tibiaButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.tibiaButton.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.tibiaButton.Location = new System.Drawing.Point(6, 57);
     this.tibiaButton.Name = "tibiaButton";
     this.tibiaButton.Size = new System.Drawing.Size(110, 21);
     this.tibiaButton.TabIndex = 51;
     this.tibiaButton.Text = "View On Tibia.com";
     this.tibiaButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.tibiaButton.Click += new System.EventHandler(this.tibiaButton_Click);
     //
     // statusHeader
     //
     this.statusHeader.AutoSize = true;
     this.statusHeader.BackColor = System.Drawing.Color.Transparent;
     this.statusHeader.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.statusHeader.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.statusHeader.Location = new System.Drawing.Point(6, 125);
     this.statusHeader.Name = "statusHeader";
     this.statusHeader.Size = new System.Drawing.Size(43, 13);
     this.statusHeader.TabIndex = 52;
     this.statusHeader.Text = "Status";
     //
     // statusLabel
     //
     this.statusLabel.BackColor = System.Drawing.Color.Transparent;
     this.statusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.statusLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.statusLabel.Location = new System.Drawing.Point(40, 125);
     this.statusLabel.Name = "statusLabel";
     this.statusLabel.Size = new System.Drawing.Size(80, 13);
     this.statusLabel.TabIndex = 53;
     this.statusLabel.Text = "Rented";
     this.statusLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // timeLeftHeader
     //
     this.timeLeftHeader.AutoSize = true;
     this.timeLeftHeader.BackColor = System.Drawing.Color.Transparent;
     this.timeLeftHeader.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.timeLeftHeader.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.timeLeftHeader.Location = new System.Drawing.Point(6, 140);
     this.timeLeftHeader.Name = "timeLeftHeader";
     this.timeLeftHeader.Size = new System.Drawing.Size(60, 13);
     this.timeLeftHeader.TabIndex = 54;
     this.timeLeftHeader.Text = "Time Left";
     //
     // timeLeftLabel
     //
     this.timeLeftLabel.BackColor = System.Drawing.Color.Transparent;
     this.timeLeftLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.timeLeftLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(191)))), ((int)(((byte)(191)))), ((int)(((byte)(191)))));
     this.timeLeftLabel.Location = new System.Drawing.Point(40, 140);
     this.timeLeftLabel.Name = "timeLeftLabel";
     this.timeLeftLabel.Size = new System.Drawing.Size(80, 13);
     this.timeLeftLabel.TabIndex = 55;
     this.timeLeftLabel.Text = "0h";
     this.timeLeftLabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // HouseForm
     //
     this.ClientSize = new System.Drawing.Size(328, 209);
     this.Controls.Add(this.timeLeftHeader);
     this.Controls.Add(this.timeLeftLabel);
     this.Controls.Add(this.statusHeader);
     this.Controls.Add(this.statusLabel);
     this.Controls.Add(this.tibiaButton);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.bedLabel);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.sizeLabel);
     this.Controls.Add(this.expHourLabel);
     this.Controls.Add(this.cityLabel);
     this.Controls.Add(this.routeButton);
     this.Controls.Add(this.mapDownLevel);
     this.Controls.Add(this.mapUpLevel);
     this.Controls.Add(this.houseName);
     this.Controls.Add(this.mapBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "HouseForm";
     this.Text = "NPC Form";
     ((System.ComponentModel.ISupportInitialize)(this.mapBox)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapUpLevel)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapDownLevel)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }