Пример #1
0
        public override bool OnStart(IScriptEngine se)
        {
            Game.Sync(() =>
            {
                var screenSize = Game.ScreenSize;

                _panel = Factories.CreateGuiPanel();
                GuiScene.Add(_panel);
                _panel.SetSize(500, 500);
                _panel.SetPosition(185, screenSize.Y - 280, 0);
                _panel.SetAnchor(new Vector2f(0.0f, 0.0f), new Vector2f(0.0f, 0.0f));

                var label = Factories.CreateGuiLabel();
                _panel.Add(label);
                label.SetPosition(-60, 175, 0);
                label.SetText("Options");
                label.SetSize(100, 25);

                _checkESPActivatedPlayers = Factories.CreateGuiCheckBox();
                _panel.Add(_checkESPActivatedPlayers);
                _checkESPActivatedPlayers.SetPosition(-70, 155, 0);
                _checkESPActivatedPlayers.SetText("ESP Players");
                _checkESPActivatedPlayers.SetSize(50, 25);

                _checkESPActivatedResources = Factories.CreateGuiCheckBox();
                _panel.Add(_checkESPActivatedResources);
                _checkESPActivatedResources.SetPosition(-70, 135, 0);
                _checkESPActivatedResources.SetText("ESP Resources");
                _checkESPActivatedResources.SetSize(50, 25);

                _checkResOre = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResOre);
                _checkResOre.SetPosition(-50, 115, 0);
                _checkResOre.SetText("Ore");
                _checkResOre.SetSize(50, 25);

                _checkResFiber = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResFiber);
                _checkResFiber.SetPosition(-50, 95, 0);
                _checkResFiber.SetText("Fiber");
                _checkResFiber.SetSize(50, 25);

                _checkResTree = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResTree);
                _checkResTree.SetPosition(-50, 75, 0);
                _checkResTree.SetText("Tree");
                _checkResTree.SetSize(50, 25);

                _checkResStone = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResStone);
                _checkResStone.SetPosition(-50, 55, 0);
                _checkResStone.SetText("Stone");
                _checkResStone.SetSize(50, 25);

                _checkResLeather = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResLeather);
                _checkResLeather.SetPosition(-50, 35, 0);
                _checkResLeather.SetText("Leather");
                _checkResLeather.SetSize(50, 25);

                _checkT2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT2);
                _checkT2.SetPosition(30, 115, 0);
                _checkT2.SetText("T2");
                _checkT2.SetSize(50, 25);

                _checkT3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT3);
                _checkT3.SetPosition(30, 95, 0);
                _checkT3.SetText("T3");
                _checkT3.SetSize(50, 25);

                _checkT4 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4);
                _checkT4.SetPosition(30, 75, 0);
                _checkT4.SetText("T4");
                _checkT4.SetSize(50, 25);

                _checkT4_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_1);
                _checkT4_1.SetPosition(50, 55, 0);
                _checkT4_1.SetText("T4.1");
                _checkT4_1.SetSize(50, 25);

                _checkT4_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_2);
                _checkT4_2.SetPosition(50, 35, 0);
                _checkT4_2.SetText("T4.2");
                _checkT4_2.SetSize(50, 25);

                _checkT4_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_3);
                _checkT4_3.SetPosition(50, 15, 0);
                _checkT4_3.SetText("T4.3");
                _checkT4_3.SetSize(50, 25);

                _checkT5 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5);
                _checkT5.SetPosition(30, -5, 0);
                _checkT5.SetText("T5");
                _checkT5.SetSize(50, 25);

                _checkT5_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_1);
                _checkT5_1.SetPosition(50, -25, 0);
                _checkT5_1.SetText("T5.1");
                _checkT5_1.SetSize(50, 25);

                _checkT5_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_2);
                _checkT5_2.SetPosition(50, -45, 0);
                _checkT5_2.SetText("T5.2");
                _checkT5_2.SetSize(50, 25);

                _checkT5_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_3);
                _checkT5_3.SetPosition(50, -65, 0);
                _checkT5_3.SetText("T5.3");
                _checkT5_3.SetSize(50, 25);

                _checkT6 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6);
                _checkT6.SetPosition(30, -85, 0);
                _checkT6.SetText("T6");
                _checkT6.SetSize(50, 25);

                _checkT6_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_1);
                _checkT6_1.SetPosition(50, -105, 0);
                _checkT6_1.SetText("T6.1");
                _checkT6_1.SetSize(50, 25);

                _checkT6_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_2);
                _checkT6_2.SetPosition(50, -125, 0);
                _checkT6_2.SetText("T6.2");
                _checkT6_2.SetSize(50, 25);

                _checkT6_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_3);
                _checkT6_3.SetPosition(50, -145, 0);
                _checkT6_3.SetText("T6.3");
                _checkT6_3.SetSize(50, 25);

                _checkT7 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7);
                _checkT7.SetPosition(30, -175, 0);
                _checkT7.SetText("T7");
                _checkT7.SetSize(50, 25);

                _checkT7_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_1);
                _checkT7_1.SetPosition(50, -195, 0);
                _checkT7_1.SetText("T7.1");
                _checkT7_1.SetSize(50, 25);

                _checkT7_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_2);
                _checkT7_2.SetPosition(50, -215, 0);
                _checkT7_2.SetText("T7.2");
                _checkT7_2.SetSize(50, 25);

                _checkT7_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_3);
                _checkT7_3.SetPosition(50, -235, 0);
                _checkT7_3.SetText("T7.3");
                _checkT7_3.SetSize(50, 25);

                _checkT8 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8);
                _checkT8.SetPosition(30, -255, 0);
                _checkT8.SetText("T8");
                _checkT8.SetSize(50, 25);

                _checkT8_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_1);
                _checkT8_1.SetPosition(50, -275, 0);
                _checkT8_1.SetText("T8.1");
                _checkT8_1.SetSize(50, 25);

                _checkT8_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_2);
                _checkT8_2.SetPosition(50, -295, 0);
                _checkT8_2.SetText("T8.2");
                _checkT8_2.SetSize(50, 25);

                _checkT8_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_3);
                _checkT8_3.SetPosition(50, -315, 0);
                _checkT8_3.SetText("T8.3");
                _checkT8_3.SetSize(50, 25);

                var button = Factories.CreateGuiButton();
                _panel.Add(button);
                button.SetPosition(30, -350, 0);
                button.SetText("Accept");
                button.SetSize(100, 45);
                button.AddActionListener((e) =>
                {
                    _configuration.ESPActivatedPlayers   = _checkESPActivatedPlayers.IsSelected();
                    _configuration.ESPActivatedResources = _checkESPActivatedResources.IsSelected();
                    _configuration.ResOre     = _checkResOre.IsSelected();
                    _configuration.ResFiber   = _checkResFiber.IsSelected();
                    _configuration.ResStone   = _checkResStone.IsSelected();
                    _configuration.ResTree    = _checkResTree.IsSelected();
                    _configuration.ResLeather = _checkResLeather.IsSelected();
                    _configuration.ResT2      = _checkT2.IsSelected();
                    _configuration.ResT3      = _checkT3.IsSelected();
                    _configuration.ResT4      = _checkT4.IsSelected();
                    _configuration.ResT4_1    = _checkT4_1.IsSelected();
                    _configuration.ResT4_2    = _checkT4_2.IsSelected();
                    _configuration.ResT4_3    = _checkT4_3.IsSelected();
                    _configuration.ResT5_1    = _checkT5_1.IsSelected();
                    _configuration.ResT5_2    = _checkT5_2.IsSelected();
                    _configuration.ResT5_3    = _checkT5_3.IsSelected();
                    _configuration.ResT6_1    = _checkT6_1.IsSelected();
                    _configuration.ResT6_2    = _checkT6_2.IsSelected();
                    _configuration.ResT6_3    = _checkT6_3.IsSelected();
                    _configuration.ResT7_1    = _checkT7_1.IsSelected();
                    _configuration.ResT7_2    = _checkT7_2.IsSelected();
                    _configuration.ResT7_3    = _checkT7_3.IsSelected();
                    _configuration.ResT8_1    = _checkT8_1.IsSelected();
                    _configuration.ResT8_2    = _checkT8_2.IsSelected();
                    _configuration.ResT8_3    = _checkT8_3.IsSelected();

                    _panel.Destroy();

                    parent.EnterState("work");
                });
            });

            Logging.Log("Menu loaded", LogLevel.Info);

            return(base.OnStart(se));
        }
