Advertisement
Guest User

Simple Slate menu

a guest
Jun 3rd, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.94 KB | None | 0 0
  1. ChildSlot
  2.         .VAlign(VAlign_Fill)
  3.         .HAlign(HAlign_Fill)
  4.         [
  5.             SNew(SOverlay)
  6.             + SOverlay::Slot()
  7.             .VAlign(VAlign_Top)
  8.             .HAlign(HAlign_Left)
  9.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.6f, 0, 0))
  10.             [
  11.                 SNew(STextBlock)
  12.                 .ShadowColorAndOpacity(FLinearColor::Black)
  13.                 .ColorAndOpacity(FLinearColor::White)
  14.                 .ShadowOffset(FIntPoint(-1, 1))
  15.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  16.                 .Text(FText::FromString("Campaign"))
  17.             ]
  18.             + SOverlay::Slot()
  19.             .VAlign(VAlign_Top)
  20.             .HAlign(HAlign_Left)
  21.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.65f, 0, 0))
  22.             [
  23.                 SNew(STextBlock)
  24.                 .ShadowColorAndOpacity(FLinearColor::Black)
  25.                 .ColorAndOpacity(FLinearColor::White)
  26.                 .ShadowOffset(FIntPoint(-1, 1))
  27.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  28.                 .Text(FText::FromString("Wave Defense"))
  29.             ]
  30.             + SOverlay::Slot()
  31.             .VAlign(VAlign_Top)
  32.             .HAlign(HAlign_Left)
  33.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.7f, 0, 0))
  34.             [
  35.                 SNew(STextBlock)
  36.                 .ShadowColorAndOpacity(FLinearColor::Black)
  37.                 .ColorAndOpacity(FLinearColor::White)
  38.                 .ShadowOffset(FIntPoint(-1, 1))
  39.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  40.                 .Text(FText::FromString("Workshop"))
  41.             ]
  42.             + SOverlay::Slot()
  43.             .VAlign(VAlign_Top)
  44.             .HAlign(HAlign_Left)
  45.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.75f, 0, 0))
  46.             [
  47.                 SNew(STextBlock)
  48.                 .ShadowColorAndOpacity(FLinearColor::Black)
  49.                 .ColorAndOpacity(FLinearColor::White)
  50.                 .ShadowOffset(FIntPoint(-1, 1))
  51.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  52.                 .Text(FText::FromString("Unlocks"))
  53.             ]
  54.             + SOverlay::Slot()
  55.             .VAlign(VAlign_Top)
  56.             .HAlign(HAlign_Left)
  57.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.8f, 0, 0))
  58.             [
  59.                 SNew(STextBlock)
  60.                 .ShadowColorAndOpacity(FLinearColor::Black)
  61.                 .ColorAndOpacity(FLinearColor::White)
  62.                 .ShadowOffset(FIntPoint(-1, 1))
  63.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  64.                 .Text(FText::FromString("Options"))
  65.             ]
  66.             + SOverlay::Slot()
  67.             .VAlign(VAlign_Top)
  68.             .HAlign(HAlign_Left)
  69.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.85f, 0, 0))
  70.             [
  71.                 SNew(STextBlock)
  72.                 .ShadowColorAndOpacity(FLinearColor::Black)
  73.                 .ColorAndOpacity(FLinearColor::White)
  74.                 .ShadowOffset(FIntPoint(-1, 1))
  75.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  76.                 .Text(FText::FromString("Credits"))
  77.             ]
  78.             + SOverlay::Slot()
  79.             .VAlign(VAlign_Top)
  80.             .HAlign(HAlign_Left)
  81.             .Padding(FMargin(ViewportSize.X * 0.1f, ViewportSize.Y * 0.9f, 0, 0))
  82.             [
  83.                 SNew(STextBlock)
  84.                 .ShadowColorAndOpacity(FLinearColor::Black)
  85.                 .ColorAndOpacity(FLinearColor::White)
  86.                 .ShadowOffset(FIntPoint(-1, 1))
  87.                 .Font(FSlateFontInfo("Veranda", 16)) //Probably doesn't work
  88.                 .Text(FText::FromString("Exit"))
  89.             ]
  90.         ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement