Remove toolbar debug pixel button

This commit is contained in:
baldurk
2014-09-24 13:32:07 +01:00
parent 2966bfeb79
commit 082a8afb9b
2 changed files with 2 additions and 15 deletions
-13
View File
@@ -120,7 +120,6 @@
this.toolstripsPanel = new System.Windows.Forms.FlowLayoutPanel();
this.actionsStrip = new System.Windows.Forms.ToolStrip();
this.saveTex = new System.Windows.Forms.ToolStripButton();
this.debugPixel = new System.Windows.Forms.ToolStripButton();
this.texListShow = new System.Windows.Forms.ToolStripButton();
this.texlistContainer = new System.Windows.Forms.TableLayoutPanel();
this.textureList = new renderdocui.Controls.TextureListBox();
@@ -964,7 +963,6 @@
this.actionsStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
toolStripLabel1,
this.saveTex,
this.debugPixel,
this.texListShow});
this.actionsStrip.Location = new System.Drawing.Point(0, 25);
this.actionsStrip.Margin = new System.Windows.Forms.Padding(0, 0, 12, 0);
@@ -983,16 +981,6 @@
this.saveTex.Text = "Save Selected Texture";
this.saveTex.Click += new System.EventHandler(this.saveTex_Click);
//
// debugPixel
//
this.debugPixel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.debugPixel.Image = global::renderdocui.Properties.Resources.wrench;
this.debugPixel.ImageTransparentColor = System.Drawing.Color.Magenta;
this.debugPixel.Name = "debugPixel";
this.debugPixel.Size = new System.Drawing.Size(23, 22);
this.debugPixel.Text = "Debug Pixel";
this.debugPixel.Click += new System.EventHandler(this.debugPixel_Click);
//
// texListShow
//
this.texListShow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
@@ -1405,7 +1393,6 @@
private System.Windows.Forms.ToolStripContainer renderToolstripContainer;
private System.Windows.Forms.TableLayoutPanel pixelContextPanel;
private System.Windows.Forms.Button debugPixelContext;
private System.Windows.Forms.ToolStripButton debugPixel;
private System.Windows.Forms.TableLayoutPanel texlistContainer;
private System.Windows.Forms.ToolStripStatusLabel hoverSwatch;
private System.Windows.Forms.ToolStripMenuItem openNewTab;
+2 -2
View File
@@ -1312,7 +1312,7 @@ namespace renderdocui.Windows
{
if (value == true)
{
debugPixel.Enabled = debugPixelContext.Enabled = true;
debugPixelContext.Enabled = true;
toolTip.RemoveAll();
toolTip.SetToolTip(debugPixelContext, "Debug this pixel");
toolTip.SetToolTip(pixelHistory, "Show history for this pixel");
@@ -1324,7 +1324,7 @@ namespace renderdocui.Windows
m_CurPixelValue = null;
m_CurRealValue = null;
debugPixel.Enabled = debugPixelContext.Enabled = false;
debugPixelContext.Enabled = false;
toolTip.RemoveAll();
toolTip.SetToolTip(debugPixelContext, "Right Click to choose a pixel");
toolTip.SetToolTip(pixelHistory, "Right Click to choose a pixel");