大概多语言框架

This commit is contained in:
陈思海 2025-09-23 12:13:03 +08:00
parent ba4085356e
commit 093926898e

View File

@ -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())