public HalfBoxTester(bool[] VC, FontCharacter[] C) { InitializeComponent(); ValidCharacters = VC; Characters = C; CB_TB.Items.AddRange(new[] { "Standard", "Nohrian", "Hoshidan" }); CB_TB.SelectedIndex = 0; B_Reload_Click(null, null); }
public Form1() { InitializeComponent(); ValidCharacters = new bool[0x10000]; Characters = new FontCharacter[0x10000]; for (int i = 0; i < Resources.chars.Length / 0x10; i++) { FontCharacter fc = new FontCharacter(Resources.chars, i * 0x10); ValidCharacters[fc.Value] = true; fc.SetGlyph(Images[fc.IMG]); Characters[fc.Value] = fc; } Names = new Dictionary <string, string>(); string[] PIDs = Resources.PID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); foreach (string PID in PIDs) { var P = PID.Split(new[] { '\t' }); Names[P[0]] = P[1]; } FaceData = new Dictionary <string, byte[]>(); string[] FIDs = Resources.FID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < FIDs.Length; i++) { byte[] Dat = new byte[0x48]; Array.Copy(Resources.faces, i * 0x48, Dat, 0, 0x48); FaceData[FIDs[i]] = Dat; } ResourceSet set = Resources.ResourceManager.GetResourceSet(CultureInfo.CurrentCulture, true, true); foreach (DictionaryEntry o in set) { ResourceList.Add(o.Key as string); } Resources.ResourceManager.ReleaseAllResources(); CB_Kamui.Items.AddRange(new[] { "Male 1", "Male 2", "Female 1", "Female 2" }); CB_Eyes.Items.AddRange(new[] { "Style A", "Style B", "Style C", "Style D", "Style E", "Style F", "Style G" }); CB_TB.Items.AddRange(new[] { "Standard", "Nohrian", "Hoshidan" }); CB_HairStyle.Items.AddRange(Enumerable.Range(0, 12).Select(i => i.ToString("00")).ToArray()); CB_FacialFeature.Items.AddRange(new[] { "None", "Scratches", "Vertical Scratches", "Horizontal Scratches", "Tattoo 1", "Tattoo 2", "Tattoo 3", "Eye Mole", "Mouth Mole", "Plaster 1", "Plaster 2", "White Eyepatch", "Black Eyepatch" }); CB_Accessory.Items.AddRange(new[] { "None", "Silver Piece", "Butterfly", "Black Ribbon", "White Ribbon", "White Rose" }); CB_Kamui.SelectedIndex = CB_TB.SelectedIndex = CB_Eyes.SelectedIndex = CB_HairStyle.SelectedIndex = CB_FacialFeature.SelectedIndex = CB_Accessory.SelectedIndex = 0; MTB_HairColorA.Text = MTB_HairColorB.Text = "#5B5855"; BACKGROUND_IMAGE = Resources.SupportBG.Clone() as Bitmap; PB_TextBox.AllowDrop = true; PB_TextBox.DragEnter += PB_TextBox_DragEnter; PB_TextBox.DragDrop += PB_TextBox_DragDrop; B_Reload_Click(null, null); }
public Form1() { InitializeComponent(); ValidCharacters = new bool[0x10000]; Characters = new FontCharacter[0x10000]; for (int i = 0; i < Resources.chars.Length / 0x10; i++) { FontCharacter fc = new FontCharacter(Resources.chars, i * 0x10); ValidCharacters[fc.Value] = true; fc.SetGlyph(Images[fc.IMG]); Characters[fc.Value] = fc; } Names = new Dictionary<string, string>(); string[] PIDs = Resources.PID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); foreach (string PID in PIDs) { var P = PID.Split(new[] { '\t' }); Names[P[0]] = P[1]; } FaceData = new Dictionary<string, byte[]>(); string[] FIDs = Resources.FID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < FIDs.Length; i++) { byte[] Dat = new byte[0x48]; Array.Copy(Resources.faces, i * 0x48, Dat, 0, 0x48); FaceData[FIDs[i]] = Dat; } System.Resources.ResourceSet set = Resources.ResourceManager.GetResourceSet(System.Globalization.CultureInfo.CurrentCulture, true, true); foreach (System.Collections.DictionaryEntry o in set) ResourceList.Add(o.Key as string); Resources.ResourceManager.ReleaseAllResources(); CB_Kamui.Items.AddRange(new[] { "Male 1", "Male 2", "Female 1", "Female 2" }); CB_Eyes.Items.AddRange(new[] { "Style A", "Style B", "Style C", "Style D", "Style E", "Style F", "Style G" }); CB_TB.Items.AddRange(new[] { "Standard", "Nohrian", "Hoshidan" }); CB_HairStyle.Items.AddRange(Enumerable.Range(0, 12).Select(i => i.ToString("00")).ToArray()); CB_Kamui.SelectedIndex = CB_TB.SelectedIndex = CB_Eyes.SelectedIndex = CB_HairStyle.SelectedIndex = 0; MTB_HairColorA.Text = MTB_HairColorB.Text = "#5B5855"; B_Reload_Click(null, null); }
public Form1() { InitializeComponent(); ValidCharacters = new bool[0x10000]; Characters = new FontCharacter[0x10000]; for (int i = 0; i < Resources.chars.Length / 0x10; i++) { FontCharacter fc = new FontCharacter(Resources.chars, i * 0x10); ValidCharacters[fc.Value] = true; fc.SetGlyph(Images[fc.IMG]); Characters[fc.Value] = fc; } Names = new Dictionary<string, string>(); string[] PIDs = Resources.PID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); foreach (string PID in PIDs) { var P = PID.Split(new[] { '\t' }); Names[P[0]] = P[1]; } FaceData = new Dictionary<string, byte[]>(); string[] FIDs = Resources.FID.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < FIDs.Length; i++) { byte[] Dat = new byte[0x48]; Array.Copy(Resources.faces, i * 0x48, Dat, 0, 0x48); FaceData[FIDs[i]] = Dat; } ResourceSet set = Resources.ResourceManager.GetResourceSet(CultureInfo.CurrentCulture, true, true); foreach (DictionaryEntry o in set) ResourceList.Add(o.Key as string); Resources.ResourceManager.ReleaseAllResources(); CB_Kamui.Items.AddRange(new[] { "Male 1", "Male 2", "Female 1", "Female 2" }); CB_Eyes.Items.AddRange(new[] { "Style A", "Style B", "Style C", "Style D", "Style E", "Style F", "Style G" }); CB_TB.Items.AddRange(new[] { "Standard", "Nohrian", "Hoshidan" }); CB_HairStyle.Items.AddRange(Enumerable.Range(0, 12).Select(i => i.ToString("00")).ToArray()); CB_FacialFeature.Items.AddRange(new[]{"None", "Scratches", "Vertical Scratches", "Horizontal Scratches", "Tattoo 1", "Tattoo 2", "Tattoo 3", "Eye Mole", "Mouth Mole", "Plaster 1", "Plaster 2", "White Eyepatch", "Black Eyepatch"}); CB_Accessory.Items.AddRange(new[] { "None", "Silver Piece", "Butterfly", "Black Ribbon", "White Ribbon", "White Rose"}); CB_Kamui.SelectedIndex = CB_TB.SelectedIndex = CB_Eyes.SelectedIndex = CB_HairStyle.SelectedIndex = CB_FacialFeature.SelectedIndex = CB_Accessory.SelectedIndex = 0; MTB_HairColorA.Text = MTB_HairColorB.Text = "#5B5855"; BACKGROUND_IMAGE = Resources.SupportBG.Clone() as Bitmap; PB_TextBox.AllowDrop = true; PB_TextBox.DragEnter += PB_TextBox_DragEnter; PB_TextBox.DragDrop += PB_TextBox_DragDrop; B_Reload_Click(null, null); }