annotate Options.cs @ 0:a54c09901f4e default tip

Initial commit to Mercurial at v1.9.3 - now GPLed!
author IBBoard <dev@ibboard.co.uk>
date Sat, 06 Oct 2018 19:19:03 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file is a part of the Texture Tool program and is copyright 2006-2018 IBBoard.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // The file and the library/program it is in are licensed under the GNU GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using System.Drawing;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 using System.Collections;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 using System.ComponentModel;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 using System.Windows.Forms;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 using System.IO;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 using System.Text.RegularExpressions;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 using IBBoard;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 using IBBoard.Graphics;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 namespace IBBoard.Relic.TextureTool
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 /// Summary description for Options.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 public class Options : System.Windows.Forms.Form
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 private Preferences pref;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 private System.Windows.Forms.Button bttnImportTeamcolour;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 private System.Windows.Forms.Button bttnOK;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 private System.Windows.Forms.Button bttnCancel;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 private System.Windows.Forms.ColorDialog colorDialog;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 private System.Windows.Forms.OpenFileDialog openFileDialog;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 private System.Windows.Forms.Label lblDoWPath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 private System.Windows.Forms.Button bttnDoWPath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 private System.Windows.Forms.Button bttnPrimary;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 private System.Windows.Forms.Button bttnSecondary;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 private System.Windows.Forms.Button bttnTrim;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 private System.Windows.Forms.Button bttnWeapon;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 private System.Windows.Forms.Button bttnTrim2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 private System.Windows.Forms.PictureBox pbBadge;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 private System.Windows.Forms.Label lblBadge;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 private System.Windows.Forms.Label lblBanner;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 private System.Windows.Forms.PictureBox pbBanner;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 private System.Windows.Forms.Button bttnSave;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 private System.Windows.Forms.TabControl tabControl1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 private System.Windows.Forms.TabPage tabPage1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 private System.Windows.Forms.TabPage tabPage2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 private System.Windows.Forms.TextBox txtDoWPath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 private System.Windows.Forms.Label label1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 private System.Windows.Forms.Button bttnTexturePath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 private System.Windows.Forms.TextBox txtTexturePath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 private System.Windows.Forms.Label label2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 private System.Windows.Forms.Button bttnTeamcolourPath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 private System.Windows.Forms.TextBox txtTeamcolourPath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 private System.Windows.Forms.Label label3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 private System.Windows.Forms.RadioButton rbBasicMode;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 private System.Windows.Forms.RadioButton rbAdvancedMode;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 /// Required designer variable.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 private System.ComponentModel.Container components = null;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 public Options(Preferences p)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 pref = p;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 // Required for Windows Form Designer support
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 InitializeComponent();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 pbBadge.Tag = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 pbBanner.Tag = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 colorDialog.FullOpen = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 txtDoWPath.Text = pref["DoWPath"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 txtTeamcolourPath.Text = pref["TeamcolourPath"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 txtTexturePath.Text = pref["TexturePath"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 if ((bool)pref["settingBasic"])
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 rbBasicMode.Checked = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 rbAdvancedMode.Checked = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 SetButtonColour(bttnPrimary, Color.FromArgb((byte)pref["PrimaryRed"], (byte)pref["PrimaryGreen"], (byte)pref["PrimaryBlue"]));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 SetButtonColour(bttnSecondary, Color.FromArgb((byte)pref["SecondaryRed"], (byte)pref["SecondaryGreen"], (byte)pref["SecondaryBlue"]));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 SetButtonColour(bttnTrim, Color.FromArgb((byte)pref["TrimRed"], (byte)pref["TrimGreen"], (byte)pref["TrimBlue"]));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 SetButtonColour(bttnWeapon, Color.FromArgb((byte)pref["WeaponRed"], (byte)pref["WeaponGreen"], (byte)pref["WeaponBlue"]));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 SetButtonColour(bttnTrim2, Color.FromArgb((byte)pref["EyesRed"], (byte)pref["EyesGreen"], (byte)pref["EyesBlue"]));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 string temp = pref["BadgeName"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 if (temp.LastIndexOf(IBBoard.Constants.DirectoryChar)==-1)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 temp = pref["DoWPath"].ToString().TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"badges"+IBBoard.Constants.DirectoryChar+pref["BadgeName"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 if (File.Exists(temp))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 SetPictureBoxImage(pbBadge, temp);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 temp = pref["BannerName"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 if (temp.LastIndexOf(IBBoard.Constants.DirectoryChar)==-1)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 temp = pref["DoWPath"].ToString().TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"banners"+IBBoard.Constants.DirectoryChar+pref["BannerName"].ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 if (File.Exists(temp))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 SetPictureBoxImage(pbBanner, temp);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 /// Clean up any resources being used.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 protected override void Dispose( bool disposing )
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 if( disposing )
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 if(components != null)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 components.Dispose();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 base.Dispose( disposing );
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 #region Windows Form Designer generated code
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134 /// Required method for Designer support - do not modify
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 /// the contents of this method with the code editor.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 private void InitializeComponent()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 this.colorDialog = new System.Windows.Forms.ColorDialog();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140 this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 this.bttnImportTeamcolour = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 this.bttnOK = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 this.bttnCancel = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 this.txtDoWPath = new System.Windows.Forms.TextBox();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 this.lblDoWPath = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 this.bttnDoWPath = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
148 this.pbBanner = new System.Windows.Forms.PictureBox();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
149 this.lblBanner = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
150 this.lblBadge = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
151 this.pbBadge = new System.Windows.Forms.PictureBox();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
152 this.bttnTrim2 = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
153 this.bttnWeapon = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
154 this.bttnTrim = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
155 this.bttnSecondary = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
156 this.bttnPrimary = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
157 this.bttnSave = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
158 this.tabControl1 = new System.Windows.Forms.TabControl();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
159 this.tabPage1 = new System.Windows.Forms.TabPage();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
160 this.rbAdvancedMode = new System.Windows.Forms.RadioButton();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
161 this.rbBasicMode = new System.Windows.Forms.RadioButton();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
162 this.label3 = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
163 this.label2 = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
164 this.bttnTeamcolourPath = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
165 this.txtTeamcolourPath = new System.Windows.Forms.TextBox();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
166 this.label1 = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
167 this.bttnTexturePath = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
168 this.txtTexturePath = new System.Windows.Forms.TextBox();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
169 this.tabPage2 = new System.Windows.Forms.TabPage();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
170 this.tabControl1.SuspendLayout();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
171 this.tabPage1.SuspendLayout();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
172 this.tabPage2.SuspendLayout();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
173 this.SuspendLayout();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
174 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
175 // bttnImportTeamcolour
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
176 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
177 this.bttnImportTeamcolour.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
178 this.bttnImportTeamcolour.Location = new System.Drawing.Point(16, 168);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
179 this.bttnImportTeamcolour.Name = "bttnImportTeamcolour";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
180 this.bttnImportTeamcolour.Size = new System.Drawing.Size(128, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
181 this.bttnImportTeamcolour.TabIndex = 3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
182 this.bttnImportTeamcolour.Text = "Import Teamcolour";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
183 this.bttnImportTeamcolour.Click += new System.EventHandler(this.bttnImportTeamcolour_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
184 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
185 // bttnOK
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
186 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
187 this.bttnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
188 this.bttnOK.Location = new System.Drawing.Point(368, 240);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
189 this.bttnOK.Name = "bttnOK";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
190 this.bttnOK.TabIndex = 2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
191 this.bttnOK.Text = "OK";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
192 this.bttnOK.Click += new System.EventHandler(this.bttnOK_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
193 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
194 // bttnCancel
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
195 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
196 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
197 this.bttnCancel.Location = new System.Drawing.Point(280, 240);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
198 this.bttnCancel.Name = "bttnCancel";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
199 this.bttnCancel.TabIndex = 1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
200 this.bttnCancel.Text = "Cancel";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
201 this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
202 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
203 // txtDoWPath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
204 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
205 this.txtDoWPath.Cursor = System.Windows.Forms.Cursors.Default;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
206 this.txtDoWPath.Location = new System.Drawing.Point(112, 8);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
207 this.txtDoWPath.Name = "txtDoWPath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
208 this.txtDoWPath.Size = new System.Drawing.Size(240, 20);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
209 this.txtDoWPath.TabIndex = 3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
210 this.txtDoWPath.TabStop = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
211 this.txtDoWPath.Text = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
212 this.txtDoWPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textbox_KeyDown);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
213 this.txtDoWPath.TextChanged += new System.EventHandler(this.textbox_TextChanged);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
214 this.txtDoWPath.Leave += new System.EventHandler(this.txtDoWPath_Leave);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
215 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
216 // lblDoWPath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
217 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
218 this.lblDoWPath.Location = new System.Drawing.Point(8, 8);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
219 this.lblDoWPath.Name = "lblDoWPath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
220 this.lblDoWPath.TabIndex = 4;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
221 this.lblDoWPath.Text = "Dawn of War Path:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
222 this.lblDoWPath.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
223 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
224 // bttnDoWPath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
225 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
226 this.bttnDoWPath.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
227 this.bttnDoWPath.Location = new System.Drawing.Point(360, 8);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
228 this.bttnDoWPath.Name = "bttnDoWPath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
229 this.bttnDoWPath.Size = new System.Drawing.Size(56, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
230 this.bttnDoWPath.TabIndex = 4;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
231 this.bttnDoWPath.Text = "Select";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
232 this.bttnDoWPath.Click += new System.EventHandler(this.bttnDoWPath_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
233 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
234 // pbBanner
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
235 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
236 this.pbBanner.Location = new System.Drawing.Point(296, 64);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
237 this.pbBanner.Name = "pbBanner";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
238 this.pbBanner.Size = new System.Drawing.Size(64, 96);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
239 this.pbBanner.TabIndex = 8;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
240 this.pbBanner.TabStop = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
241 this.pbBanner.Click += new System.EventHandler(this.pbBanner_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
242 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
243 // lblBanner
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
244 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
245 this.lblBanner.Location = new System.Drawing.Point(232, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
246 this.lblBanner.Name = "lblBanner";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
247 this.lblBanner.Size = new System.Drawing.Size(64, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
248 this.lblBanner.TabIndex = 7;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
249 this.lblBanner.Text = "Banner:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
250 this.lblBanner.TextAlign = System.Drawing.ContentAlignment.TopRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
251 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
252 // lblBadge
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
253 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
254 this.lblBadge.Location = new System.Drawing.Point(24, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
255 this.lblBadge.Name = "lblBadge";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
256 this.lblBadge.Size = new System.Drawing.Size(48, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
257 this.lblBadge.TabIndex = 6;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
258 this.lblBadge.Text = "Badge:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
259 this.lblBadge.TextAlign = System.Drawing.ContentAlignment.TopRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
260 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
261 // pbBadge
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
262 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
263 this.pbBadge.BackColor = System.Drawing.SystemColors.Control;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
264 this.pbBadge.Location = new System.Drawing.Point(80, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
265 this.pbBadge.Name = "pbBadge";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
266 this.pbBadge.Size = new System.Drawing.Size(64, 64);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
267 this.pbBadge.TabIndex = 5;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
268 this.pbBadge.TabStop = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
269 this.pbBadge.Click += new System.EventHandler(this.pbBadge_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
270 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
271 // bttnTrim2
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
272 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
273 this.bttnTrim2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
274 this.bttnTrim2.Location = new System.Drawing.Point(336, 16);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
275 this.bttnTrim2.Name = "bttnTrim2";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
276 this.bttnTrim2.Size = new System.Drawing.Size(72, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
277 this.bttnTrim2.TabIndex = 4;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
278 this.bttnTrim2.Tag = "Eye";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
279 this.bttnTrim2.Text = "Trim 2/Eye";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
280 this.bttnTrim2.Click += new System.EventHandler(this.bttnTrim2_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
281 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
282 // bttnWeapon
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
283 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
284 this.bttnWeapon.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
285 this.bttnWeapon.Location = new System.Drawing.Point(256, 16);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
286 this.bttnWeapon.Name = "bttnWeapon";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
287 this.bttnWeapon.Size = new System.Drawing.Size(72, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
288 this.bttnWeapon.TabIndex = 3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
289 this.bttnWeapon.Tag = "Weapon";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
290 this.bttnWeapon.Text = "Weapon";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
291 this.bttnWeapon.Click += new System.EventHandler(this.bttnWeapon_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
292 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
293 // bttnTrim
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
294 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
295 this.bttnTrim.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
296 this.bttnTrim.Location = new System.Drawing.Point(176, 16);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
297 this.bttnTrim.Name = "bttnTrim";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
298 this.bttnTrim.Size = new System.Drawing.Size(72, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
299 this.bttnTrim.TabIndex = 2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
300 this.bttnTrim.Tag = "Trim";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
301 this.bttnTrim.Text = "Trim";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
302 this.bttnTrim.Click += new System.EventHandler(this.bttnTrim_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
303 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
304 // bttnSecondary
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
305 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
306 this.bttnSecondary.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
307 this.bttnSecondary.Location = new System.Drawing.Point(96, 16);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
308 this.bttnSecondary.Name = "bttnSecondary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
309 this.bttnSecondary.Size = new System.Drawing.Size(72, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
310 this.bttnSecondary.TabIndex = 1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
311 this.bttnSecondary.Tag = "Secondary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
312 this.bttnSecondary.Text = "Secondary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
313 this.bttnSecondary.Click += new System.EventHandler(this.bttnSecondary_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
314 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
315 // bttnPrimary
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
316 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
317 this.bttnPrimary.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
318 this.bttnPrimary.Location = new System.Drawing.Point(16, 16);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
319 this.bttnPrimary.Name = "bttnPrimary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
320 this.bttnPrimary.Size = new System.Drawing.Size(72, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
321 this.bttnPrimary.TabIndex = 0;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
322 this.bttnPrimary.Tag = "Primary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
323 this.bttnPrimary.Text = "Primary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
324 this.bttnPrimary.Click += new System.EventHandler(this.bttnPrimary_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
325 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
326 // bttnSave
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
327 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
328 this.bttnSave.Enabled = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
329 this.bttnSave.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
330 this.bttnSave.Location = new System.Drawing.Point(8, 240);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
331 this.bttnSave.Name = "bttnSave";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
332 this.bttnSave.Size = new System.Drawing.Size(112, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
333 this.bttnSave.TabIndex = 7;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
334 this.bttnSave.Text = "Save Preferences";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
335 this.bttnSave.Click += new System.EventHandler(this.bttnSave_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
336 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
337 // tabControl1
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
338 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
339 this.tabControl1.Controls.Add(this.tabPage1);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
340 this.tabControl1.Controls.Add(this.tabPage2);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
341 this.tabControl1.Location = new System.Drawing.Point(8, 8);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
342 this.tabControl1.Name = "tabControl1";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
343 this.tabControl1.SelectedIndex = 0;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
344 this.tabControl1.Size = new System.Drawing.Size(432, 224);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
345 this.tabControl1.TabIndex = 8;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
346 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
347 // tabPage1
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
348 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
349 this.tabPage1.Controls.Add(this.rbAdvancedMode);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
350 this.tabPage1.Controls.Add(this.rbBasicMode);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
351 this.tabPage1.Controls.Add(this.label3);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
352 this.tabPage1.Controls.Add(this.label2);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
353 this.tabPage1.Controls.Add(this.bttnTeamcolourPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
354 this.tabPage1.Controls.Add(this.txtTeamcolourPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
355 this.tabPage1.Controls.Add(this.label1);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
356 this.tabPage1.Controls.Add(this.bttnTexturePath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
357 this.tabPage1.Controls.Add(this.txtTexturePath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
358 this.tabPage1.Controls.Add(this.lblDoWPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
359 this.tabPage1.Controls.Add(this.bttnDoWPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
360 this.tabPage1.Controls.Add(this.txtDoWPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
361 this.tabPage1.Location = new System.Drawing.Point(4, 22);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
362 this.tabPage1.Name = "tabPage1";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
363 this.tabPage1.Size = new System.Drawing.Size(424, 198);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
364 this.tabPage1.TabIndex = 0;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
365 this.tabPage1.Text = "Game/Path Settings";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
366 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
367 // rbAdvancedMode
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
368 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
369 this.rbAdvancedMode.Location = new System.Drawing.Point(200, 120);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
370 this.rbAdvancedMode.Name = "rbAdvancedMode";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
371 this.rbAdvancedMode.Size = new System.Drawing.Size(80, 24);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
372 this.rbAdvancedMode.TabIndex = 13;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
373 this.rbAdvancedMode.Text = "Advanced";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
374 this.rbAdvancedMode.CheckedChanged += new System.EventHandler(this.rbMode_CheckedChanged);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
375 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
376 // rbBasicMode
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
377 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
378 this.rbBasicMode.Location = new System.Drawing.Point(120, 120);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
379 this.rbBasicMode.Name = "rbBasicMode";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
380 this.rbBasicMode.Size = new System.Drawing.Size(72, 24);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
381 this.rbBasicMode.TabIndex = 12;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
382 this.rbBasicMode.Text = "Basic";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
383 this.rbBasicMode.CheckedChanged += new System.EventHandler(this.rbMode_CheckedChanged);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
384 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
385 // label3
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
386 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
387 this.label3.Location = new System.Drawing.Point(8, 120);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
388 this.label3.Name = "label3";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
389 this.label3.TabIndex = 11;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
390 this.label3.Text = "Texture Mode:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
391 this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
392 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
393 // label2
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
394 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
395 this.label2.Location = new System.Drawing.Point(8, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
396 this.label2.Name = "label2";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
397 this.label2.TabIndex = 10;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
398 this.label2.Text = "Teamcolour Path:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
399 this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
400 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
401 // bttnTeamcolourPath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
402 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
403 this.bttnTeamcolourPath.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
404 this.bttnTeamcolourPath.Location = new System.Drawing.Point(360, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
405 this.bttnTeamcolourPath.Name = "bttnTeamcolourPath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
406 this.bttnTeamcolourPath.Size = new System.Drawing.Size(56, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
407 this.bttnTeamcolourPath.TabIndex = 9;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
408 this.bttnTeamcolourPath.Text = "Select";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
409 this.bttnTeamcolourPath.Click += new System.EventHandler(this.bttnTeamcolourPath_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
410 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
411 // txtTeamcolourPath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
412 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
413 this.txtTeamcolourPath.Cursor = System.Windows.Forms.Cursors.Default;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
414 this.txtTeamcolourPath.Location = new System.Drawing.Point(112, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
415 this.txtTeamcolourPath.Name = "txtTeamcolourPath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
416 this.txtTeamcolourPath.Size = new System.Drawing.Size(240, 20);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
417 this.txtTeamcolourPath.TabIndex = 8;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
418 this.txtTeamcolourPath.TabStop = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
419 this.txtTeamcolourPath.Text = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
420 this.txtTeamcolourPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textbox_KeyDown);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
421 this.txtTeamcolourPath.TextChanged += new System.EventHandler(this.textbox_TextChanged);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
422 this.txtTeamcolourPath.Leave += new System.EventHandler(this.textbox_Leave);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
423 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
424 // label1
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
425 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
426 this.label1.Location = new System.Drawing.Point(8, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
427 this.label1.Name = "label1";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
428 this.label1.TabIndex = 7;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
429 this.label1.Text = "Texture Path:";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
430 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
431 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
432 // bttnTexturePath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
433 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
434 this.bttnTexturePath.FlatStyle = System.Windows.Forms.FlatStyle.System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
435 this.bttnTexturePath.Location = new System.Drawing.Point(360, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
436 this.bttnTexturePath.Name = "bttnTexturePath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
437 this.bttnTexturePath.Size = new System.Drawing.Size(56, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
438 this.bttnTexturePath.TabIndex = 6;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
439 this.bttnTexturePath.Text = "Select";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
440 this.bttnTexturePath.Click += new System.EventHandler(this.bttnTexturePath_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
441 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
442 // txtTexturePath
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
443 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
444 this.txtTexturePath.Cursor = System.Windows.Forms.Cursors.Default;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
445 this.txtTexturePath.Location = new System.Drawing.Point(112, 40);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
446 this.txtTexturePath.Name = "txtTexturePath";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
447 this.txtTexturePath.Size = new System.Drawing.Size(240, 20);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
448 this.txtTexturePath.TabIndex = 5;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
449 this.txtTexturePath.TabStop = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
450 this.txtTexturePath.Text = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
451 this.txtTexturePath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textbox_KeyDown);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
452 this.txtTexturePath.TextChanged += new System.EventHandler(this.textbox_TextChanged);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
453 this.txtTexturePath.Leave += new System.EventHandler(this.textbox_Leave);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
454 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
455 // tabPage2
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
456 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
457 this.tabPage2.Controls.Add(this.bttnTrim2);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
458 this.tabPage2.Controls.Add(this.pbBadge);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
459 this.tabPage2.Controls.Add(this.lblBadge);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
460 this.tabPage2.Controls.Add(this.lblBanner);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
461 this.tabPage2.Controls.Add(this.bttnImportTeamcolour);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
462 this.tabPage2.Controls.Add(this.pbBanner);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
463 this.tabPage2.Controls.Add(this.bttnWeapon);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
464 this.tabPage2.Controls.Add(this.bttnPrimary);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
465 this.tabPage2.Controls.Add(this.bttnSecondary);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
466 this.tabPage2.Controls.Add(this.bttnTrim);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
467 this.tabPage2.Location = new System.Drawing.Point(4, 22);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
468 this.tabPage2.Name = "tabPage2";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
469 this.tabPage2.Size = new System.Drawing.Size(424, 198);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
470 this.tabPage2.TabIndex = 1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
471 this.tabPage2.Text = "Team Colouring Settings";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
472 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
473 // Options
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
474 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
475 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
476 this.ClientSize = new System.Drawing.Size(450, 270);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
477 this.ControlBox = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
478 this.Controls.Add(this.tabControl1);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
479 this.Controls.Add(this.bttnSave);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
480 this.Controls.Add(this.bttnCancel);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
481 this.Controls.Add(this.bttnOK);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
482 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
483 this.MinimizeBox = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
484 this.Name = "Options";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
485 this.ShowInTaskbar = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
486 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
487 this.Text = "Options";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
488 this.tabControl1.ResumeLayout(false);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
489 this.tabPage1.ResumeLayout(false);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
490 this.tabPage2.ResumeLayout(false);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
491 this.ResumeLayout(false);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
492
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
493 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
494 #endregion
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
495
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
496 private void bttnDoWPath_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
497 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
498 setPath(txtDoWPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
499 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
500
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
501 private void bttnOK_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
502 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
503 setPrefs();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
504
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
505 this.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
506 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
507
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
508 private void bttnCancel_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
509 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
510 this.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
511 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
512
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
513 private void bttnPrimary_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
514 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
515 colorDialog.Color = bttnPrimary.BackColor;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
516 DialogResult dr = colorDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
517
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
518 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
519 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
520 SetButtonColour(bttnPrimary, colorDialog.Color);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
521 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
522 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
523
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
524 private void bttnSecondary_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
525 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
526 colorDialog.Color = bttnSecondary.BackColor;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
527 DialogResult dr = colorDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
528
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
529 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
530 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
531 SetButtonColour(bttnSecondary, colorDialog.Color);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
532 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
533 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
534
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
535 private void bttnTrim_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
536 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
537 colorDialog.Color = bttnTrim.BackColor;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
538 DialogResult dr = colorDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
539
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
540 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
541 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
542 SetButtonColour(bttnTrim, colorDialog.Color);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
543 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
544 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
545
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
546 private void bttnWeapon_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
547 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
548 colorDialog.Color = bttnWeapon.BackColor;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
549 DialogResult dr = colorDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
550
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
551 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
552 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
553 SetButtonColour(bttnWeapon, colorDialog.Color);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
554 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
555 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
556
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
557 private void bttnTrim2_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
558 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
559 colorDialog.Color = bttnTrim2.BackColor;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
560 DialogResult dr = colorDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
561
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
562 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
563 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
564 SetButtonColour(bttnTrim2, colorDialog.Color);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
565 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
566 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
567
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
568 private void SetButtonColour(Button bttn, Color colour)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
569 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
570 if (bttn.BackColor!=colour)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
571 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
572 bttn.BackColor = colour;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
573
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
574 if (colour.R<128 && colour.G<128 && colour.B<128)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
575 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
576 bttn.ForeColor = Color.White;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
577 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
578 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
579 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
580 bttn.ForeColor = Color.Black;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
581 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
582
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
583 if (bttn == bttnSecondary)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
584 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
585 pbBadge.BackColor = colour;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
586 SetPictureBoxImage(pbBadge, null);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
587 pbBanner.BackColor = colour;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
588 SetPictureBoxImage(pbBanner, null);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
589 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
590
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
591 setSaveEnabled();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
592 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
593 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
594
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
595 private void pbBadge_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
596 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
597 openFileDialog.InitialDirectory = txtDoWPath.Text.TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"badges"+IBBoard.Constants.DirectoryChar;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
598 openFileDialog.Filter = "Badge Image (*.tga)|*.tga";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
599 openFileDialog.FileName = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
600 openFileDialog.CheckFileExists = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
601 DialogResult dr = openFileDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
602
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
603 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
604 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
605 SetPictureBoxImage(pbBadge, openFileDialog.FileName);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
606 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
607 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
608
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
609 private void pbBanner_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
610 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
611 openFileDialog.InitialDirectory = txtDoWPath.Text.TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"banners"+IBBoard.Constants.DirectoryChar;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
612 openFileDialog.Filter = "Banner Image (*.tga)|*.tga";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
613 openFileDialog.FileName = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
614 openFileDialog.CheckFileExists = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
615 DialogResult dr = openFileDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
616
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
617 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
618 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
619 SetPictureBoxImage(pbBanner, openFileDialog.FileName);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
620 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
621 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
622
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
623 private bool SetPictureBoxImage(PictureBox box, string filepath)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
624 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
625 if (filepath == "")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
626 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
627 box.Image = null;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
628 box.Tag = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
629 return true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
630 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
631
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
632 if (filepath==null)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
633 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
634 filepath = (string)box.Tag;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
635 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
636
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
637 bool success = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
638
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
639 if (File.Exists(filepath))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
640 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
641 try
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
642 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
643 Bitmap bmp = IBBoard.Graphics.ImageConverter.TGAtoBMP(filepath, box.BackColor);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
644
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
645 if (bmp.Width!=64)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
646 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
647 MessageBox.Show(this, "The image you selected was not the correct width. Badges and banners must be 64px wide.", "Invalid image");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
648 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
649 else if (box == pbBadge && bmp.Height!=64)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
650 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
651 MessageBox.Show(this, "The image you selected was not the correct size. Badges must be 64px high.", "Invalid image");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
652 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
653 else if (box == pbBanner && bmp.Height!=96)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
654 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
655 MessageBox.Show(this, "The image you selected was not the correct size. Banners must be 96px high.", "Invalid image");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
656 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
657 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
658 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
659 box.Image = bmp;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
660 box.Image.RotateFlip(RotateFlipType.RotateNoneFlipY);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
661 box.Tag = filepath;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
662 success = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
663 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
664 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
665 catch(InvalidOperationException ex)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
666 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
667 if (box==pbBanner)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
668 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
669 MessageBox.Show(this, ex.Message, "Invalid banner");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
670 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
671 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
672 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
673 MessageBox.Show(this, ex.Message, "Invalid badge");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
674 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
675 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
676 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
677 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
678 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
679 box.Image = null;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
680 box.Tag = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
681
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
682 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
683
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
684 setSaveEnabled();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
685
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
686 return success;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
687 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
688
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
689 private void bttnImportTeamcolour_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
690 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
691 openFileDialog.Filter = "Team Colour files (*.teamcolour)|*.teamcolour";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
692 openFileDialog.FileName = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
693 openFileDialog.InitialDirectory = txtTeamcolourPath.Text;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
694 openFileDialog.CheckFileExists = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
695 DialogResult dr = openFileDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
696
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
697 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
698 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
699 string error = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
700 string temp = "";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
701
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
702 FileInfo file = new FileInfo(openFileDialog.FileName);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
703 TextReader tr = file.OpenText();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
704 string content = tr.ReadToEnd();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
705 tr.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
706 Match match = Regex.Match(content, "\"BADGES:([\\w\\.]+)\"");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
707
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
708 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
709 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
710 temp = txtDoWPath.Text.TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"badges"+IBBoard.Constants.DirectoryChar+match.Groups[1].Value;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
711 SetPictureBoxImage(pbBadge, temp);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
712 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
713 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
714 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
715 SetPictureBoxImage(pbBadge, "");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
716 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
717
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
718 match = Regex.Match(content, "\"BANNERS:([\\w\\.]+)\"");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
719 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
720 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
721 temp = txtDoWPath.Text.ToString().TrimEnd(IBBoard.Constants.DirectoryChar)+IBBoard.Constants.DirectoryChar+"banners"+IBBoard.Constants.DirectoryChar+match.Groups[1].Value;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
722
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
723 SetPictureBoxImage(pbBanner, temp);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
724 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
725 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
726 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
727 SetPictureBoxImage(pbBanner, "");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
728 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
729
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
730 match = Regex.Match(content, "Primary =\\s+{\\s+b = ([12]?[0-9]?[0-9]),\\s+g = ([12]?[0-9]?[0-9]),\\s+r = ([12]?[0-9]?[0-9]),");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
731 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
732 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
733 SetButtonColour(bttnPrimary, Color.FromArgb(byte.Parse(match.Groups[3].Value), byte.Parse(match.Groups[2].Value), byte.Parse(match.Groups[1].Value)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
734 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
735 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
736 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
737 error+= "\r\n* Primary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
738 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
739
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
740 match = Regex.Match(content, "Secondary =\\s+{\\s+b = ([12]?[0-9]?[0-9]),\\s+g = ([12]?[0-9]?[0-9]),\\s+r = ([12]?[0-9]?[0-9]),");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
741 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
742 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
743 SetButtonColour(bttnSecondary, Color.FromArgb(byte.Parse(match.Groups[3].Value), byte.Parse(match.Groups[2].Value), byte.Parse(match.Groups[1].Value)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
744 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
745 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
746 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
747 error+= "\r\n* Secondary";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
748 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
749
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
750 match = Regex.Match(content, "Trim =\\s+{\\s+b = ([12]?[0-9]?[0-9]),\\s+g = ([12]?[0-9]?[0-9]),\\s+r = ([12]?[0-9]?[0-9]),");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
751 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
752 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
753 SetButtonColour(bttnTrim, Color.FromArgb(byte.Parse(match.Groups[3].Value), byte.Parse(match.Groups[2].Value), byte.Parse(match.Groups[1].Value)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
754 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
755 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
756 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
757 error+= "\r\n* Trim";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
758 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
759
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
760 match = Regex.Match(content, "Weapons =\\s+{\\s+b = ([12]?[0-9]?[0-9]),\\s+g = ([12]?[0-9]?[0-9]),\\s+r = ([12]?[0-9]?[0-9]),");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
761 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
762 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
763 SetButtonColour(bttnWeapon, Color.FromArgb(byte.Parse(match.Groups[3].Value), byte.Parse(match.Groups[2].Value), byte.Parse(match.Groups[1].Value)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
764 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
765 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
766 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
767 error+= "\r\n* Weapon";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
768 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
769
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
770 match = Regex.Match(content, "Eyes =\\s+{\\s+b = ([12]?[0-9]?[0-9]),\\s+g = ([12]?[0-9]?[0-9]),\\s+r = ([12]?[0-9]?[0-9]),");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
771 if (match.Success)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
772 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
773 SetButtonColour(bttnTrim2, Color.FromArgb(byte.Parse(match.Groups[3].Value), byte.Parse(match.Groups[2].Value), byte.Parse(match.Groups[1].Value)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
774 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
775 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
776 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
777 error+= "\r\n* Trim 2/Eye";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
778 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
779
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
780 if (error!="")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
781 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
782 MessageBox.Show(this, "Invalid .teamcolour file - Error loading:"+error, "Import error");
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
783 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
784 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
785 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
786
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
787 private void bttnSave_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
788 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
789 setPrefs();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
790 pref.Save();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
791 bttnSave.Enabled = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
792 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
793
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
794 private void textbox_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
795 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
796 if (sender is TextBox)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
797 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
798 if(e.KeyData == (Keys.Control|Keys.A) && e.Control)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
799 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
800 ((TextBox)sender).SelectAll();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
801 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
802 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
803 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
804
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
805 private void setSaveEnabled()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
806 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
807 if (bttnOK.Enabled && (!folderMatches(txtDoWPath.Text, "DoWPath")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
808 || !folderMatches(txtTexturePath.Text, "TexturePath")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
809 || !folderMatches(txtTeamcolourPath.Text, "TeamcolourPath")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
810 || modeChanged() || !coloursMatch(bttnPrimary, "Primary")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
811 || !coloursMatch(bttnSecondary, "Secondary") || !coloursMatch(bttnTrim, "Trim")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
812 || !coloursMatch(bttnTrim2, "Eyes") || !coloursMatch(bttnWeapon, "Weapon")
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
813 || pbBadge.Tag.ToString()!=pref["BadgeName"].ToString()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
814 || pbBanner.Tag.ToString()!=pref["BannerName"].ToString()))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
815 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
816 bttnSave.Enabled = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
817 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
818 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
819 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
820 bttnSave.Enabled = pref.IsModified();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
821 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
822 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
823
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
824 private void txtDoWPath_Leave(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
825 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
826 textbox_Leave(sender, e);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
827
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
828 if (!foldersExist())
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
829 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
830 MessageBox.Show(this, "Could not find 'badges' and 'banners' folder in "+txtDoWPath.Text+"\r\nPlease check that it points to your Dawn of War/Dark Crusade installation folder", "Invalid path", MessageBoxButtons.OK, MessageBoxIcon.Error);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
831 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
832 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
833 private void textbox_Leave(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
834 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
835 if (sender is TextBox)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
836 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
837 TextBox tb = (TextBox)sender;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
838 if (!tb.Text.EndsWith(Path.DirectorySeparatorChar.ToString()))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
839 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
840 tb.Text = tb.Text + Path.DirectorySeparatorChar;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
841 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
842 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
843 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
844
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
845 private bool foldersExist()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
846 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
847 if (!txtDoWPath.Text.EndsWith(Path.DirectorySeparatorChar.ToString()))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
848 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
849 return (Directory.Exists(txtDoWPath.Text+Path.DirectorySeparatorChar+"Badges") &&
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
850 Directory.Exists(txtDoWPath.Text+Path.DirectorySeparatorChar+"Banners"));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
851 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
852 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
853 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
854 return (Directory.Exists(txtDoWPath.Text+"Badges") &&
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
855 Directory.Exists(txtDoWPath.Text+"Banners"));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
856 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
857 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
858
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
859 private bool folderMatches(string path, string prefID)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
860 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
861 if (!path.EndsWith(Path.DirectorySeparatorChar.ToString()))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
862 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
863 return (path.ToLower()+Path.DirectorySeparatorChar == pref[prefID].ToString().ToLower());
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
864 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
865 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
866 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
867 return (path.ToLower() == pref[prefID].ToString().ToLower());
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
868 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
869 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
870
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
871 private bool coloursMatch(Button bttn, string colourName)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
872 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
873 return (bttn.BackColor.R == (byte)pref[colourName+"Red"] && bttn.BackColor.G == (byte)pref[colourName+"Green"] && bttn.BackColor.B == (byte)pref[colourName+"Blue"]);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
874 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
875
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
876 private void setPrefs()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
877 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
878 pref["DoWPath"] = txtDoWPath.Text;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
879 pref["TeamcolourPath"] = txtTeamcolourPath.Text;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
880 pref["TexturePath"] = txtTexturePath.Text;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
881
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
882 pref["settingBasic"] = rbBasicMode.Checked;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
883
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
884 pref["PrimaryRed"] = bttnPrimary.BackColor.R;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
885 pref["PrimaryGreen"] = bttnPrimary.BackColor.G;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
886 pref["PrimaryBlue"] = bttnPrimary.BackColor.B;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
887 pref["SecondaryRed"] = bttnSecondary.BackColor.R;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
888 pref["SecondaryGreen"] = bttnSecondary.BackColor.G;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
889 pref["SecondaryBlue"] = bttnSecondary.BackColor.B;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
890 pref["TrimRed"] = bttnTrim.BackColor.R;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
891 pref["TrimGreen"] = bttnTrim.BackColor.G;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
892 pref["TrimBlue"] = bttnTrim.BackColor.B;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
893 pref["WeaponRed"] = bttnWeapon.BackColor.R;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
894 pref["WeaponGreen"] = bttnWeapon.BackColor.G;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
895 pref["WeaponBlue"] = bttnWeapon.BackColor.B;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
896 pref["EyesRed"] = bttnTrim2.BackColor.R;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
897 pref["EyesGreen"] = bttnTrim2.BackColor.G;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
898 pref["EyesBlue"] = bttnTrim2.BackColor.B;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
899
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
900 pref["BadgeName"] = pbBadge.Tag.ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
901 pref["BannerName"] = pbBanner.Tag.ToString();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
902 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
903
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
904 private void textbox_TextChanged(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
905 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
906 setOkayEnabled();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
907 setSaveEnabled();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
908 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
909
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
910 private void bttnTexturePath_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
911 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
912 setPath(txtTexturePath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
913 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
914
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
915 private void bttnTeamcolourPath_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
916 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
917 setPath(txtTeamcolourPath);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
918 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
919
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
920 private void setPath(TextBox textbox)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
921 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
922 folderBrowserDialog.SelectedPath = textbox.Text;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
923 DialogResult dr = folderBrowserDialog.ShowDialog(this);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
924
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
925 if (dr==DialogResult.OK)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
926 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
927 textbox.Text = folderBrowserDialog.SelectedPath + Path.DirectorySeparatorChar;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
928 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
929 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
930
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
931 private void setOkayEnabled()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
932 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
933 bool enabled = true;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
934
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
935 if (foldersExist())
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
936 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
937 txtDoWPath.ForeColor = SystemColors.WindowText;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
938 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
939 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
940 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
941 enabled = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
942 txtDoWPath.ForeColor = Color.Red;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
943 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
944
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
945 if (Directory.Exists(txtTexturePath.Text))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
946 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
947 txtTexturePath.ForeColor = SystemColors.WindowText;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
948 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
949 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
950 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
951 enabled = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
952 txtTexturePath.ForeColor = Color.Red;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
953 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
954
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
955 if (Directory.Exists(txtTeamcolourPath.Text))
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
956 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
957 txtTeamcolourPath.ForeColor = SystemColors.WindowText;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
958 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
959 else
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
960 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
961 enabled = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
962 txtTeamcolourPath.ForeColor = Color.Red;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
963 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
964
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
965 bttnOK.Enabled = enabled;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
966 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
967
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
968 private bool modeChanged()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
969 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
970 bool basicMode = (bool)pref["settingBasic"];
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
971 return ((rbAdvancedMode.Checked && basicMode) || (rbBasicMode.Checked && !basicMode));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
972 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
973
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
974 private void rbMode_CheckedChanged(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
975 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
976 setSaveEnabled();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
977 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
978 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
979 }