in GameLiftPlugin/Source/GameLiftPlugin/Private/SMenu/EC2/SSelectDeploymentScenarioSection.cpp [251:342]
TSharedRef<SWidget> SSelectDeploymentScenarioSection::CreateDeploymentScenarioChoice()
{
TSharedRef<SVerticalBox> VerticalBox = SNew(SVerticalBox);
VerticalBox->AddSlot()
.AutoHeight()
.Padding(SPadding::Bottom)
[
SNew(SCheckBox)
.Style(FCoreStyle::Get(), "RadioButton")
.IsChecked(this, &SSelectDeploymentScenarioSection::IsRadioChecked, EDeploymentScenarioFleetChoice::SingleRegion)
.OnCheckStateChanged(this, &SSelectDeploymentScenarioSection::OnRadioChanged, EDeploymentScenarioFleetChoice::SingleRegion)
.Content()
[
SNew(STextBlock).Text(ScenarioNames[(int)EDeploymentScenarioFleetChoice::SingleRegion])
]
];
VerticalBox->AddSlot()
.AutoHeight()
.Padding(SPadding::Bottom2x)
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.FillWidth(5)
.HAlign(HAlign_Left)
[
SNew(SBox)
.Padding(SPadding::Left4x)
.WidthOverride(Style::kMessageTextBoxWidth)
[
SNew(STextBlock)
.Text(ScenarioDescriptions[(int)EDeploymentScenarioFleetChoice::SingleRegion])
.AutoWrapText(true)
]
]
+ SHorizontalBox::Slot()
.FillWidth(1)
.HAlign(HAlign_Left)
.Padding(SPadding::Left2x)
[
SNew(SOnlineHyperlink)
.Text(Menu::DeployManagedEC2::kDeploymentScenarioLearnMoreLinkText)
.Link(Url::kSingleRegionLearnMoreUrl)
]
];
VerticalBox->AddSlot()
.AutoHeight()
.Padding(SPadding::Bottom)
[
SNew(SCheckBox)
.Style(FCoreStyle::Get(), "RadioButton")
.IsChecked(this, &SSelectDeploymentScenarioSection::IsRadioChecked, EDeploymentScenarioFleetChoice::FlexMatch)
.OnCheckStateChanged(this, &SSelectDeploymentScenarioSection::OnRadioChanged, EDeploymentScenarioFleetChoice::FlexMatch)
.Content()
[
SNew(STextBlock).Text(ScenarioNames[(int)EDeploymentScenarioFleetChoice::FlexMatch])
]
];
VerticalBox->AddSlot()
.AutoHeight()
.Padding(SPadding::Bottom2x)
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.FillWidth(5)
.HAlign(HAlign_Left)
[
SNew(SBox)
.Padding(SPadding::Left4x)
.WidthOverride(Style::kMessageTextBoxWidth)
[
SNew(STextBlock)
.Text(ScenarioDescriptions[(int)EDeploymentScenarioFleetChoice::FlexMatch])
.AutoWrapText(true)
]
]
+ SHorizontalBox::Slot()
.FillWidth(1)
.HAlign(HAlign_Left)
.Padding(SPadding::Left2x)
[
SNew(SOnlineHyperlink)
.Text(Menu::DeployManagedEC2::kDeploymentScenarioLearnMoreLinkText)
.Link(Url::kFlexMatchLearnMoreUrl)
]
];
return VerticalBox;
}