TSharedRef SBuildAndPushToECRSection::CreateShowCommandsUI()

in GameLiftPlugin/Source/GameLiftPlugin/Private/SMenu/Containers/SBuildAndPushToECRSection.cpp [414:573]


TSharedRef<SWidget> SBuildAndPushToECRSection::CreateShowCommandsUI()
{
	SAssignNew(Command1Box, SCopyPasteTextBox);
	SAssignNew(Command2Box, SCopyPasteTextBox);
	SAssignNew(Command3Box, SCopyPasteTextBox);
	SAssignNew(Command4Box, SCopyPasteTextBox);
	SetCommandText();
	TSharedRef<SVerticalBox> VerticalBox = SNew(SVerticalBox)
		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top_Bottom + SPadding::Right2x)
		[
			SNew(STextBlock)
				.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelperDescriptionPart1)
				.AutoWrapText(true)
				.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)
		]
		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top_Bottom + SPadding::Right2x)
		[
			SNew(STextBlock)
				.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelperDescriptionPart2)
				.AutoWrapText(true)
				.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)
		]
		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top_Bottom + SPadding::Right2x)
		[
			SNew(SOnlineHyperlink)
				.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelperLink)
				.Link(Url::kECRRegistryAuthenticationUrl)
		]

		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top2x_Bottom2x + SPadding::Right2x)
		[
			SNew(SExpandableArea)
				.AllowAnimatedTransition(false)
				.InitiallyCollapsed(false)
				.HeaderPadding(SPadding::Left2x_Right2x)
				.Padding(SPadding::ContentAreaLeftIndent + SPadding::Right2x + SPadding::Top2x + SPadding::Bottom)
				.BorderImage(FStyleDefaults::GetNoBrush())
				.BodyBorderImage(FStyleDefaults::GetNoBrush())
				.BorderBackgroundColor(FColor::Transparent)
				.BodyBorderBackgroundColor(FColor::Transparent)
				.HeaderContent()
				[
					SNew(STextBlock)
						.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelperHeader)
						.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kFieldBold)
				]
				.BodyContent()
				[
					SNew(SVerticalBox)
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							SNew(STextBlock)
								.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_Step1)
								.AutoWrapText(true)
								.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)

						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							Command1Box.ToSharedRef()
						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							SNew(STextBlock)
								.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_Step2)
								.AutoWrapText(true)
								.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)

						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							SNew(SOnlineHyperlink)
								.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_Step2Link)
								.Link(Url::kECSCreateContainerImageUrl)
						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							Command2Box.ToSharedRef()
						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							SNew(STextBlock)
								.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_Step3)
								.AutoWrapText(true)
								.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)

						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							Command3Box.ToSharedRef()
						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							SNew(STextBlock)
								.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_Step4)
								.AutoWrapText(true)
								.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)

						]
						+ SVerticalBox::Slot()
						.AutoHeight()
						.Padding(SPadding::Top_Bottom + SPadding::Right2x)
						[
							Command4Box.ToSharedRef()
						]
				]
		]
		
		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top_Bottom + SPadding::Right2x)
		[
			SNew(STextBlock)
				.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_ContinueText)
				.AutoWrapText(true)
				.TextStyle(FGameLiftPluginStyle::Get(), Style::Text::kParagraph)
		]
		+ SVerticalBox::Slot()
		.AutoHeight()
		.Padding(SPadding::Top_Bottom + SPadding::Right2x)
		[
			SNew(SBox)
				.WidthOverride(Style::kContainersContinueButtonWidth)
				.HeightOverride(Style::kContainersContinueButtonHeight)
				.VAlign(VAlign_Center)
				.HAlign(HAlign_Left)
				[
					SAssignNew(ContinueButton, SButton)
						.Text(Menu::DeployContainers::kBuildAndPushToECRDescription_CLIHelper_ContinueButtonText)
						.ButtonStyle(FGameLiftPluginStyle::Get(), Style::Button::kSuccessButtonStyleName)
						.OnClicked_Raw(this, &SBuildAndPushToECRSection::OnContinueButtonClicked_CLISteps)
				]
		];

	return VerticalBox;
}