Hello,
I have created a new button in the editor menu. The button spawns a tab windown. In the tab window I want to have alot of checkboxes. When I click on checkbox, I want to spawn some text fields and some button beneath it. If i click it again (set it to false) i want these things to disappear. I tried to create something like but stuck here:
+ SScrollBox::Slot()
.VAlign(VAlign_Top)
.Padding(5)
[
SNew(SBorder)
.BorderBackgroundColor(FColor(192, 192, 192, 255))
.Padding(15.0f)
[
SNew(SButton)
.VAlign(VAlign_Center)
.HAlign(HAlign_Left)
.Text(FText::FromString(TEXT("Time")))
.ToolTipText(FText::FromString(TEXT("Click this to setup time!")))
.OnClicked_Lambda([]()
{
UE_LOG(LogTemp, Error, TEXT("Button Time Clicked!"));
return FReply::Handled();
})
]
,
SNew(SButton)
.VAlign(VAlign_Center)
.HAlign(HAlign_Left)
.Text(FText::FromString(TEXT("Time")))
.ToolTipText(FText::FromString(TEXT("Click this to setup time!")))
.OnClicked_Lambda([]()
{
UE_LOG(LogTemp, Error, TEXT("Button Time Clicked!"));
return FReply::Handled();
})
]
The thing is that when I compile this , it says: comma operator within array index expression…
I really dont know what the problem is…
Any ideas? Also do you have any good tutorials,examples on how to create editors? Because I havent find anything…