antidamage

Untitled

Aug 22nd, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.55 KB | None | 0 0
  1. this->ChildSlot
  2.     [
  3.         + SVerticalBox::Slot().AutoHeight().Padding(10) // Transformation
  4.         [
  5.             SNew(SBorder).Padding(FMargin(3)).BorderImage(FEditorStyle::GetBrush("ToolPanel.GroupBorder"))
  6.             [
  7.                 SNew(SHorizontalBox)
  8.                 + SHorizontalBox::Slot().AutoWidth()
  9.                 [
  10.                     SNew(STextBlock).TextStyle(FCoreStyle::Get(), "")
  11.                     .Text(NSLOCTEXT("FTextImportPluginModule", "ParseBPLabel", "Parser")).ColorAndOpacity(FLinearColor(1, 1, 1, 0.8))
  12.                 ]
  13.                 + SHorizontalBox::Slot().AutoWidth()
  14.                 [
  15.                     SNew(SUniformGridPanel).SlotPadding(2)
  16.                     + SUniformGridPanel::Slot(1, 0)
  17.                     [
  18.                         SNew(SNumericEntryBox <float>) // X
  19.                         .AllowSpin(true)
  20.                         .MinValue(-180)
  21.                         .MaxValue(180)
  22.                         .MinSliderValue(-180)
  23.                         .MaxSliderValue(180)
  24.                         .Value(0)
  25.                         .OnValueChanged(this, &STextOptionsWindow::AssetChanged)
  26.                     ]
  27.                     + SUniformGridPanel::Slot(2, 0)
  28.                     + SUniformGridPanel::Slot(3, 0)
  29.                 ]
  30.             ]
  31.         ]
  32.         + SVerticalBox::Slot().AutoHeight().Padding(10) // Cancel/Import
  33.         [
  34.             SNew(SUniformGridPanel).SlotPadding(2)
  35.             + SUniformGridPanel::Slot(2, 0)
  36.             [
  37.                 SAssignNew(ImportButton, SButton)
  38.                 .HAlign(HAlign_Center)
  39.                 .Text(NSLOCTEXT("FTextImportPluginModule", "ImportLabel", "Import"))
  40.                 .IsEnabled(this, &STextOptionsWindow::CanImport)
  41.                 .OnClicked(this, &STextOptionsWindow::OnImport)
  42.             ]
  43.             + SUniformGridPanel::Slot(3, 0)
  44.             [
  45.                 SNew(SButton)
  46.                 .HAlign(HAlign_Center)
  47.                 .Text(NSLOCTEXT("FTextImportPluginModule", "CancelLabel", "Cancel"))
  48.                 .OnClicked(this, &STextOptionsWindow::OnCancel)
  49.             ]
  50.         ]
  51.     ];
Advertisement
Add Comment
Please, Sign In to add comment