大概多语言框架
This commit is contained in:
parent
ba4085356e
commit
093926898e
@ -152,6 +152,12 @@ namespace AlicizaX.Localization.Editor
|
|||||||
ContextSelectedID = -1;
|
ContextSelectedID = -1;
|
||||||
Reload();
|
Reload();
|
||||||
});
|
});
|
||||||
|
menu.AddItem(new GUIContent("Copy"), false, () =>
|
||||||
|
{
|
||||||
|
CopyEntryToBiliboard(parentSection.Section, item.Item);
|
||||||
|
ContextSelectedID = -1;
|
||||||
|
Reload();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.ShowAsContext();
|
menu.ShowAsContext();
|
||||||
@ -428,6 +434,15 @@ namespace AlicizaX.Localization.Editor
|
|||||||
Reload();
|
Reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void CopyEntryToBiliboard(SheetSectionTreeView section, SheetItemTreeView sheetItem)
|
||||||
|
{
|
||||||
|
if (!HasFocus())
|
||||||
|
return;
|
||||||
|
string combineKey = $"{section.Name}.{sheetItem.Key}";
|
||||||
|
GUIUtility.systemCopyBuffer = combineKey;
|
||||||
|
}
|
||||||
|
|
||||||
private void DeleteLstrEntry(SheetSectionTreeView section, SheetItemTreeView sheetItem)
|
private void DeleteLstrEntry(SheetSectionTreeView section, SheetItemTreeView sheetItem)
|
||||||
{
|
{
|
||||||
if (!HasFocus())
|
if (!HasFocus())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user