mirror of
https://github.com/kwsch/pkNX.git
synced 2026-10-02 14:16:55 -05:00
Assign unique item names in editor (#278)
Fix item name duplicates causing the editor to switch between entries
This commit is contained in:
@@ -564,7 +564,10 @@ public void EditItems()
|
||||
var data = obj[0];
|
||||
var items = Item8a.GetArray(data);
|
||||
var cache = new DataCache<Item8a>(items);
|
||||
using var form = new GenericEditor<Item8a>(cache, ROM.GetStrings(TextName.ItemNames), "Item Editor");
|
||||
|
||||
var itemNames = ROM.GetStrings(TextName.ItemNames).Select((x, i) => $"{x} ({i})").ToArray();
|
||||
|
||||
using var form = new GenericEditor<Item8a>(cache, itemNames, "Item Editor");
|
||||
form.ShowDialog();
|
||||
if (!form.Modified)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user