26 lines
797 B
C++
26 lines
797 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "PanelWidget.hpp"
|
||
|
|
#include "PanelSlot.hpp"
|
||
|
|
|
||
|
|
namespace PalUIExtension::Api
|
||
|
|
{
|
||
|
|
class WrapBox : public PanelWidget
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static auto ClassPath() -> const TCHAR* { return STR("/Script/UMG.WrapBox"); }
|
||
|
|
static auto DebugTag() -> const TCHAR* { return STR("WrapBox"); }
|
||
|
|
|
||
|
|
WrapBox() = default;
|
||
|
|
explicit WrapBox(UObject* Obj)
|
||
|
|
: PanelWidget(Obj, ClassOf<WrapBox>(), DebugTag()) {}
|
||
|
|
|
||
|
|
auto AddChildToWrapBox(UObject* Content) -> PanelSlot
|
||
|
|
{
|
||
|
|
struct P { UObject* Content; UObject* ReturnValue; } p{ Content, nullptr };
|
||
|
|
auto Result = CallForReturn(STR("AddChildToWrapBox"), p, &P::ReturnValue);
|
||
|
|
return (Result && *Result) ? PanelSlot{ *Result } : PanelSlot{};
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|