Migrating back to WingProperty. Sigh.
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user