This repository was archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathPatherForm.cs
1955 lines (1887 loc) · 72 KB
/
PatherForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
This file is part of PPather.
PPather is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PPather is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with PPather. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Globalization;
using System.Collections.Generic;
using System.Threading;
using System.Reflection;
using System.Text;
using Glider.Common.Objects;
using System.Windows.Forms;
using System.Drawing;
using Pather.Parser;
using Pather.Tasks;
using Pather.Activities;
namespace Pather
{
public class PatherForm : Form
{
#region Declarations
private PPather pather;
private NotifyIcon nicon;
private Button btn_pause;
private Button btn_go;
private Button btn_getloc;
private Button btn_stop;
private Button btn_load;
private Button btn_tray;
private TabPage tabPage7;
public ComboBox dumpCombo;
public CheckBox dumpUiVisibleCB;
public TreeView devTree;
public TextBox dumpUiFilter;
private Button dumpUiBtn;
private TabPage tabPage3;
private TabPage tabPage2;
private TreeView treeView1;
private ListBox lb_params;
private TabPage tabPage1;
private Label lblPatherVersion;
private GroupBox groupBox2;
private Label lbl_deaths;
private Label label16;
private Label lbl_ttl;
private Label label18;
private Label lbl_harvest;
private Label label14;
private Label lbl_XPh;
private Label label11;
private Label lbl_loots;
private Label label8;
private Label lbl_kills;
private Label label6;
private GroupBox groupBox1;
private Label label7;
private Label lbl_loc;
private Label label4;
private Label lbl_subzone;
private Label label17;
private Label lbl_zone;
private Label label13;
private Label label15;
private Label label2;
private Label lbl_activity;
private Label label5;
private Label lbl_state;
private GroupBox grpBox;
private Label label1;
private Label lbl_name;
private Label lbl_reaction;
private Label lbl_level;
private Label lbl_faction;
private Label label12;
private Label label3;
private Label label9;
private TabControl tabControl1;
private Label label24;
private TextBox textBox1;
private TextBox textBox2;
private TextBox textBox3;
private TextBox textBox4;
private Label label25;
private CheckBox checkBox1;
private Label label26;
private Label label27;
private Label label28;
private ComboBox comboBox1;
private Button button1;
private Label label29;
private Label label31;
private Label label32;
private TextBox textBox5;
private TextBox textBox6;
private TextBox textBox7;
private TextBox textBox8;
private Label label33;
private CheckBox checkBox2;
private Label label34;
private Label label35;
private Label label36;
private ComboBox comboBox2;
private Button button2;
private Label label37;
private Label label38;
private Button btn_save_settings;
private Panel settings_scroll_pannel;
public TextBox txt_setting_stoplevel;
public TextBox txt_setting_maxres;
public TextBox txt_setting_mountrange;
public TextBox txt_setting_formtitle;
private Label label30;
public CheckBox chk_setting_maxres;
private Label label23;
private Label label22;
private Label label21;
public ComboBox cb_setting_usemount;
private Button btn_random_formtitle;
private Label label20;
private Label label19;
private Label label40;
private Button btn_default;
private PictureBox pictureBox1;
private Label label10;
private TextBox textBox9;
TreeNode rootNode = null;
#endregion
public PatherForm(PPather pather)
{
this.pather = pather;
InitializeComponent();
//Application.EnableVisualStyles(); // Changes the look of Glider too
SetTaskFileName();
GetSettings();
lblPatherVersion.Text += PPather.VERSION;
dumpCombo.SelectedIndex = 0;
}
private void GetSettings()
{
this.Text = PPather.PatherSettings.FormTitle;
nicon.Text = PPather.PatherSettings.FormTitle;
txt_setting_formtitle.Text = PPather.PatherSettings.FormTitle;
cb_setting_usemount.SelectedItem = PPather.PatherSettings.UseMount;
txt_setting_mountrange.Text = PPather.PatherSettings.MountRange.ToString();
txt_setting_maxres.Text = PPather.PatherSettings.MaxResurrectionAmount.ToString();
chk_setting_maxres.Checked = PPather.PatherSettings.MaxResurrection;
txt_setting_stoplevel.Text = PPather.PatherSettings.StopAtLevel.ToString();
}
private TreeNode CreateNodeFromTask(Task task)
{
Task[] children = task.GetChildren();
TreeNode[] childNodes = null;
if (children != null)
{
childNodes = new TreeNode[children.Length];
for (int i = 0; i < children.Length; i++)
{
childNodes[i] = CreateNodeFromTask(children[i]);
}
}
TreeNode n;
if (childNodes != null)
n = new TreeNode(task.ToString(), childNodes);
else
n = new TreeNode(task.ToString());
n.Tag = task;
return n;
}
#region Colors
private Color white = System.Drawing.Color.FromArgb(255, 255, 255);
private Color yellow = System.Drawing.Color.FromArgb(255, 255, 128);
private Color red = System.Drawing.Color.FromArgb(255, 128, 128);
private Color green = System.Drawing.Color.FromArgb(128, 255, 128);
private Color blue = System.Drawing.Color.FromArgb(155, 165, 255);
#endregion
private void UpdateTreeNodeStatus(TreeNode n)
{
Task t = (Task)n.Tag;
if (t != null)
{
Task.State_e state = t.State;
if (state == Task.State_e.Idle)
n.BackColor = white;
else if (state == Task.State_e.Done)
n.BackColor = blue;
else if (state == Task.State_e.Active)
n.BackColor = green;
else if (state == Task.State_e.Want)
n.BackColor = yellow;
}
TreeNode child = n.FirstNode;
while (child != null)
{
UpdateTreeNodeStatus(child);
child = child.NextNode;
}
}
public void CreateTreeFromTasks(Task rootTask)
{
rootNode = CreateNodeFromTask(rootTask);
}
#region Set*
public void SetStatus(int kills, int KPh, int loots, int XPh, int harvests, int ttl, int deaths)
{
lbl_kills.Text = "" + kills + ", " + KPh + "K/h";
lbl_loots.Text = "" + loots;
lbl_XPh.Text = "" + XPh;
lbl_harvest.Text = "" + harvests;
int mins = ttl % 60;
int hs = (ttl - mins) / 60;
lbl_ttl.Text = "" + hs + "h " + mins + "m";
lbl_deaths.Text = "" + deaths;
}
public void SetTarget(GUnit target)
{
if (target == null)
{
lbl_name.Text = "";
lbl_reaction.Text = "";
lbl_level.Text = "";
lbl_faction.Text = "";
}
else
{
lbl_name.Text = target.Name;
lbl_reaction.Text = target.Reaction.ToString();
string lvl = target.Level.ToString();
if (target.IsMonster)
{
GMonster m = (GMonster)target;
if (m.IsElite)
lvl += "elite";
}
lbl_level.Text = lvl;
lbl_faction.Text = target.FactionID.ToString();
}
}
public void SetActivity(Activity activity)
{
if (activity == null)
{
lbl_activity.Text = "";
}
else
{
lbl_activity.Text = activity.ToString();
}
}
public void SetLocation(string location)
{
if (location != null)
lbl_loc.Text = location;
}
public void SetZone(string zone, string subzone)
{
if (subzone != null)
lbl_subzone.Text = subzone;
if (zone != null)
lbl_zone.Text = zone;
}
public void SetTaskFileName()
{
string file;
string[] parts = PPather.PatherSettings.TaskFile.Split('\\');
file = parts[parts.Length - 1];
label15.Text = file;
}
#endregion
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
TreeNode n = e.Node;
lb_params.Items.Clear();
if (n == null)
return;
Task t = (Task)n.Tag;
if (t == null)
{
}
else
{
if (!t.IsParserTask())
{
}
else
{
//PPather.WriteLine("marked a task " + t);
ParserTask pt = (ParserTask)t;
List<string> parms = new List<string>();
pt.GetParams(parms);
NodeTask tn = pt.nodetask;
foreach (string par in parms)
{
Value v = tn.GetValueOfId(par);
string val = "undefined";
if (v != null)
val = v.GetStringValue();
lb_params.Items.Add(par + " = " + val);
}
}
}
}
#region Buttons
private void btn_go_Click(object sender, EventArgs e)
{
if (GContext.Main.IsAttached && !GContext.Main.IsGliding)
GContext.Main.StartGlide();
pather.WantedState = PPather.RunState_e.Running;
}
private void btn_pause_Click(object sender, EventArgs e)
{
pather.WantedState = PPather.RunState_e.Paused;
GContext.Main.DisableCursorHook();
}
private void btn_stop_Click(object sender, EventArgs e)
{
pather.WantedState = PPather.RunState_e.Stopped;
GContext.Main.DisableCursorHook();
}
private void btn_getloc_Click(object sender, EventArgs e)
{
if (GContext.Main.IsAttached)
PPather.WriteLine(pather.GetCurrentLocation());
else
PPather.WriteLine("!Warning:Cannot get current location");
}
private void btn_load_Click(object sender, EventArgs e)
{
OpenFileDialog oF = new OpenFileDialog();
oF.Filter = "PSC Files (*.psc)|*.psc";
oF.Title = "Select task file...";
oF.RestoreDirectory = true;
oF.FileName = PPather.PatherSettings.TaskFile;
if (oF.ShowDialog() == DialogResult.OK)
{
PPather.PatherSettings.TaskFile = oF.FileName;
SetTaskFileName();
PPather.PatherSettings.Save();
}
}
private void btn_tray_Click(object sender, EventArgs e)
{
this.Hide();
}
private void btn_random_formtitle_Click(object sender, EventArgs e)
{
string newTitle = Functions.GenFormTitle(10);
txt_setting_formtitle.Text = newTitle;
}
#endregion
#region UI Dumper
private void dumpUiBtn_Click(object sender, EventArgs e)
{
string s = dumpCombo.SelectedItem.ToString();
switch (s)
{
case "":
break;
case "UI":
Functions.dumpUi();
break;
case "ItemCount":
Functions.dumpItemCount();
break;
default:
Functions.dumpGObjects(s);
break;
}
}
#endregion
private void nicon_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (this.Visible)
this.Activate();
else
this.Show();
}
// copy the label's text to the clipboard
private void generic_lbl_MouseDoubleClick(object sender, MouseEventArgs e)
{
try
{
if (sender is Label)
{
Label l = (Label)sender;
if (l.Text != "")
Clipboard.SetData(DataFormats.Text, l.Text);
}
}
catch
{
PPather.WriteLine("!Error:Couldn't copy location to clipboard.");
}
}
private GSpellTimer npc_update = new GSpellTimer(3000);
private void timer1_Tick(object sender, EventArgs e)
{
if (GContext.Main != null && GContext.Main.Me != null && GContext.Main.Me.IsValid)
{
GUnit target = GContext.Main.Me.Target;
SetTarget(target);
if (npc_update.IsReady)
{
pather.UpdateNPCs();
npc_update.Reset();
}
}
if (pather.RunState != pather.WantedState)
lbl_state.Text = pather.RunState.ToString() + " (" + pather.WantedState.ToString() + ")";
else
lbl_state.Text = pather.RunState.ToString();
if (GContext.Main.IsAttached)
SetLocation(pather.GetCurrentLocation());
#region Load Button Stuff
if (pather.RunState == PPather.RunState_e.Stopped
|| pather.RunState == PPather.RunState_e.Paused)
{
btn_load.Enabled = true;
}
else
{
btn_load.Enabled = false;
}
#endregion
#region Setting Stuff
if (chk_setting_maxres.Checked)
txt_setting_maxres.Enabled = true;
else
txt_setting_maxres.Enabled = false;
#endregion
if (GContext.Main.CurrentMode == GGlideMode.Glide)
{
if (rootNode != null)
{
treeView1.Nodes.Clear();
treeView1.Nodes.Add(rootNode);
rootNode = null;
}
foreach (TreeNode n in treeView1.Nodes)
{
UpdateTreeNodeStatus(n);
}
}
}
#region Required stuff
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PatherForm));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.nicon = new System.Windows.Forms.NotifyIcon(this.components);
this.btn_pause = new System.Windows.Forms.Button();
this.btn_go = new System.Windows.Forms.Button();
this.btn_getloc = new System.Windows.Forms.Button();
this.btn_stop = new System.Windows.Forms.Button();
this.btn_load = new System.Windows.Forms.Button();
this.btn_tray = new System.Windows.Forms.Button();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.dumpCombo = new System.Windows.Forms.ComboBox();
this.dumpUiVisibleCB = new System.Windows.Forms.CheckBox();
this.devTree = new System.Windows.Forms.TreeView();
this.dumpUiFilter = new System.Windows.Forms.TextBox();
this.dumpUiBtn = new System.Windows.Forms.Button();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.btn_default = new System.Windows.Forms.Button();
this.settings_scroll_pannel = new System.Windows.Forms.Panel();
this.txt_setting_stoplevel = new System.Windows.Forms.TextBox();
this.txt_setting_maxres = new System.Windows.Forms.TextBox();
this.txt_setting_mountrange = new System.Windows.Forms.TextBox();
this.txt_setting_formtitle = new System.Windows.Forms.TextBox();
this.label30 = new System.Windows.Forms.Label();
this.chk_setting_maxres = new System.Windows.Forms.CheckBox();
this.label23 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.cb_setting_usemount = new System.Windows.Forms.ComboBox();
this.btn_random_formtitle = new System.Windows.Forms.Button();
this.label20 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label40 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.btn_save_settings = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.treeView1 = new System.Windows.Forms.TreeView();
this.lb_params = new System.Windows.Forms.ListBox();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lbl_deaths = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.lbl_ttl = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.lbl_harvest = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.lbl_XPh = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lbl_loots = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lbl_kills = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.lbl_loc = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lbl_subzone = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.lbl_zone = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.lbl_activity = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.lbl_state = new System.Windows.Forms.Label();
this.grpBox = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.lbl_name = new System.Windows.Forms.Label();
this.lbl_reaction = new System.Windows.Forms.Label();
this.lbl_level = new System.Windows.Forms.Label();
this.lbl_faction = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.lblPatherVersion = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.label24 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.label25 = new System.Windows.Forms.Label();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.label29 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.label32 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.textBox7 = new System.Windows.Forms.TextBox();
this.textBox8 = new System.Windows.Forms.TextBox();
this.label33 = new System.Windows.Forms.Label();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.label34 = new System.Windows.Forms.Label();
this.label35 = new System.Windows.Forms.Label();
this.label36 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.button2 = new System.Windows.Forms.Button();
this.label37 = new System.Windows.Forms.Label();
this.label38 = new System.Windows.Forms.Label();
this.textBox9 = new System.Windows.Forms.TextBox();
this.tabPage7.SuspendLayout();
this.tabPage3.SuspendLayout();
this.settings_scroll_pannel.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.grpBox.SuspendLayout();
this.tabControl1.SuspendLayout();
this.SuspendLayout();
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 333;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// nicon
//
this.nicon.Icon = ((System.Drawing.Icon)(resources.GetObject("nicon.Icon")));
this.nicon.Visible = true;
this.nicon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.nicon_MouseDoubleClick);
//
// btn_pause
//
this.btn_pause.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_pause.BackColor = System.Drawing.SystemColors.Control;
this.btn_pause.FlatAppearance.BorderSize = 0;
this.btn_pause.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_pause.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_pause.Location = new System.Drawing.Point(64, 264);
this.btn_pause.Name = "btn_pause";
this.btn_pause.Size = new System.Drawing.Size(62, 27);
this.btn_pause.TabIndex = 19;
this.btn_pause.Text = "Pause";
this.btn_pause.UseVisualStyleBackColor = false;
this.btn_pause.Click += new System.EventHandler(this.btn_pause_Click);
//
// btn_go
//
this.btn_go.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_go.BackColor = System.Drawing.SystemColors.Control;
this.btn_go.FlatAppearance.BorderSize = 0;
this.btn_go.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_go.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_go.Location = new System.Drawing.Point(5, 264);
this.btn_go.Name = "btn_go";
this.btn_go.Size = new System.Drawing.Size(55, 27);
this.btn_go.TabIndex = 20;
this.btn_go.Text = "Start";
this.btn_go.UseVisualStyleBackColor = false;
this.btn_go.Click += new System.EventHandler(this.btn_go_Click);
//
// btn_getloc
//
this.btn_getloc.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_getloc.BackColor = System.Drawing.SystemColors.Control;
this.btn_getloc.FlatAppearance.BorderSize = 0;
this.btn_getloc.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_getloc.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_getloc.Location = new System.Drawing.Point(188, 264);
this.btn_getloc.Name = "btn_getloc";
this.btn_getloc.Size = new System.Drawing.Size(73, 27);
this.btn_getloc.TabIndex = 30;
this.btn_getloc.Text = "HotSpot";
this.btn_getloc.UseVisualStyleBackColor = false;
this.btn_getloc.Click += new System.EventHandler(this.btn_getloc_Click);
//
// btn_stop
//
this.btn_stop.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_stop.BackColor = System.Drawing.SystemColors.Control;
this.btn_stop.FlatAppearance.BorderSize = 0;
this.btn_stop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_stop.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_stop.Location = new System.Drawing.Point(130, 264);
this.btn_stop.Name = "btn_stop";
this.btn_stop.Size = new System.Drawing.Size(54, 27);
this.btn_stop.TabIndex = 21;
this.btn_stop.Text = "Stop";
this.btn_stop.UseVisualStyleBackColor = false;
this.btn_stop.Click += new System.EventHandler(this.btn_stop_Click);
//
// btn_load
//
this.btn_load.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_load.BackColor = System.Drawing.SystemColors.Control;
this.btn_load.FlatAppearance.BorderSize = 0;
this.btn_load.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_load.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_load.Location = new System.Drawing.Point(265, 264);
this.btn_load.Name = "btn_load";
this.btn_load.Size = new System.Drawing.Size(53, 27);
this.btn_load.TabIndex = 31;
this.btn_load.Text = "Load";
this.btn_load.UseVisualStyleBackColor = false;
this.btn_load.Click += new System.EventHandler(this.btn_load_Click);
//
// btn_tray
//
this.btn_tray.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btn_tray.BackColor = System.Drawing.SystemColors.Control;
this.btn_tray.FlatAppearance.BorderSize = 0;
this.btn_tray.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_tray.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_tray.Location = new System.Drawing.Point(322, 264);
this.btn_tray.Name = "btn_tray";
this.btn_tray.Size = new System.Drawing.Size(49, 27);
this.btn_tray.TabIndex = 35;
this.btn_tray.Text = "Tray";
this.btn_tray.UseVisualStyleBackColor = false;
this.btn_tray.Click += new System.EventHandler(this.btn_tray_Click);
//
// tabPage7
//
this.tabPage7.AutoScroll = true;
this.tabPage7.AutoScrollMinSize = new System.Drawing.Size(330, 150);
this.tabPage7.Controls.Add(this.dumpCombo);
this.tabPage7.Controls.Add(this.dumpUiVisibleCB);
this.tabPage7.Controls.Add(this.devTree);
this.tabPage7.Controls.Add(this.dumpUiFilter);
this.tabPage7.Controls.Add(this.dumpUiBtn);
this.tabPage7.Location = new System.Drawing.Point(4, 22);
this.tabPage7.Margin = new System.Windows.Forms.Padding(2);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Padding = new System.Windows.Forms.Padding(2);
this.tabPage7.Size = new System.Drawing.Size(361, 229);
this.tabPage7.TabIndex = 3;
this.tabPage7.Text = "Dev";
this.tabPage7.UseVisualStyleBackColor = true;
//
// dumpCombo
//
this.dumpCombo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.dumpCombo.BackColor = System.Drawing.SystemColors.Menu;
this.dumpCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.dumpCombo.FormattingEnabled = true;
this.dumpCombo.Items.AddRange(new object[] {
"UI",
"ItemCount",
"GetItems",
"GetMonsters",
"GetNodes",
"GetObjects",
"GetPlayers",
"GetUnits"});
this.dumpCombo.Location = new System.Drawing.Point(97, 199);
this.dumpCombo.Margin = new System.Windows.Forms.Padding(2);
this.dumpCombo.Name = "dumpCombo";
this.dumpCombo.Size = new System.Drawing.Size(82, 21);
this.dumpCombo.TabIndex = 6;
//
// dumpUiVisibleCB
//
this.dumpUiVisibleCB.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.dumpUiVisibleCB.AutoSize = true;
this.dumpUiVisibleCB.Checked = true;
this.dumpUiVisibleCB.CheckState = System.Windows.Forms.CheckState.Checked;
this.dumpUiVisibleCB.Location = new System.Drawing.Point(241, 202);
this.dumpUiVisibleCB.Margin = new System.Windows.Forms.Padding(2);
this.dumpUiVisibleCB.Name = "dumpUiVisibleCB";
this.dumpUiVisibleCB.Size = new System.Drawing.Size(80, 17);
this.dumpUiVisibleCB.TabIndex = 5;
this.dumpUiVisibleCB.Text = "Only Visible";
this.dumpUiVisibleCB.UseVisualStyleBackColor = true;
//
// devTree
//
this.devTree.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.devTree.BackColor = System.Drawing.Color.Ivory;
this.devTree.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.devTree.Location = new System.Drawing.Point(3, 3);
this.devTree.Margin = new System.Windows.Forms.Padding(2);
this.devTree.Name = "devTree";
this.devTree.Size = new System.Drawing.Size(359, 192);
this.devTree.TabIndex = 4;
//
// dumpUiFilter
//
this.dumpUiFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dumpUiFilter.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.dumpUiFilter.Location = new System.Drawing.Point(3, 199);
this.dumpUiFilter.Margin = new System.Windows.Forms.Padding(2);
this.dumpUiFilter.Name = "dumpUiFilter";
this.dumpUiFilter.Size = new System.Drawing.Size(90, 20);
this.dumpUiFilter.TabIndex = 2;
//
// dumpUiBtn
//
this.dumpUiBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.dumpUiBtn.BackColor = System.Drawing.Color.LightGray;
this.dumpUiBtn.FlatAppearance.BorderSize = 0;
this.dumpUiBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.dumpUiBtn.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dumpUiBtn.Location = new System.Drawing.Point(183, 199);
this.dumpUiBtn.Margin = new System.Windows.Forms.Padding(2);
this.dumpUiBtn.Name = "dumpUiBtn";
this.dumpUiBtn.Size = new System.Drawing.Size(54, 21);
this.dumpUiBtn.TabIndex = 1;
this.dumpUiBtn.Text = "Dump";
this.dumpUiBtn.UseVisualStyleBackColor = false;
this.dumpUiBtn.Click += new System.EventHandler(this.dumpUiBtn_Click);
//
// tabPage3
//
this.tabPage3.AutoScroll = true;
this.tabPage3.Controls.Add(this.btn_default);
this.tabPage3.Controls.Add(this.settings_scroll_pannel);
this.tabPage3.Controls.Add(this.btn_save_settings);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(361, 229);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Settings";
this.tabPage3.UseVisualStyleBackColor = true;
//
// btn_default
//
this.btn_default.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btn_default.BackColor = System.Drawing.SystemColors.ControlLight;
this.btn_default.FlatAppearance.BorderSize = 0;
this.btn_default.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btn_default.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btn_default.Location = new System.Drawing.Point(211, 200);
this.btn_default.MinimumSize = new System.Drawing.Size(54, 21);
this.btn_default.Name = "btn_default";
this.btn_default.Size = new System.Drawing.Size(71, 21);
this.btn_default.TabIndex = 54;
this.btn_default.Text = "Default";
this.btn_default.UseVisualStyleBackColor = false;
this.btn_default.Click += new System.EventHandler(this.btn_default_Click);
//
// settings_scroll_pannel
//
this.settings_scroll_pannel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.settings_scroll_pannel.AutoScroll = true;
this.settings_scroll_pannel.AutoScrollMinSize = new System.Drawing.Size(340, 150);
this.settings_scroll_pannel.BackColor = System.Drawing.Color.Ivory;
this.settings_scroll_pannel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.settings_scroll_pannel.Controls.Add(this.txt_setting_stoplevel);
this.settings_scroll_pannel.Controls.Add(this.txt_setting_maxres);
this.settings_scroll_pannel.Controls.Add(this.txt_setting_mountrange);
this.settings_scroll_pannel.Controls.Add(this.txt_setting_formtitle);
this.settings_scroll_pannel.Controls.Add(this.label30);
this.settings_scroll_pannel.Controls.Add(this.chk_setting_maxres);
this.settings_scroll_pannel.Controls.Add(this.label23);
this.settings_scroll_pannel.Controls.Add(this.label22);
this.settings_scroll_pannel.Controls.Add(this.label21);
this.settings_scroll_pannel.Controls.Add(this.cb_setting_usemount);
this.settings_scroll_pannel.Controls.Add(this.btn_random_formtitle);
this.settings_scroll_pannel.Controls.Add(this.label20);
this.settings_scroll_pannel.Controls.Add(this.label19);
this.settings_scroll_pannel.Controls.Add(this.label40);
this.settings_scroll_pannel.Controls.Add(this.label10);
this.settings_scroll_pannel.Location = new System.Drawing.Point(3, 3);
this.settings_scroll_pannel.Name = "settings_scroll_pannel";
this.settings_scroll_pannel.Size = new System.Drawing.Size(353, 190);
this.settings_scroll_pannel.TabIndex = 53;
this.settings_scroll_pannel.Paint += new System.Windows.Forms.PaintEventHandler(this.settings_scroll_pannel_Paint);
//
// txt_setting_stoplevel
//
this.txt_setting_stoplevel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txt_setting_stoplevel.Location = new System.Drawing.Point(83, 130);
this.txt_setting_stoplevel.MaxLength = 4;
this.txt_setting_stoplevel.Name = "txt_setting_stoplevel";
this.txt_setting_stoplevel.Size = new System.Drawing.Size(35, 20);
this.txt_setting_stoplevel.TabIndex = 82;
//
// txt_setting_maxres
//
this.txt_setting_maxres.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txt_setting_maxres.Location = new System.Drawing.Point(123, 101);
this.txt_setting_maxres.MaxLength = 4;
this.txt_setting_maxres.Name = "txt_setting_maxres";
this.txt_setting_maxres.Size = new System.Drawing.Size(35, 20);
this.txt_setting_maxres.TabIndex = 79;
//
// txt_setting_mountrange
//
this.txt_setting_mountrange.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txt_setting_mountrange.Location = new System.Drawing.Point(120, 70);
this.txt_setting_mountrange.MaxLength = 4;
this.txt_setting_mountrange.Name = "txt_setting_mountrange";
this.txt_setting_mountrange.Size = new System.Drawing.Size(35, 20);
this.txt_setting_mountrange.TabIndex = 75;
//
// txt_setting_formtitle
//
this.txt_setting_formtitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txt_setting_formtitle.Location = new System.Drawing.Point(62, 8);
this.txt_setting_formtitle.Name = "txt_setting_formtitle";
this.txt_setting_formtitle.Size = new System.Drawing.Size(113, 20);
this.txt_setting_formtitle.TabIndex = 71;
//
// label30
//
this.label30.AutoSize = true;
this.label30.BackColor = System.Drawing.Color.Ivory;
this.label30.Location = new System.Drawing.Point(6, 133);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(66, 13);
this.label30.TabIndex = 81;
this.label30.Text = "Stop at level";
//
// chk_setting_maxres
//
this.chk_setting_maxres.AutoSize = true;
this.chk_setting_maxres.BackColor = System.Drawing.Color.Transparent;
this.chk_setting_maxres.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.chk_setting_maxres.Location = new System.Drawing.Point(102, 105);
this.chk_setting_maxres.Name = "chk_setting_maxres";
this.chk_setting_maxres.Size = new System.Drawing.Size(12, 11);
this.chk_setting_maxres.TabIndex = 78;
this.chk_setting_maxres.UseVisualStyleBackColor = false;
//
// label23
//
this.label23.AutoSize = true;
this.label23.BackColor = System.Drawing.Color.White;
this.label23.Location = new System.Drawing.Point(3, 104);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(90, 13);
this.label23.TabIndex = 77;
this.label23.Text = "Max resurrections";
//
// label22
//
this.label22.AutoSize = true;
this.label22.BackColor = System.Drawing.Color.Ivory;
this.label22.Location = new System.Drawing.Point(3, 73);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(111, 13);
this.label22.TabIndex = 76;
this.label22.Text = "Min distance to mount";
//
// label21
//
this.label21.AutoSize = true;
this.label21.BackColor = System.Drawing.Color.White;
this.label21.Location = new System.Drawing.Point(3, 43);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(58, 13);
this.label21.TabIndex = 74;
this.label21.Text = "Use mount";
//
// cb_setting_usemount
//
this.cb_setting_usemount.BackColor = System.Drawing.SystemColors.Menu;
this.cb_setting_usemount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cb_setting_usemount.FormattingEnabled = true;
this.cb_setting_usemount.Items.AddRange(new object[] {
"Always Mount",
"Never Mount",
"Let Task Decide"});
this.cb_setting_usemount.Location = new System.Drawing.Point(67, 39);
this.cb_setting_usemount.Margin = new System.Windows.Forms.Padding(2);
this.cb_setting_usemount.Name = "cb_setting_usemount";
this.cb_setting_usemount.Size = new System.Drawing.Size(113, 21);
this.cb_setting_usemount.TabIndex = 80;
//
// btn_random_formtitle
//
this.btn_random_formtitle.FlatAppearance.BorderSize = 0;
this.btn_random_formtitle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;