Current state.

This commit is contained in:
Ottermandias 2025-09-28 12:40:27 +02:00
parent 07cae987da
commit ce949fe709
2 changed files with 7 additions and 1 deletions

2
Luna

@ -1 +1 @@
Subproject commit 0e9fdb2bbfb02d76468a3f968b07289664d90808 Subproject commit be965fc152dea611f6a952c5afb2047f0cb89dc2

View file

@ -54,6 +54,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
if (_oldCollection is not null) if (_oldCollection is not null)
Im.Text(!_oldCollection.HasValue ? "Created" : _oldCollection.ToString()!); Im.Text(!_oldCollection.HasValue ? "Created" : _oldCollection.ToString()!);
table.NextRow();
table.DrawColumn(GetCollectionsByIdentifier.Label); table.DrawColumn(GetCollectionsByIdentifier.Label);
table.DrawColumn("Collection Identifier"u8); table.DrawColumn("Collection Identifier"u8);
var collectionList = new GetCollectionsByIdentifier(pi).Invoke(_collectionIdString); var collectionList = new GetCollectionsByIdentifier(pi).Invoke(_collectionIdString);
@ -93,6 +94,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
table.DrawColumn(GetCollections.Label); table.DrawColumn(GetCollections.Label);
table.DrawColumn("Collections"u8); table.DrawColumn("Collections"u8);
DrawCollectionPopup(); DrawCollectionPopup();
table.NextColumn();
if (Im.Button("Get##Collections"u8)) if (Im.Button("Get##Collections"u8))
{ {
_collections = new GetCollections(pi).Invoke(); _collections = new GetCollections(pi).Invoke();
@ -108,6 +110,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
table.DrawColumn(SetCollection.Label); table.DrawColumn(SetCollection.Label);
table.DrawColumn("Set Special Collection"u8); table.DrawColumn("Set Special Collection"u8);
table.NextColumn();
if (Im.Button("Set##SpecialCollection"u8)) if (Im.Button("Set##SpecialCollection"u8))
(_returnCode, _oldCollection) = (_returnCode, _oldCollection) =
new SetCollection(pi).Invoke(_type, _collectionId.GetValueOrDefault(Guid.Empty), _allowCreation, _allowDeletion); new SetCollection(pi).Invoke(_type, _collectionId.GetValueOrDefault(Guid.Empty), _allowCreation, _allowDeletion);
@ -117,6 +120,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
table.DrawColumn(SetCollectionForObject.Label); table.DrawColumn(SetCollectionForObject.Label);
table.DrawColumn("Set Object Collection"u8); table.DrawColumn("Set Object Collection"u8);
table.NextColumn();
if (Im.Button("Set##ObjectCollection"u8)) if (Im.Button("Set##ObjectCollection"u8))
(_returnCode, _oldCollection) = new SetCollectionForObject(pi).Invoke(_objectIdx, _collectionId.GetValueOrDefault(Guid.Empty), (_returnCode, _oldCollection) = new SetCollectionForObject(pi).Invoke(_objectIdx, _collectionId.GetValueOrDefault(Guid.Empty),
_allowCreation, _allowDeletion); _allowCreation, _allowDeletion);
@ -127,6 +131,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
table.DrawColumn(GetChangedItemsForCollection.Label); table.DrawColumn(GetChangedItemsForCollection.Label);
table.DrawColumn("Changed Item List"u8); table.DrawColumn("Changed Item List"u8);
DrawChangedItemPopup(); DrawChangedItemPopup();
table.NextColumn();
if (Im.Button("Get##ChangedItems"u8)) if (Im.Button("Get##ChangedItems"u8))
{ {
var items = new GetChangedItemsForCollection(pi).Invoke(_collectionId.GetValueOrDefault(Guid.Empty)); var items = new GetChangedItemsForCollection(pi).Invoke(_collectionId.GetValueOrDefault(Guid.Empty));
@ -187,6 +192,7 @@ public class CollectionsIpcTester(IDalamudPluginInterface pi) : Luna.IUiService
private static void DrawCollection(Im.TableDisposable table, (Guid Id, string Name)? collection) private static void DrawCollection(Im.TableDisposable table, (Guid Id, string Name)? collection)
{ {
table.NextColumn();
if (collection == null) if (collection == null)
{ {
Im.Text("<Unassigned>"u8); Im.Text("<Unassigned>"u8);