Move icons out of InitializeComponent

cc9ff8022
This commit is contained in:
YoshiRulz 2019-12-11 06:58:53 +10:00
parent f900a1ba69
commit f309c831b3
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 11 additions and 5 deletions

View File

@ -322,7 +322,6 @@
// //
this.RecentSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.RecentSubMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSeparator3}); this.toolStripSeparator3});
this.RecentSubMenu.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Recent;
this.RecentSubMenu.Name = "RecentSubMenu"; this.RecentSubMenu.Name = "RecentSubMenu";
this.RecentSubMenu.Size = new System.Drawing.Size(190, 22); this.RecentSubMenu.Size = new System.Drawing.Size(190, 22);
this.RecentSubMenu.Text = "Recent"; this.RecentSubMenu.Text = "Recent";
@ -356,7 +355,6 @@
// //
this.recentMacrosToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.recentMacrosToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripSeparator22}); this.toolStripSeparator22});
this.recentMacrosToolStripMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Recent;
this.recentMacrosToolStripMenuItem.Name = "recentMacrosToolStripMenuItem"; this.recentMacrosToolStripMenuItem.Name = "recentMacrosToolStripMenuItem";
this.recentMacrosToolStripMenuItem.Size = new System.Drawing.Size(190, 22); this.recentMacrosToolStripMenuItem.Size = new System.Drawing.Size(190, 22);
this.recentMacrosToolStripMenuItem.Text = "Recent Macros"; this.recentMacrosToolStripMenuItem.Text = "Recent Macros";
@ -1182,7 +1180,6 @@
// //
// TASEditorManualOnlineMenuItem // TASEditorManualOnlineMenuItem
// //
this.TASEditorManualOnlineMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.Help;
this.TASEditorManualOnlineMenuItem.Name = "TASEditorManualOnlineMenuItem"; this.TASEditorManualOnlineMenuItem.Name = "TASEditorManualOnlineMenuItem";
this.TASEditorManualOnlineMenuItem.Size = new System.Drawing.Size(206, 22); this.TASEditorManualOnlineMenuItem.Size = new System.Drawing.Size(206, 22);
this.TASEditorManualOnlineMenuItem.Text = "TAS Editor Manual Online..."; this.TASEditorManualOnlineMenuItem.Text = "TAS Editor Manual Online...";
@ -1190,7 +1187,6 @@
// //
// ForumThreadMenuItem // ForumThreadMenuItem
// //
this.ForumThreadMenuItem.Image = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio;
this.ForumThreadMenuItem.Name = "ForumThreadMenuItem"; this.ForumThreadMenuItem.Name = "ForumThreadMenuItem";
this.ForumThreadMenuItem.Size = new System.Drawing.Size(206, 22); this.ForumThreadMenuItem.Size = new System.Drawing.Size(206, 22);
this.ForumThreadMenuItem.Text = "Forum Thread..."; this.ForumThreadMenuItem.Text = "Forum Thread...";
@ -1594,7 +1590,6 @@
this.Controls.Add(this.MainVertialSplit); this.Controls.Add(this.MainVertialSplit);
this.Controls.Add(this.TasStatusStrip); this.Controls.Add(this.TasStatusStrip);
this.Controls.Add(this.TASMenu); this.Controls.Add(this.TASMenu);
this.Icon = global::BizHawk.Client.EmuHawk.Properties.Resources.TAStudio_MultiSize;
this.KeyPreview = true; this.KeyPreview = true;
this.MainMenuStrip = this.TASMenu; this.MainMenuStrip = this.TASMenu;
this.MinimumSize = new System.Drawing.Size(200, 148); this.MinimumSize = new System.Drawing.Size(200, 148);

View File

@ -114,8 +114,19 @@ namespace BizHawk.Client.EmuHawk
public TAStudio() public TAStudio()
{ {
void SetImages()
{
RecentSubMenu.Image = Properties.Resources.Recent;
recentMacrosToolStripMenuItem.Image = Properties.Resources.Recent;
TASEditorManualOnlineMenuItem.Image = Properties.Resources.Help;
ForumThreadMenuItem.Image = Properties.Resources.TAStudio;
Icon = Properties.Resources.TAStudio_MultiSize;
}
Settings = new TAStudioSettings(); Settings = new TAStudioSettings();
InitializeComponent(); InitializeComponent();
SetImages();
InitializeSeekWorker(); InitializeSeekWorker();
_defaultMainSplitDistance = MainVertialSplit.SplitterDistance; _defaultMainSplitDistance = MainVertialSplit.SplitterDistance;