Mercurial > repos > RelicTools > PatternSwitcher
comparison FrmHelp.cs @ 0:a70d6ce73a0e default tip
Initial commit under GPLv3
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 06 Oct 2018 20:07:03 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a70d6ce73a0e |
---|---|
1 // This file is a part of the Pattern Switcher app and is copyright 2006-2018 IBBoard. | |
2 // | |
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. | |
4 using System; | |
5 using System.Drawing; | |
6 using System.Collections; | |
7 using System.ComponentModel; | |
8 using System.Windows.Forms; | |
9 | |
10 namespace IBBoard.Relic.PatternSwitcher | |
11 { | |
12 /// <summary> | |
13 /// Summary description for FrmHelp. | |
14 /// </summary> | |
15 public class FrmHelp : System.Windows.Forms.Form | |
16 { | |
17 private System.Windows.Forms.TextBox textBox1; | |
18 /// <summary> | |
19 /// Required designer variable. | |
20 /// </summary> | |
21 private System.ComponentModel.Container components = null; | |
22 private System.Windows.Forms.RichTextBox richTextBox1; | |
23 private string helpText = @"{\rtf1\ansi\ansicpg1252\deff0\deftab709{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}} | |
24 {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang1033\f0\fs20 Dawn of War Pattern Switcher\par | |
25 \par | |
26 \ul Using Pattern Switcher\par | |
27 \ulnone\par | |
28 Once the program is running, select a tab for a race, select a pattern for that race and click 'Import'.\par | |
29 \par | |
30 If you have several different patterns that you want to run at the same time for one race (e.g. a modified default Space Marine plus a modified Marine Captain with special cloak) then click instead 'Import and Merge'.\par | |
31 \par | |
32 If you want to revert back to the original patterns for a race, click 'Remove Imported' with the race's tab selected. Please note that this will remove _all_ .WTP\lang2057 and .RSH\lang1033 files in that race's folder, so be caseful when using \lang2057 SGA extractors \lang1033 to extract and work on your own \lang2057 texture\lang1033 files!\par | |
33 \par | |
34 To save the current combination for the selected race, click 'Save loaded patterns' and choose a file name (with or without the extension).\par | |
35 \par | |
36 To load a previously saved combination of patterns, click 'File'>'Load Patterns' and select the .dwp file. Note: you must still have the .wtp files in the folders they were in, otherwise the load will fail.\par | |
37 \par | |
38 To refresh the list of existing patterns (if you have just downloaded a new \lang2057 texture set\lang1033 and added a new folder) click 'File'>'Refresh List'.\par | |
39 \par | |
40 To start a game with the currently installed patter\lang2057 n\lang1033 s, click the \lang2057 appropriate game's button in the 'Launch' area.\lang1033\par | |
41 \par | |
42 To edit your configuration (so that you can change game or pattern storage directories) click '\lang2057 Edit\lang1033 '>'Configuration'. Deleting or editing folder mappings without knowing what you're doing can cause the Pattern Switcher to fail to be able to load textures for that race.\par | |
43 \par | |
44 \lang2057\ul Hints\ulnone\par | |
45 \par | |
46 * If you have Dawn of War and Dark Crusade or Soulstorm installed then use the 'Save As' and 'Load' buttons to load multiple profiles. You can also create specific shortcuts with '--pref /path/to/preferences/file' to load a specific set of preferences. \par | |
47 \par | |
48 * Any combination of Dawn of War, Dark Crusade and Soulstorm can share a common patterns path (generally '[game path]\\Patterns' by default) so that you don't have to duplicate patterns to import them in to both games then set the Dawn of War and Dark Crusade pattern paths to the same folder in the Configuration editor. Each game will keep its own list of loaded patterns. \par | |
49 \par | |
50 Note: If you do share the path between multiple games, the Pattern Switcher will load the patterns into whichever game folder is specified. It will not stop you loading, for example, Tau/Necron textures into the original Dawn of War.\lang1033\par | |
51 \par | |
52 \par | |
53 \ul Troubleshooting\par | |
54 \ulnone\par | |
55 Known errors:\par | |
56 \par | |
57 'file already exists' message when saving, even though a file can't be seen - this is a known error, and is a limitation of .Net. The saving dialog only shows .dwp files, but it doesn't stop you adding an extension of another type (e.g. .txt). A .dwp extension is then forcefully added if it doesn't exists, so the 'phantom file' will not be overwritten as the dialog warned.\par | |
58 \par | |
59 \lang2057 'The application failed to initialize properly (0xc0000135). Click OK to termintate the application' - This error only occurs if you do not have the .Net Framework (v1.1) installed on your computer. Please go to http://msdn.microsoft.com/netframework/downloads/framework1_1/ for instructions on how to download and install the framework.\lang1033\par | |
60 \par | |
61 If you have any problems, please email me at dowtools@ibboard.co.uk with as much information as you can about the error and what you were doing, and I will look into it.\par | |
62 \par | |
63 Please note that you need a .Net compatable framework to run this application. Later builds may be created that include the required framework code within the build, but it requires a special type of compiler that I do not have access to.\par | |
64 \par | |
65 \par | |
66 \ul Distribution\par | |
67 \ulnone\par | |
68 Feel free to use this utility with your Dawn of War installation - thats what it is there for!\par | |
69 \par | |
70 Don't redistribute this file in any way - either in part or in whole. Only IBBoard, Hive World Terra (www.hiveworldterra.co.uk) and Skins@HWT (skins.hiveworldterra.co.uk) have that right. The author retains the right to add other sites to the list of allowed hosts, and any new 'official' hosts will be listed on Skins@HWT.\par | |
71 \par | |
72 If you feel that the tool is good enough, please feel free to link to the site (not directly to the download) and email me about your link.\par | |
73 \par | |
74 \par | |
75 \ul Legal\par | |
76 \ulnone\par | |
77 I don't have a copy of a legal disclaimed available to copy at the moment, but all of the usual applies. In summary (for all those who haven't read a software disclaimer before):\par | |
78 \par | |
79 You're using this program of your own free will, it may not do what you expect, it might not work at all, it might break your Dawn of War install and none of it is my fault.\par | |
80 \par | |
81 The application shouldn't really break anything (it's too simple) but legal disclaimers are legal disclaimers!\par | |
82 }"; | |
83 public FrmHelp() | |
84 { | |
85 // | |
86 // Required for Windows Form Designer support | |
87 // | |
88 InitializeComponent(); | |
89 | |
90 richTextBox1.Rtf = helpText; | |
91 } | |
92 | |
93 /// <summary> | |
94 /// Clean up any resources being used. | |
95 /// </summary> | |
96 protected override void Dispose( bool disposing ) | |
97 { | |
98 if( disposing ) | |
99 { | |
100 if(components != null) | |
101 { | |
102 components.Dispose(); | |
103 } | |
104 } | |
105 base.Dispose( disposing ); | |
106 } | |
107 | |
108 #region Windows Form Designer generated code | |
109 /// <summary> | |
110 /// Required method for Designer support - do not modify | |
111 /// the contents of this method with the code editor. | |
112 /// </summary> | |
113 private void InitializeComponent() | |
114 { | |
115 System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmHelp)); | |
116 this.textBox1 = new System.Windows.Forms.TextBox(); | |
117 this.richTextBox1 = new System.Windows.Forms.RichTextBox(); | |
118 this.SuspendLayout(); | |
119 // | |
120 // textBox1 | |
121 // | |
122 this.textBox1.BackColor = System.Drawing.SystemColors.Control; | |
123 this.textBox1.Location = new System.Drawing.Point(0, 0); | |
124 this.textBox1.Multiline = true; | |
125 this.textBox1.Name = "textBox1"; | |
126 this.textBox1.Size = new System.Drawing.Size(272, 256); | |
127 this.textBox1.TabIndex = 0; | |
128 this.textBox1.Text = ""; | |
129 // | |
130 // richTextBox1 | |
131 // | |
132 this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |
133 | System.Windows.Forms.AnchorStyles.Left) | |
134 | System.Windows.Forms.AnchorStyles.Right))); | |
135 this.richTextBox1.Location = new System.Drawing.Point(0, 0); | |
136 this.richTextBox1.Name = "richTextBox1"; | |
137 this.richTextBox1.ReadOnly = true; | |
138 this.richTextBox1.Size = new System.Drawing.Size(446, 272); | |
139 this.richTextBox1.TabIndex = 1; | |
140 this.richTextBox1.Text = ""; | |
141 // | |
142 // FrmHelp | |
143 // | |
144 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | |
145 this.ClientSize = new System.Drawing.Size(442, 270); | |
146 this.Controls.Add(this.richTextBox1); | |
147 this.Controls.Add(this.textBox1); | |
148 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); | |
149 this.Name = "FrmHelp"; | |
150 this.ShowInTaskbar = false; | |
151 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; | |
152 this.Text = "Help"; | |
153 this.ResumeLayout(false); | |
154 | |
155 } | |
156 #endregion | |
157 } | |
158 } |