Пример #2
0
        public override bool OnStart(IScriptEngine se)
        {
            Game.Sync(() =>
            {
                var screenSize = Game.ScreenSize;

                _panel = Factories.CreateGuiPanel();
                GuiScene.Add(_panel);
                _panel.SetSize(500, 600);
                _panel.SetPosition(Convert.ToInt32(screenSize.X * 0.5), Convert.ToInt32(screenSize.Y * 0.5), 0);
                _panel.SetAnchor(new Vector2f(0.0f, 0.0f), new Vector2f(0.0f, 0.0f));

                var label = Factories.CreateGuiLabel();
                _panel.Add(label);
                label.SetPosition(0, 275, 0);
                label.SetText("Options");
                label.SetSize(100, 25);

                _checkESPActivatedPlayers = Factories.CreateGuiCheckBox();
                _panel.Add(_checkESPActivatedPlayers);
                _checkESPActivatedPlayers.SetPosition(-200, 255, 0);
                _checkESPActivatedPlayers.SetText("ESP Players");
                _checkESPActivatedPlayers.SetSize(50, 25);

                _checkESPActivatedResources = Factories.CreateGuiCheckBox();
                _panel.Add(_checkESPActivatedResources);
                _checkESPActivatedResources.SetPosition(-200, 235, 0);
                _checkESPActivatedResources.SetText("ESP Resources");
                _checkESPActivatedResources.SetSize(50, 25);

                _checkResOre = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResOre);
                _checkResOre.SetPosition(-150, 215, 0);
                _checkResOre.SetText("Ore");
                _checkResOre.SetSize(50, 25);

                _checkResFiber = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResFiber);
                _checkResFiber.SetPosition(-150, 195, 0);
                _checkResFiber.SetText("Fiber");
                _checkResFiber.SetSize(50, 25);

                _checkResTree = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResTree);
                _checkResTree.SetPosition(-150, 175, 0);
                _checkResTree.SetText("Tree");
                _checkResTree.SetSize(50, 25);

                _checkResStone = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResStone);
                _checkResStone.SetPosition(-150, 155, 0);
                _checkResStone.SetText("Stone");
                _checkResStone.SetSize(50, 25);

                _checkResLeather = Factories.CreateGuiCheckBox();
                _panel.Add(_checkResLeather);
                _checkResLeather.SetPosition(-150, 135, 0);
                _checkResLeather.SetText("Leather");
                _checkResLeather.SetSize(50, 25);

                _checkT2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT2);
                _checkT2.SetPosition(30, 215, 0);
                _checkT2.SetText("T2");
                _checkT2.SetSize(50, 25);

                _checkT3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT3);
                _checkT3.SetPosition(30, 195, 0);
                _checkT3.SetText("T3");
                _checkT3.SetSize(50, 25);

                _checkT4 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4);
                _checkT4.SetPosition(30, 175, 0);
                _checkT4.SetText("T4");
                _checkT4.SetSize(50, 25);

                _checkT4_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_1);
                _checkT4_1.SetPosition(50, 155, 0);
                _checkT4_1.SetText("T4.1");
                _checkT4_1.SetSize(50, 25);

                _checkT4_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_2);
                _checkT4_2.SetPosition(50, 135, 0);
                _checkT4_2.SetText("T4.2");
                _checkT4_2.SetSize(50, 25);

                _checkT4_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT4_3);
                _checkT4_3.SetPosition(50, 115, 0);
                _checkT4_3.SetText("T4.3");
                _checkT4_3.SetSize(50, 25);

                _checkT5 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5);
                _checkT5.SetPosition(30, 95, 0);
                _checkT5.SetText("T5");
                _checkT5.SetSize(50, 25);

                _checkT5_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_1);
                _checkT5_1.SetPosition(50, 75, 0);
                _checkT5_1.SetText("T5.1");
                _checkT5_1.SetSize(50, 25);

                _checkT5_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_2);
                _checkT5_2.SetPosition(50, 55, 0);
                _checkT5_2.SetText("T5.2");
                _checkT5_2.SetSize(50, 25);

                _checkT5_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT5_3);
                _checkT5_3.SetPosition(50, 35, 0);
                _checkT5_3.SetText("T5.3");
                _checkT5_3.SetSize(50, 25);

                _checkT6 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6);
                _checkT6.SetPosition(30, 15, 0);
                _checkT6.SetText("T6");
                _checkT6.SetSize(50, 25);

                _checkT6_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_1);
                _checkT6_1.SetPosition(50, -5, 0);
                _checkT6_1.SetText("T6.1");
                _checkT6_1.SetSize(50, 25);

                _checkT6_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_2);
                _checkT6_2.SetPosition(50, -25, 0);
                _checkT6_2.SetText("T6.2");
                _checkT6_2.SetSize(50, 25);

                _checkT6_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT6_3);
                _checkT6_3.SetPosition(50, -45, 0);
                _checkT6_3.SetText("T6.3");
                _checkT6_3.SetSize(50, 25);

                _checkT7 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7);
                _checkT7.SetPosition(30, -65, 0);
                _checkT7.SetText("T7");
                _checkT7.SetSize(50, 25);

                _checkT7_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_1);
                _checkT7_1.SetPosition(50, -85, 0);
                _checkT7_1.SetText("T7.1");
                _checkT7_1.SetSize(50, 25);

                _checkT7_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_2);
                _checkT7_2.SetPosition(50, -105, 0);
                _checkT7_2.SetText("T7.2");
                _checkT7_2.SetSize(50, 25);

                _checkT7_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT7_3);
                _checkT7_3.SetPosition(50, -125, 0);
                _checkT7_3.SetText("T7.3");
                _checkT7_3.SetSize(50, 25);

                _checkT8 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8);
                _checkT8.SetPosition(30, -145, 0);
                _checkT8.SetText("T8");
                _checkT8.SetSize(50, 25);

                _checkT8_1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_1);
                _checkT8_1.SetPosition(50, -165, 0);
                _checkT8_1.SetText("T8.1");
                _checkT8_1.SetSize(50, 25);

                _checkT8_2 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_2);
                _checkT8_2.SetPosition(50, -185, 0);
                _checkT8_2.SetText("T8.2");
                _checkT8_2.SetSize(50, 25);

                _checkT8_3 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkT8_3);
                _checkT8_3.SetPosition(50, -205, 0);
                _checkT8_3.SetText("T8.3");
                _checkT8_3.SetSize(50, 25);

                _checkOnlyShowMorethan1 = Factories.CreateGuiCheckBox();
                _panel.Add(_checkOnlyShowMorethan1);
                _checkOnlyShowMorethan1.SetPosition(-100, -225, 0);
                _checkOnlyShowMorethan1.SetText("Only show harvestables with more than 1 charge");
                _checkOnlyShowMorethan1.SetSize(250, 25);

                var button = Factories.CreateGuiButton();
                _panel.Add(button);
                button.SetPosition(0, -270, 0);
                button.SetText("Accept");
                button.SetSize(100, 45);
                button.AddActionListener((e) =>
                {
                    _configuration.ESPActivatedPlayers   = _checkESPActivatedPlayers.IsSelected();
                    _configuration.ESPActivatedResources = _checkESPActivatedResources.IsSelected();

                    var list = new List <ResourceType>();
                    list.Add(ResourceType.Coins);
                    if (_checkResOre.IsSelected())
                    {
                        list.Add(ResourceType.Ore);
                    }
                    if (_checkResFiber.IsSelected())
                    {
                        list.Add(ResourceType.Fiber);
                    }
                    if (_checkResStone.IsSelected())
                    {
                        list.Add(ResourceType.Rock);
                    }
                    if (_checkResTree.IsSelected())
                    {
                        list.Add(ResourceType.Wood);
                    }
                    if (_checkResLeather.IsSelected())
                    {
                        list.Add(ResourceType.Hide);
                    }

                    _configuration.Resources = list.ToArray();
                    if (_checkT2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("2.0");
                    }
                    if (_checkT3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("3.0");
                    }
                    if (_checkT4.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("4.0");
                    }
                    if (_checkT4_1.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("4.1");
                    }
                    if (_checkT4_2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("4.2");
                    }
                    if (_checkT4_3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("4.3");
                    }
                    if (_checkT5.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("5.0");
                    }
                    if (_checkT5_1.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("5.1");
                    }
                    if (_checkT5_2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("5.2");
                    }
                    if (_checkT5_3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("5.3");
                    }
                    if (_checkT4.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("6.0");
                    }
                    if (_checkT4_1.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("6.1");
                    }
                    if (_checkT4_2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("6.2");
                    }
                    if (_checkT4_3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("6.3");
                    }
                    if (_checkT7.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("7.0");
                    }
                    if (_checkT7_1.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("7.1");
                    }
                    if (_checkT7_2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("7.2");
                    }
                    if (_checkT7_3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("7.3");
                    }
                    if (_checkT8.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("8.0");
                    }
                    if (_checkT8_1.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("8.1");
                    }
                    if (_checkT8_2.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("8.2");
                    }
                    if (_checkT8_3.IsSelected())
                    {
                        _configuration.TierAndRarity.Add("8.3");
                    }

                    _configuration.OnlyResourcesWithMoreThan1 = _checkOnlyShowMorethan1.IsSelected();

                    _panel.Destroy();

                    parent.EnterState("work");
                });
            });

            Logging.Log("Menu loaded", LogLevel.Info);

            return(base.OnStart(se));
        }
