Game Development Reference
In-Depth Information
private void MaterialPreview_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
ToggleSelection();
}
else if (e.Button == MouseButtons.Right)
{
if (_container != null)
_container.PerformRightClicked(this);
}
}
private void MaterialPreview_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (_container != null)
_container.PerformActivated(this);
}
}
Figure 26.1 shows the texture thumbnail control shown in the designer. There are
two labels for the filename and dimensions, as well as a picture box in the middle
to display the resized image.
Figure 26.1 Screenshot of the thumbnail control in design mode.
Search Nedrilad ::




Custom Search