initial commit; cv 0.0.3
This commit is contained in:
27
Api/VerticalBox.hpp
Normal file
27
Api/VerticalBox.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "PanelWidget.hpp"
|
||||
#include "VerticalBoxSlot.hpp"
|
||||
|
||||
namespace PalUIExtension::Api
|
||||
{
|
||||
// UVerticalBox : public UPanelWidget directly -- same shape as
|
||||
// Overlay / HorizontalBox.
|
||||
class VerticalBox : public PanelWidget
|
||||
{
|
||||
public:
|
||||
static auto ClassPath() -> const TCHAR* { return STR("/Script/UMG.VerticalBox"); }
|
||||
static auto DebugTag() -> const TCHAR* { return STR("VerticalBox"); }
|
||||
|
||||
VerticalBox() = default;
|
||||
explicit VerticalBox(UObject* Obj)
|
||||
: PanelWidget(Obj, ClassOf<VerticalBox>(), DebugTag()) {}
|
||||
|
||||
auto AddChildToVerticalBox(UObject* Content) -> VerticalBoxSlot
|
||||
{
|
||||
struct P { UObject* Content; UObject* ReturnValue; } p{ Content, nullptr };
|
||||
auto Result = CallForReturn(STR("AddChildToVerticalBox"), p, &P::ReturnValue);
|
||||
return (Result && *Result) ? VerticalBoxSlot{ *Result } : VerticalBoxSlot{};
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user