Пример #3
0
        public override bool OnStart(IScriptEngine se)
        {
            context.State = "Configuring...";

            Game.Sync(() =>
            {
                var screenSize = Game.ScreenSize;

                primaryPanel = Factories.CreateGuiPanel();
                GuiScene.Add(primaryPanel);
                primaryPanel.SetSize(300, 320);
                primaryPanel.SetPosition(155, (screenSize.Y / 2), 0);
                primaryPanel.SetAnchor(new Vector2f(0.0f, 0.0f), new Vector2f(0.0f, 0.0f));
                primaryPanel.SetPivot(new Vector2f(0.5f, 0.5f));

                tierLabel = Factories.CreateGuiLabel();
                primaryPanel.Add(tierLabel);
                tierLabel.SetPosition(-60, 145, 0);
                tierLabel.SetSize(100, 25);
                tierLabel.SetText("Tier");

                harvestWoodInput = Factories.CreateGuiInputField();
                primaryPanel.Add(harvestWoodInput);
                harvestWoodInput.SetPosition(-70, 125, 0);
                harvestWoodInput.SetSize(120, 25);

                harvestWoodCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(harvestWoodCheckBox);
                harvestWoodCheckBox.SetPosition(60, 125, 0);
                harvestWoodCheckBox.SetSize(100, 25);
                harvestWoodCheckBox.SetText("Harvest Wood");
                harvestWoodCheckBox.SetSelected(true);

                harvestOreInput = Factories.CreateGuiInputField();
                primaryPanel.Add(harvestOreInput);
                harvestOreInput.SetPosition(-70, 100, 0);
                harvestOreInput.SetSize(120, 25);

                harvestOreCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(harvestOreCheckBox);
                harvestOreCheckBox.SetPosition(60, 100, 0);
                harvestOreCheckBox.SetSize(100, 25);
                harvestOreCheckBox.SetText("Harvest Ore");
                harvestOreCheckBox.SetSelected(true);

                harvestFiberInput = Factories.CreateGuiInputField();
                primaryPanel.Add(harvestFiberInput);
                harvestFiberInput.SetPosition(-70, 75, 0);
                harvestFiberInput.SetSize(120, 25);

                harvestFiberCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(harvestFiberCheckBox);
                harvestFiberCheckBox.SetPosition(60, 75, 0);
                harvestFiberCheckBox.SetSize(100, 25);
                harvestFiberCheckBox.SetText("Harvest Fiber");
                harvestFiberCheckBox.SetSelected(true);

                harvestHideInput = Factories.CreateGuiInputField();
                primaryPanel.Add(harvestHideInput);
                harvestHideInput.SetPosition(-70, 50, 0);
                harvestHideInput.SetSize(120, 25);

                harvestHideCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(harvestHideCheckBox);
                harvestHideCheckBox.SetPosition(60, 50, 0);
                harvestHideCheckBox.SetSize(100, 25);
                harvestHideCheckBox.SetText("Harvest Hide");
                harvestHideCheckBox.SetSelected(true);

                harvestStoneInput = Factories.CreateGuiInputField();
                primaryPanel.Add(harvestStoneInput);
                harvestStoneInput.SetPosition(-70, 25, 0);
                harvestStoneInput.SetSize(120, 25);

                harvestStoneCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(harvestStoneCheckBox);
                harvestStoneCheckBox.SetPosition(60, 25, 0);
                harvestStoneCheckBox.SetSize(100, 25);
                harvestStoneCheckBox.SetText("Harvest Stone");
                harvestStoneCheckBox.SetSelected(true);

                killMobsCheckBox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(killMobsCheckBox);
                killMobsCheckBox.SetPosition(-70, -5, 0);
                killMobsCheckBox.SetSize(125, 25);
                killMobsCheckBox.SetText("Kill Mobs");
                killMobsCheckBox.SetSelected(true);

                autoLoginCheckbox = Factories.CreateGuiCheckBox();
                primaryPanel.Add(autoLoginCheckbox);
                autoLoginCheckbox.SetPosition(60, -5, 0);
                autoLoginCheckbox.SetSize(125, 25);
                autoLoginCheckbox.SetText("Auto Relogin");
                autoLoginCheckbox.SetSelected(true);

                characterNameLabel = Factories.CreateGuiLabel();
                primaryPanel.Add(characterNameLabel);
                characterNameLabel.SetPosition(70, -35, 0);
                characterNameLabel.SetSize(125, 25);
                characterNameLabel.SetText("Character Name");

                characterNameInput = Factories.CreateGuiInputField();
                primaryPanel.Add(characterNameInput);
                characterNameInput.SetPosition(70, -55, 0);
                characterNameInput.SetSize(125, 25);

                setVaultAreaButton = Factories.CreateGuiButton();
                primaryPanel.Add(setVaultAreaButton);
                setVaultAreaButton.SetPosition(-70, -35, 0);
                setVaultAreaButton.SetSize(125, 25);
                setVaultAreaButton.SetText("Set Vault Loc.");
                setVaultAreaButton.AddActionListener((e) =>
                {
                    var local = Players.LocalPlayer;
                    if (local != null)
                    {
                        var loc  = local.ThreadSafeLocation;
                        var area = loc.Expand(4, 2, 4);
                        Logging.Log("Set vault loc to " + loc.X + " " + loc.Y + " " + loc.Z);
                        config.VaultClusterName = Game.ClusterName;
                        config.VaultDest        = new SafeVector3(new Vector3f(loc.X, loc.Y, loc.Z));
                        config.VaultArea        = new SafeMapArea(Game.Cluster.Name, new Area(area.Start, area.End));
                    }
                });

                setRepairAreaButton = Factories.CreateGuiButton();
                primaryPanel.Add(setRepairAreaButton);
                setRepairAreaButton.SetPosition(-70, -65, 0);
                setRepairAreaButton.SetSize(125, 25);
                setRepairAreaButton.SetText("Set Repair Loc.");
                setRepairAreaButton.AddActionListener((e) =>
                {
                    var local = Players.LocalPlayer;
                    if (local != null)
                    {
                        var loc  = local.ThreadSafeLocation;
                        var area = loc.Expand(4, 2, 4);
                        Logging.Log("Set repair loc to " + loc.X + " " + loc.Y + " " + loc.Z);
                        config.RepairClusterName = Game.ClusterName;
                        config.RepairDest        = new SafeVector3(new Vector3f(loc.X, loc.Y, loc.Z));
                        config.RepairArea        = new SafeMapArea(Game.ClusterName, new Area(area.Start, area.End));
                    }
                });

                addRoamPointButton = Factories.CreateGuiButton();
                primaryPanel.Add(addRoamPointButton);
                addRoamPointButton.SetPosition(-70, -95, 0);
                addRoamPointButton.SetSize(125, 25);
                addRoamPointButton.SetText("Add Roam Point");
                addRoamPointButton.AddActionListener((e) =>
                {
                    var local = Players.LocalPlayer;
                    if (local != null)
                    {
                        var loc = local.ThreadSafeLocation;
                        Logging.Log("Add roam point " + loc.X + " " + loc.Y + " " + loc.Z);
                        config.ResourceClusterName = Game.ClusterName;
                        config.RoamPoints.Add(new SafeVector3(new Vector3f(loc.X, loc.Y, loc.Z)));
                    }
                });

                removeRoamPointButton = Factories.CreateGuiButton();
                primaryPanel.Add(removeRoamPointButton);
                removeRoamPointButton.SetPosition(60, -95, 0);
                removeRoamPointButton.SetSize(125, 25);
                removeRoamPointButton.SetText("Del Roam Point");
                removeRoamPointButton.AddActionListener((e) =>
                {
                    var local = Players.LocalPlayer;
                    if (local != null)
                    {
                        var loc = local.ThreadSafeLocation;
                        Logging.Log("Delete roam point " + loc.X + " " + loc.Y + " " + loc.Z);
                        for (var i = 0; i < config.RoamPoints.Count; i++)
                        {
                            if (config.RoamPoints[i].RealVector3().Expand(3, 3, 3).Contains(loc))
                            {
                                config.RoamPoints.RemoveAt(i);
                                i -= 1;
                            }
                        }
                    }
                });

                runButton = Factories.CreateGuiButton();
                primaryPanel.Add(runButton);
                runButton.SetPosition(0, -140, 0);
                runButton.SetSize(125, 25);
                runButton.SetText("Run");
                runButton.AddActionListener((e) =>
                {
                    if (config.VaultDest == null)
                    {
                        context.State = "No vault area set!";
                        return;
                    }

                    if (config.RoamPoints.Count == 0)
                    {
                        context.State = "No roam points added!";
                        return;
                    }

                    SelectedStart();
                });

                UpdateForConfig();
            });

            return(true);
        }