Ejemplo n.º 1
0
            public BuildTabProxy(GameCookerWindow win, PlatformSelector platformSelector)
            {
                GameCookerWin = win;
                Selector = platformSelector;

                PerPlatformOptions[PlatformType.Windows].Init("Output/Windows", "Win");
                PerPlatformOptions[PlatformType.XboxOne].Init("Output/XboxOne", "XboxOne");
                PerPlatformOptions[PlatformType.WindowsStore].Init("Output/WindowsStore", "UWP");
            }
Ejemplo n.º 2
0
            public BuildTabProxy(GameCookerWindow win, PlatformSelector platformSelector)
            {
                GameCookerWin = win;
                Selector      = platformSelector;

                // TODO: restore build settings from the Editor cache!
                PerPlatformOptions[PlatformType.Windows].Output      = "Output/Windows";
                PerPlatformOptions[PlatformType.XboxOne].Output      = "Output/XboxOne";
                PerPlatformOptions[PlatformType.WindowsStore].Output = "Output/WindowsStore";
            }
Ejemplo n.º 3
0
            public TargetsColumn(GameCookerWindow cooker)
                : base(false, cooker.AddTarget)
            {
                _cooker = cooker;

                var height     = 26;
                var helpButton = new Button
                {
                    Text        = "Help",
                    Bounds      = new Rectangle(6, Height - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                // TODO: update link to game cooker docs
                helpButton.Clicked += () => Application.StartProcess("http://docs.flaxengine.com/manual/index.html");
                var buildAllButton = new Button
                {
                    Text        = "Build All",
                    Bounds      = new Rectangle(6, helpButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                buildAllButton.Clicked += _cooker.BuildAllTargets;
                var buildButton = new Button
                {
                    Text        = "Build",
                    Bounds      = new Rectangle(6, buildAllButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                buildButton.Clicked += _cooker.BuildTarget;
                var discardButton = new Button
                {
                    Text        = "Discard",
                    Bounds      = new Rectangle(6, buildButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                discardButton.Clicked += _cooker.GatherData;
                var saveButton = new Button
                {
                    Text        = "Save",
                    Bounds      = new Rectangle(6, discardButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                saveButton.Clicked += _cooker.SaveData;
            }
Ejemplo n.º 4
0
            public TargetsColumn(ContainerControl parent, GameCookerWindow cooker)
                : base(parent, cooker, false, cooker.AddTarget)
            {
                _cooker = cooker;

                var height     = 26;
                var helpButton = new Button
                {
                    Text         = "Help",
                    Parent       = this,
                    AnchorPreset = AnchorPresets.BottomLeft,
                    Bounds       = new Rectangle(6, Height - height, Width - 12, 22),
                };

                helpButton.Clicked += () => Platform.OpenUrl(Constants.DocsUrl + "manual/editor/game-cooker/");
                var buildAllButton = new Button
                {
                    Text         = "Build All",
                    Parent       = this,
                    AnchorPreset = AnchorPresets.BottomLeft,
                    Bounds       = new Rectangle(6, helpButton.Top - height, Width - 12, 22),
                };

                buildAllButton.Clicked += _cooker.BuildAllTargets;
                var buildButton = new Button
                {
                    Text         = "Build",
                    Parent       = this,
                    AnchorPreset = AnchorPresets.BottomLeft,
                    Bounds       = new Rectangle(6, buildAllButton.Top - height, Width - 12, 22),
                };

                buildButton.Clicked += _cooker.BuildTarget;
                var discardButton = new Button
                {
                    Text         = "Discard",
                    Parent       = this,
                    AnchorPreset = AnchorPresets.BottomLeft,
                    Bounds       = new Rectangle(6, buildButton.Top - height, Width - 12, 22),
                };

                discardButton.Clicked += _cooker.GatherData;
                var saveButton = new Button
                {
                    Text         = "Save",
                    Parent       = this,
                    AnchorPreset = AnchorPresets.BottomLeft,
                    Bounds       = new Rectangle(6, discardButton.Top - height, Width - 12, 22),
                };

                saveButton.Clicked += _cooker.SaveData;
            }
Ejemplo n.º 5
0
            public TargetsColumn(GameCookerWindow cooker)
                : base(false, cooker.AddTarget)
            {
                _cooker = cooker;

                var height     = 26;
                var helpButton = new Button
                {
                    Text        = "Help",
                    Bounds      = new Rectangle(6, Height - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                helpButton.Clicked += () => Application.StartProcess(Constants.DocsUrl + "manual/editor/game-cooker/");
                var buildAllButton = new Button
                {
                    Text        = "Build All",
                    Bounds      = new Rectangle(6, helpButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                buildAllButton.Clicked += _cooker.BuildAllTargets;
                var buildButton = new Button
                {
                    Text        = "Build",
                    Bounds      = new Rectangle(6, buildAllButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                buildButton.Clicked += _cooker.BuildTarget;
                var discardButton = new Button
                {
                    Text        = "Discard",
                    Bounds      = new Rectangle(6, buildButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                discardButton.Clicked += _cooker.GatherData;
                var saveButton = new Button
                {
                    Text        = "Save",
                    Bounds      = new Rectangle(6, discardButton.Top - height, Width - 12, 22),
                    AnchorStyle = AnchorStyle.BottomLeft,
                    Parent      = this,
                };

                saveButton.Clicked += _cooker.SaveData;
            }
Ejemplo n.º 6
0
            public BuildTabProxy(GameCookerWindow win, PlatformSelector platformSelector)
            {
                GameCookerWin = win;
                Selector      = platformSelector;

                PerPlatformOptions[PlatformType.Windows].Init("Output/Windows", "Windows");
                PerPlatformOptions[PlatformType.XboxOne].Init("Output/XboxOne", "XboxOne");
                PerPlatformOptions[PlatformType.UWP].Init("Output/UWP", "UWP");
                PerPlatformOptions[PlatformType.Linux].Init("Output/Linux", "Linux");
                PerPlatformOptions[PlatformType.PS4].Init("Output/PS4", "PS4");
                PerPlatformOptions[PlatformType.XboxScarlett].Init("Output/XboxScarlett", "XboxScarlett");
                PerPlatformOptions[PlatformType.Android].Init("Output/Android", "Android");
            }
Ejemplo n.º 7
0
            protected PresetsTargetsColumnBase(ContainerControl parent, GameCookerWindow cooker, bool isPresets, Action addClicked)
            {
                AnchorPreset = AnchorPresets.VerticalStretchLeft;
                Parent       = parent;
                Offsets      = new Margin(isPresets ? 0 : 140, 140, 0, 0);

                _cooker = cooker;
                var title = new Label
                {
                    Bounds = new Rectangle(0, 0, Width, 19),
                    Text   = isPresets ? "Presets" : "Targets",
                    Parent = this,
                };
                var addButton = new Button
                {
                    Text   = isPresets ? "New preset" : "Add target",
                    Bounds = new Rectangle(6, 22, Width - 12, title.Bottom),
                    Parent = this,
                };

                addButton.Clicked += addClicked;
            }
Ejemplo n.º 8
0
 public PresetsColumn(GameCookerWindow cooker)
     : base(true, cooker.AddPreset)
 {
     _cooker = cooker;
 }
Ejemplo n.º 9
0
 public PresetsColumn(ContainerControl parent, GameCookerWindow cooker)
     : base(parent, cooker, true, cooker.AddPreset)
 {
     _cooker = cooker;
 }