大概多语言框架
This commit is contained in:
parent
ba4085356e
commit
093926898e
@ -152,6 +152,12 @@ namespace AlicizaX.Localization.Editor
|
||||
ContextSelectedID = -1;
|
||||
Reload();
|
||||
});
|
||||
menu.AddItem(new GUIContent("Copy"), false, () =>
|
||||
{
|
||||
CopyEntryToBiliboard(parentSection.Section, item.Item);
|
||||
ContextSelectedID = -1;
|
||||
Reload();
|
||||
});
|
||||
}
|
||||
|
||||
menu.ShowAsContext();
|
||||
@ -428,6 +434,15 @@ namespace AlicizaX.Localization.Editor
|
||||
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)
|
||||
{
|
||||
if (!HasFocus())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user