mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-14 02:54:16 -04:00
Add copy function to assetListView
This commit is contained in:
@ -29,6 +29,7 @@ namespace AssetStudioGUI
|
||||
private AssetItem lastSelectedItem;
|
||||
private AssetItem lastLoadedAsset;
|
||||
private Bitmap imageTexture;
|
||||
private string tempClipboard;
|
||||
|
||||
private FMOD.System system;
|
||||
private FMOD.Sound sound;
|
||||
@ -1198,10 +1199,16 @@ namespace AssetStudioGUI
|
||||
}
|
||||
}
|
||||
|
||||
tempClipboard = assetListView.HitTest(new Point(e.X, e.Y)).SubItem.Text;
|
||||
contextMenuStrip1.Show(assetListView, e.X, e.Y);
|
||||
}
|
||||
}
|
||||
|
||||
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.SetDataObject(tempClipboard);
|
||||
}
|
||||
|
||||
private void exportSelectedAssetsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ExportAssets(2, ExportType.Convert);
|
||||
|
Reference in New Issue
Block a user