How can I create a toggle button with slate?
By toggle button I mean a normal button which remains pressed after one click and returns normal after a second click (the style is toggled).
It seems that it can be done with SCheckbox, but I can't understand how. Here is what I have tried:
SNew(SCheckBox)
.Style(&FCoreStyle::Get().GetWidgetStyle< FCheckBoxStyle >("ToggleButton"))
[
SNew(STextBlock)
.Text(RadioText)
];