Migrating back to WingProperty. Sigh.

This commit is contained in:
2026-04-03 19:54:50 -04:00
parent 297586f351
commit b1a2813f05
6 changed files with 145 additions and 100 deletions

View File

@@ -4,7 +4,7 @@
#include "WingServer.h"
#include "WingHandler.h"
#include "WingFetcher.h"
#include "WingPropHandle.h"
#include "WingProperty.h"
#include "WingUtils.h"
#include "Details_Set.generated.h"
@@ -35,12 +35,11 @@ public:
UObject* Obj = F.Walk(Object).Cast<UObject>();
if (!Obj) return;
WingPropHandle Props;
WingPropHandle::Handles Handles = Props.GetDetails(Obj, true);
TSharedPtr<IPropertyHandle>* P = WingUtils::FindOneWithExternalID(Property, Handles, TEXT("Property"));
TArray<FWingProperty> Props = FWingProperty::GetDetailsMutable(Obj, CPF_Edit);
FWingProperty* P = WingUtils::FindOneWithExternalID(Property, Props, TEXT("Property"));
if (!P) return;
if (WingPropHandle::SetText(**P, Value))
if (P->SetText(Value))
UWingServer::Print(TEXT("OK\n"));
}
};