6#include "Components/HorizontalBox.h"
7#include "Components/HorizontalBoxSlot.h"
8#include "Components/CanvasPanelSlot.h"
9#include "Blueprint/WidgetTree.h"
13 Super::NativePreConstruct();
21 Super::NativeConstruct();
33 UCanvasPanelSlot* indicatorSlot = Cast<UCanvasPanelSlot>(
TabIndicator->Slot);
36 indicatorSlot->SetSize(
TabSize);
62 for (int32 i = 0; i <
TabLabels.Num(); ++i)
78 UHorizontalBoxSlot* slot =
TabContainer->AddChildToHorizontalBox(newButton);
82 slot->SetHorizontalAlignment(HAlign_Fill);
83 slot->SetVerticalAlignment(VAlign_Fill);
84 slot->SetSize(FSlateChildSize(ESlateSizeRule::Fill));