From d7e528aff7b84a4dfaa6a20d9d89c94fc3f71f75 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Mon, 12 Aug 2024 01:30:20 +0200 Subject: [PATCH] CemuPanel - Add icons for skin-& texture-packs --- PCK-Studio/Forms/Features/CemuPanel.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PCK-Studio/Forms/Features/CemuPanel.cs b/PCK-Studio/Forms/Features/CemuPanel.cs index 3c7bc387..b89fa199 100644 --- a/PCK-Studio/Forms/Features/CemuPanel.cs +++ b/PCK-Studio/Forms/Features/CemuPanel.cs @@ -23,6 +23,7 @@ using System.Windows.Forms; using PckStudio.Extensions; using PckStudio.Internal.Misc; using System.Diagnostics; +using PckStudio.Properties; namespace PckStudio.Forms.Features { @@ -40,6 +41,12 @@ namespace PckStudio.Forms.Features public CemuPanel() { InitializeComponent(); + var imgList = new ImageList(); + imgList.ColorDepth = ColorDepth.Depth32Bit; + imgList.ImageSize = new System.Drawing.Size(28, 28); + imgList.Images.Add(Resources.SKIN_ICON); + imgList.Images.Add(Resources.TEXTURE_ICON); + DLCTreeView.ImageList = imgList; if (!TryApplyPermanentCemuConfig() && MessageBox.Show(this, "Failed to get Cemu perma settings\nDo you want to open your local settings.xml file?", "Cemu mlc path not found", @@ -223,8 +230,10 @@ namespace PckStudio.Forms.Features { if (directoryInfo.GetFileSystemInfos().Length != 0) { + DLCDirectoryInfo dlcDirectoryInfo = new DLCDirectoryInfo(directoryInfo); TreeNode node = DLCTreeView.Nodes.Add(directoryInfo.Name); - node.Tag = new DLCDirectoryInfo(directoryInfo); + node.ImageIndex = dlcDirectoryInfo.HasTexturePack ? 1 : 0; + node.Tag = dlcDirectoryInfo; } } }