mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-08-19 08:29:19 +08:00
RPF Explorer export XML for .cut files, list context menu bug fix
This commit is contained in:
parent
f9bda5835a
commit
54a3c1fc71
@ -1199,6 +1199,7 @@ namespace CodeWalker
|
|||||||
case FileTypeAction.ViewYmap:
|
case FileTypeAction.ViewYmap:
|
||||||
case FileTypeAction.ViewYtyp:
|
case FileTypeAction.ViewYtyp:
|
||||||
case FileTypeAction.ViewJPso:
|
case FileTypeAction.ViewJPso:
|
||||||
|
case FileTypeAction.ViewCut:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -1532,6 +1533,7 @@ namespace CodeWalker
|
|||||||
bool canexportxml = false;
|
bool canexportxml = false;
|
||||||
bool canextract = false;
|
bool canextract = false;
|
||||||
bool canimport = EditMode && (CurrentFolder?.RpfFolder != null) && !issearch;
|
bool canimport = EditMode && (CurrentFolder?.RpfFolder != null) && !issearch;
|
||||||
|
bool cancreate = EditMode && !issearch;
|
||||||
bool canedit = false;
|
bool canedit = false;
|
||||||
|
|
||||||
if (item != null)
|
if (item != null)
|
||||||
@ -1556,10 +1558,10 @@ namespace CodeWalker
|
|||||||
ListContextExtractRawMenu.Enabled = canextract;
|
ListContextExtractRawMenu.Enabled = canextract;
|
||||||
ListContextExtractUncompressedMenu.Enabled = isfile;
|
ListContextExtractUncompressedMenu.Enabled = isfile;
|
||||||
|
|
||||||
ListContextNewMenu.Visible = EditMode;
|
ListContextNewMenu.Visible = cancreate;
|
||||||
ListContextImportRawMenu.Visible = canimport;
|
ListContextImportRawMenu.Visible = canimport;
|
||||||
ListContextImportXmlMenu.Visible = canimport;
|
ListContextImportXmlMenu.Visible = canimport;
|
||||||
ListContextImportSeparator.Visible = EditMode;
|
ListContextImportSeparator.Visible = cancreate;
|
||||||
|
|
||||||
ListContextCopyMenu.Enabled = isfile;
|
ListContextCopyMenu.Enabled = isfile;
|
||||||
ListContextCopyPathMenu.Enabled = isitem;
|
ListContextCopyPathMenu.Enabled = isitem;
|
||||||
@ -2260,8 +2262,9 @@ namespace CodeWalker
|
|||||||
//an RPF file was imported. add its structure to the UI!
|
//an RPF file was imported. add its structure to the UI!
|
||||||
var rootpath = GetRootPath();
|
var rootpath = GetRootPath();
|
||||||
var tnf = CreateRpfTreeFolder(newrpf, newrpf.Path, rootpath + newrpf.Path);
|
var tnf = CreateRpfTreeFolder(newrpf, newrpf.Path, rootpath + newrpf.Path);
|
||||||
if (CurrentFolder.Children != null) //make sure any existing (replaced!) one is removed first!
|
if (CurrentFolder.Children != null)
|
||||||
{
|
{
|
||||||
|
//make sure any existing (replaced!) one is removed first!
|
||||||
foreach (var child in CurrentFolder.Children)
|
foreach (var child in CurrentFolder.Children)
|
||||||
{
|
{
|
||||||
if (child.Path == tnf.Path)
|
if (child.Path == tnf.Path)
|
||||||
|
Loading…
Reference in New Issue
Block a user