MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CreateBuildTab

Function CreateBuildTab

Source/Editor/Windows/GameCookerWindow.cs:1217–1239  ·  view source on GitHub ↗
(Tabs sections)

Source from the content-addressed store, hash-verified

1215 }
1216
1217 private void CreateBuildTab(Tabs sections)
1218 {
1219 var tab = sections.AddTab(new Tab("Build"));
1220
1221 var platformSelector = new PlatformSelector
1222 {
1223 AnchorPreset = AnchorPresets.HorizontalStretchTop,
1224 BackgroundColor = Style.Current.LightBackground,
1225 Parent = tab,
1226 };
1227 platformSelector.SizeChanged += OnPlatformSelectorSizeChanged;
1228 var panel = new Panel(ScrollBars.Vertical)
1229 {
1230 AnchorPreset = AnchorPresets.StretchAll,
1231 Offsets = new Margin(0, 0, platformSelector.Offsets.Height, 0),
1232 Parent = tab,
1233 };
1234
1235 var settings = new CustomEditorPresenter(null);
1236 settings.Panel.Parent = panel;
1237 _buildTabProxy = new BuildTabProxy(this, platformSelector);
1238 settings.Select(_buildTabProxy);
1239 }
1240
1241 private void OnPlatformSelectorSizeChanged(Control platformSelector)
1242 {

Callers 1

Calls 2

AddTabMethod · 0.45
SelectMethod · 0.45

Tested by

no test coverage detected