Mercurial > repos > RelicTools > PatternSwitcher
view 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 |
line wrap: on
line source
// This file is a part of the Pattern Switcher app and is copyright 2006-2018 IBBoard. // // 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. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace IBBoard.Relic.PatternSwitcher { /// <summary> /// Summary description for FrmHelp. /// </summary> public class FrmHelp : System.Windows.Forms.Form { private System.Windows.Forms.TextBox textBox1; /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null; private System.Windows.Forms.RichTextBox richTextBox1; private string helpText = @"{\rtf1\ansi\ansicpg1252\deff0\deftab709{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\lang1033\f0\fs20 Dawn of War Pattern Switcher\par \par \ul Using Pattern Switcher\par \ulnone\par Once the program is running, select a tab for a race, select a pattern for that race and click 'Import'.\par \par 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 \par 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 \par To save the current combination for the selected race, click 'Save loaded patterns' and choose a file name (with or without the extension).\par \par 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 \par 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 \par 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 \par 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 \par \lang2057\ul Hints\ulnone\par \par * 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 \par * 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 \par 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 \par \par \ul Troubleshooting\par \ulnone\par Known errors:\par \par '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 \par \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 \par 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 \par 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 \par \par \ul Distribution\par \ulnone\par Feel free to use this utility with your Dawn of War installation - thats what it is there for!\par \par 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 \par 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 \par \par \ul Legal\par \ulnone\par 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 \par 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 \par The application shouldn't really break anything (it's too simple) but legal disclaimers are legal disclaimers!\par }"; public FrmHelp() { // // Required for Windows Form Designer support // InitializeComponent(); richTextBox1.Rtf = helpText; } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmHelp)); this.textBox1 = new System.Windows.Forms.TextBox(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.SuspendLayout(); // // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.Control; this.textBox1.Location = new System.Drawing.Point(0, 0); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(272, 256); this.textBox1.TabIndex = 0; this.textBox1.Text = ""; // // richTextBox1 // this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.richTextBox1.Location = new System.Drawing.Point(0, 0); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.ReadOnly = true; this.richTextBox1.Size = new System.Drawing.Size(446, 272); this.richTextBox1.TabIndex = 1; this.richTextBox1.Text = ""; // // FrmHelp // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(442, 270); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.textBox1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FrmHelp"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Help"; this.ResumeLayout(false); } #endregion } }