Skip to content

Commit

Permalink
Merge pull request #117 from ByteCorum/WIP
Browse files Browse the repository at this point in the history
Bug fixes and small changes
  • Loading branch information
ByteCorum authored Sep 8, 2024
2 parents ff0aad1 + 6129318 commit 00cf725
Show file tree
Hide file tree
Showing 24 changed files with 300 additions and 334 deletions.
Binary file modified DragonBurn/AssemblyInfo.rc
Binary file not shown.
135 changes: 76 additions & 59 deletions DragonBurn/Config/ConfigMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace ConfigMenu {

void RenderCFGmenu()
{
ImGui::Columns(2, nullptr, false);
static char configNameBuffer[128] = "NewConfig";
static char configAuthorBuffer[128] = "Author";
static int selectedConfig = -1;
Expand Down Expand Up @@ -102,21 +103,18 @@ namespace ConfigMenu {
ImGui::EndPopup();
}

ImGui::NewLine();
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
ImGui::NextColumn();
CurrentCursorX = ImGui::GetCursorPosX();
std::cout << CurrentCursorX + CursorX << "\n";
ImGui::SetCursorPos(ImVec2(CurrentCursorX + CursorX, 24.f));
ImGui::SeparatorText(Lang::ConfigText.SeparateLine);
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
ImGui::TextDisabled(Lang::ConfigText.ConfigName);
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
ImGui::SetNextItemWidth(ComponentWidth + 8);
ImGui::InputText("###ConfigNameInput", configNameBuffer, sizeof(configNameBuffer));
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
ImGui::TextDisabled(Lang::ConfigText.AuthorName);
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
ImGui::SetNextItemWidth(ComponentWidth + 8);
ImGui::InputText("###AuthorNameInput", configAuthorBuffer, sizeof(configAuthorBuffer));
ImGui::NewLine();
ImGui::SetCursorPosX(CurrentCursorX + CursorX);
if (ImGui::Button(Lang::ConfigText.Create, { 120.f, 30.f }))
{
std::string configFileName = std::string(configNameBuffer) + ".cfg";
Expand All @@ -127,83 +125,104 @@ namespace ConfigMenu {
{
Gui.OpenWebpage(configDir.c_str());
}
ImGui::Columns(1);
}

void ResetToDefault() {
TriggerBot::IgnoreFlash = false;
TriggerBot::ScopeOnly = false;
TriggerBot::ScopeOnly = true;
AimControl::IgnoreFlash = false;
ESPConfig::RenderDistance = 80;

ESPConfig::ArmorBar = false;
ESPConfig::ShowArmorNum = false;
ESPConfig::ShowIsScoped = false;
ESPConfig::ShowIsScoped = true;
ESPConfig::AmmoBar = false;
ESPConfig::OutLine = true;
ESPConfig::ShowHealthNum = false;
ESPConfig::FilledColor = ImColor(255, 255, 255, 255);
ESPConfig::FilledColor2 = ImColor(255, 255, 255, 255);
ESPConfig::FilledColor = ImColor(59, 71, 148, 128);
ESPConfig::FilledColor2 = ImColor(59, 71, 148, 128);
ESPConfig::MultiColor = false;
ESPConfig::BoxFilledVisColor = ImColor(0, 0, 255, 255);
ESPConfig::BoxFilledVisColor = ImColor(0, 98, 98, 128);
ESPConfig::FilledVisBox = false;

MiscCFG::SpecList = false;
MiscCFG::BombTimerCol = ImColor(255, 120, 0, 255);
MiscCFG::bmbTimer = false;
ESPConfig::VisibleColor = ImColor(255, 196, 0, 255);
MiscCFG::BombTimerCol = ImColor(131, 137, 150, 255);
MiscCFG::bmbTimer = true;

ESPConfig::VisibleColor = ImColor(59, 71, 148, 180);
ESPConfig::VisibleCheck = false;
MenuConfig::AirJump = false;

MenuConfig::WindowStyle = 0;
ESPConfig::BoxAlpha = 0.0f;
ESPConfig::ShowPreview = true;
ESPConfig::ShowHeadBox = false;
ESPConfig::ShowHeadBox = true;
ESPConfig::HeadBoxStyle = 0;
ESPConfig::HeadBoxColor = ImColor(255, 255, 255, 255);
ESPConfig::HeadBoxColor = ImColor(131, 137, 150, 180);

ESPConfig::ShowDistance = false;
ESPConfig::ShowBoneESP = true;
ESPConfig::ShowBoxESP = true;
ESPConfig::ShowHealthBar = true;
ESPConfig::ShowWeaponESP = false;
ESPConfig::ShowWeaponESP = true;
ESPConfig::ShowEyeRay = false;
ESPConfig::ShowPlayerName = true;
ESPConfig::BoxRounding = 0.0f;
MenuConfig::AimBot = false;
MenuConfig::AimToggleMode = false;
MenuConfig::AimPosition = 0;
MenuConfig::AimPositionIndex = BONEINDEX::head;
MenuConfig::BoxType = 0;
MenuConfig::HealthBarType = 0;
ESPConfig::BoneColor = ImColor(0, 255, 255, 255);
ESPConfig::BoxColor = ImColor(255, 80, 0, 255);
ESPConfig::EyeRayColor = ImVec4(255, 0, 0, 255);
ESPConfig::BoxRounding = 5.0f;

LegitBotConfig::AimBot = true;
LegitBotConfig::AimToggleMode = false;
LegitBotConfig::AimPosition = 0;
LegitBotConfig::AimPositionIndex = BONEINDEX::head;
LegitBotConfig::HitboxUpdated = false;

ESPConfig::BoxType = 0;
ESPConfig::HealthBarType = 0;
ESPConfig::BoneColor = ImColor(131, 137, 150, 180);
ESPConfig::BoxColor = ImColor(59, 71, 148, 180);
ESPConfig::EyeRayColor = ImVec4(0, 98, 98, 255);

MenuConfig::ShowMenu = true;
MenuConfig::WorkInSpec = true;

RadarCFG::ShowRadar = false;
RadarCFG::RadarRange = 150;
RadarCFG::ShowRadarCrossLine = true;
RadarCFG::RadarCrossLineColor = ImColor(220, 220, 220, 255);
RadarCFG::ShowRadarCrossLine = false;
RadarCFG::RadarCrossLineColor = ImColor(131, 137, 150, 180);
RadarCFG::RadarType = 2;
RadarCFG::RadarPointSizeProportion = 1.f;
RadarCFG::RadarBgAlpha = 0.1f;
RadarCFG::Proportion = 3300;
MenuConfig::TriggerBot = false;
MenuConfig::TriggerAlways = false;

LegitBotConfig::TriggerBot = true;
LegitBotConfig::TriggerAlways = false;

MenuConfig::TeamCheck = true;
MenuConfig::BypassOBS = false;
MenuConfig::VisibleCheck = true;
MenuConfig::ShowHeadShootLine = false;
MenuConfig::HeadShootLineColor = ImColor(255, 255, 255, 200);
MenuConfig::AimBotHotKey = 0;
AimControl::SetHotKey(MenuConfig::AimBotHotKey);
LegitBotConfig::VisibleCheck = true;

MiscCFG::ShowHeadShootLine = false;
MiscCFG::HeadShootLineColor = ImColor(131, 137, 150, 200);

LegitBotConfig::AimBotHotKey = 3;
AimControl::SetHotKey(LegitBotConfig::AimBotHotKey);
AimControl::AimFov = 10;
AimControl::AimFovMin = 0.4f;
AimControl::Smooth = 5.0f;

ESPConfig::ShowLineToEnemy = false;
MenuConfig::FovLineSize = 60.0f;
TriggerBot::TriggerDelay = 90;
TriggerBot::ShotDuration = 500;
LegitBotConfig::FovLineSize = 60.0f;
TriggerBot::TriggerDelay = 10;
TriggerBot::ShotDuration = 400;

RCS::RCSBullet = 1;
MenuConfig::TriggerHotKey = 0;
TriggerBot::SetHotKey(MenuConfig::TriggerHotKey);
RCS::RCSScale = ImVec2(1.2f, 1.4f);
AimControl::ScopeOnly = false;
AimControl::AutoShot = false;
MenuConfig::FovLineColor = ImVec4(55, 55, 55, 220);
ESPConfig::LineToEnemyColor = ImVec4(255, 255, 255, 220);
LegitBotConfig::TriggerHotKey = 4;
TriggerBot::SetHotKey(LegitBotConfig::TriggerHotKey);

RCS::RCSScale = ImVec2(1.4f, 1.4f);
AimControl::ScopeOnly = true;
AimControl::AimBullet = 1;

LegitBotConfig::FovLineColor = ImVec4(0, 98, 98, 220);
ESPConfig::LineToEnemyColor = ImVec4(59, 71, 148, 180);

//CrosshairsCFG::ShowCrossHair = false;
//CrosshairsCFG::CrossHairColor = ImColor(0, 255, 0, 255);
//CrosshairsCFG::CrossHairSize = 75;
Expand All @@ -215,27 +234,25 @@ namespace ConfigMenu {
//CrosshairsCFG::Gap = 8;
//CrosshairsCFG::drawCrossline = true;
//CrosshairsCFG::drawCircle = false;
//MenuConfig::TargetingCrosshairs = false;
//CrosshairsCFG::TargetingCrosshairs = false;
//CrosshairsCFG::TargetedColor = ImColor(255, 0, 0, 255);
//CrosshairsCFG::CircleRadius = 3.f;
//CrosshairsCFG::DynamicGap = false;
//CrosshairsCFG::DotSize = 1.0f;
//CrosshairsCFG::Thickness = 1;
//CrosshairsCFG::TeamCheck = true;
MiscCFG::WorkInSpec = true;
MiscCFG::WaterMark = false;

MiscCFG::WaterMark = true;
MiscCFG::BunnyHop = false;
MiscCFG::HitSound = 0;
MiscCFG::HitMarker = false;
MiscCFG::SniperCrosshair = false;
MiscCFG::SniperCrosshair = true;
MiscCFG::SniperCrosshairColor = ImColor(32, 178, 170, 255);
//MiscCFG::FastStop = false;

ESPConfig::ESPenabled = false;

ESPConfig::ESPenabled = true;
ESPConfig::DrawFov = false;
MenuConfig::FovCircleColor = ImColor(255, 255, 255, 255);

MenuConfig::MaxRenderFPS = 1200;
LegitBotConfig::FovCircleColor = ImColor(131, 137, 150, 180);

}
}
Loading

0 comments on commit 00cf725

Please sign in to comment.