Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this->ChildSlot
- [
- + SVerticalBox::Slot().AutoHeight().Padding(10) // Transformation
- [
- SNew(SBorder).Padding(FMargin(3)).BorderImage(FEditorStyle::GetBrush("ToolPanel.GroupBorder"))
- [
- SNew(SHorizontalBox)
- + SHorizontalBox::Slot().AutoWidth()
- [
- SNew(STextBlock).TextStyle(FCoreStyle::Get(), "")
- .Text(NSLOCTEXT("FTextImportPluginModule", "ParseBPLabel", "Parser")).ColorAndOpacity(FLinearColor(1, 1, 1, 0.8))
- ]
- + SHorizontalBox::Slot().AutoWidth()
- [
- SNew(SUniformGridPanel).SlotPadding(2)
- + SUniformGridPanel::Slot(1, 0)
- [
- SNew(SNumericEntryBox <float>) // X
- .AllowSpin(true)
- .MinValue(-180)
- .MaxValue(180)
- .MinSliderValue(-180)
- .MaxSliderValue(180)
- .Value(0)
- .OnValueChanged(this, &STextOptionsWindow::AssetChanged)
- ]
- + SUniformGridPanel::Slot(2, 0)
- + SUniformGridPanel::Slot(3, 0)
- ]
- ]
- ]
- + SVerticalBox::Slot().AutoHeight().Padding(10) // Cancel/Import
- [
- SNew(SUniformGridPanel).SlotPadding(2)
- + SUniformGridPanel::Slot(2, 0)
- [
- SAssignNew(ImportButton, SButton)
- .HAlign(HAlign_Center)
- .Text(NSLOCTEXT("FTextImportPluginModule", "ImportLabel", "Import"))
- .IsEnabled(this, &STextOptionsWindow::CanImport)
- .OnClicked(this, &STextOptionsWindow::OnImport)
- ]
- + SUniformGridPanel::Slot(3, 0)
- [
- SNew(SButton)
- .HAlign(HAlign_Center)
- .Text(NSLOCTEXT("FTextImportPluginModule", "CancelLabel", "Cancel"))
- .OnClicked(this, &STextOptionsWindow::OnCancel)
- ]
- ]
- ];
Advertisement
Add Comment
Please, Sign In to add comment