Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
cc82468
Create AntiAFK.cpp
Pyxalon Aug 14, 2026
86e8e67
Delete src/game/features/self/AntiAFK.cpp
Pyxalon Aug 14, 2026
1a0e54f
Merge branch 'CSY0N:main' into main
Pyxalon Aug 15, 2026
18a1fa8
Update HotkeySystem.cpp
Pyxalon Aug 15, 2026
ed9bbbe
Delete src/game/hooks/GUI/SwapChain.cpp
Pyxalon Aug 15, 2026
66f8cdf
Delete src/game/hooks/GUI/Window.cpp
Pyxalon Aug 15, 2026
93afcc1
Refactor Hooks.hpp by removing unused declarations
Pyxalon Aug 15, 2026
b9f8f27
Update RawInput.cpp
Pyxalon Aug 15, 2026
3d425ce
Update Pointers.hpp
Pyxalon Aug 15, 2026
26fe34b
Update Pointers.cpp
Pyxalon Aug 15, 2026
a2ea7c4
Update main.cpp
Pyxalon Aug 15, 2026
345d489
Update Hooking.cpp
Pyxalon Aug 15, 2026
4d7bfa5
Update Menu.cpp
Pyxalon Aug 15, 2026
7eea7ab
Update Renderer.hpp
Pyxalon Aug 15, 2026
8d76147
Update Renderer.cpp
Pyxalon Aug 15, 2026
165759a
Update Menu.cpp
Pyxalon Aug 15, 2026
cd304fc
Update GUI.hpp
Pyxalon Aug 15, 2026
bb1ae95
Update GUI.cpp
Pyxalon Aug 15, 2026
8480973
Delete src/core/renderer/stb directory
Pyxalon Aug 15, 2026
709fe56
Add D3D12Hook class for Direct3D 12 hooking
Pyxalon Aug 15, 2026
b0a6456
Create D3D12Hook.cpp
Pyxalon Aug 15, 2026
0484e0a
Update Settings.cpp
Pyxalon Aug 15, 2026
f8a3a9e
Update Menu.hpp
Pyxalon Aug 15, 2026
865e3c5
Update Modular.cpp
Pyxalon Aug 15, 2026
0617b27
Update Classic.cpp
Pyxalon Aug 15, 2026
1176d73
Update Modern.cpp
Pyxalon Aug 15, 2026
888dba9
Update ModernVertical.cpp
Pyxalon Aug 15, 2026
3f53002
Update UIManager.hpp
Pyxalon Aug 15, 2026
b83b0cc
Remove unused DrawMenuBackground function
Pyxalon Aug 15, 2026
228f6fa
Update UIManager.hpp
Pyxalon Aug 15, 2026
e222982
Update theme.cpp
Pyxalon Aug 15, 2026
9f247b3
Update GUI.cpp
Pyxalon Aug 15, 2026
a2a6438
Update GUI.cpp
Pyxalon Aug 15, 2026
d4012a1
Update CayoPericoHeist.cpp
Pyxalon Aug 15, 2026
c110fbe
Update Themes.cpp
Pyxalon Aug 15, 2026
2d2d4f3
Update CayoPericoHeist.cpp
Pyxalon Aug 15, 2026
326e164
Update CayoPericoHeist.cpp
Pyxalon Aug 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/core/commands/HotkeySystem.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "HotkeySystem.hpp"
#include "core/backend/FiberPool.hpp"
#include "core/backend/ScriptMgr.hpp"
#include "core/renderer/Renderer.hpp"
#include "Commands.hpp"
#include "LoopedCommand.hpp"
#include "core/util/Joaat.hpp"
Expand Down Expand Up @@ -95,7 +96,7 @@ namespace YimMenu
{
while (g_Running)
{
if (GetForegroundWindow() == *Pointers.Hwnd && !HUD::IS_PAUSE_MENU_ACTIVE() && !HUD::IS_SOCIAL_CLUB_ACTIVE() && !m_BeingModified && !GUI::IsUsingKeyboard())
if (GetForegroundWindow() == *Pointers.Hwnd && !HUD::IS_PAUSE_MENU_ACTIVE() && !HUD::IS_SOCIAL_CLUB_ACTIVE() && !m_BeingModified && (Renderer::IsInitialized() && !GUI::IsUsingKeyboard()))
{
for (auto& [hash, link] : m_CommandHotkeys)
{
Expand Down
31 changes: 0 additions & 31 deletions src/core/frontend/manager/UIManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,6 @@ namespace YimMenu::Features

namespace YimMenu
{
static void DrawMenuBackground()
{
if (!Menu::customMenuBackground.GetState())
return;

if (!Menu::g_BackgroundTexture.IsValid())
return;

ImGuiWindow* window = ImGui::GetCurrentWindow();

if (!window)
return;

ImDrawList* drawList = ImGui::GetWindowDrawList();

const ImVec2 windowPos = ImGui::GetWindowPos();
const ImVec2 windowSize = ImGui::GetWindowSize();

drawList->AddImage(
Menu::g_BackgroundTexture.GetTextureID(),
windowPos,
ImVec2(
windowPos.x + windowSize.x,
windowPos.y + windowSize.y
),
ImVec2(0.0f, 0.0f),
ImVec2(1.0f, 1.0f),
IM_COL32(255, 255, 255, 160)
);
}

void UIManager::AddSubmenuImpl(const std::shared_ptr<Submenu>&& submenu)
{
if (!m_ActiveSubmenu)
Expand Down
166 changes: 58 additions & 108 deletions src/core/frontend/manager/styles/Classic/Classic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,124 +83,74 @@ namespace YimMenu
static float g_ContentSlide = 0.0f;
static decltype(UIManager::GetActiveSubmenu()) g_LastSubmenu{};
void RenderClassicTheme()
{
ImGuiIO& io = ImGui::GetIO();

float windowWidth = *Pointers.ScreenResX / 2.5f;
float centerX = (*Pointers.ScreenResX - windowWidth) * 0.5f;
float centerY = *Pointers.ScreenResY / 5.0f;

ImVec2 windowSize(windowWidth, *Pointers.ScreenResY / 2.5f);

const float animSpeed = 10.0f;
float t = io.DeltaTime * animSpeed;

g_MenuAlpha = LerpFloat(g_MenuAlpha, 1.0f, t);
g_MenuSlide = LerpFloat(g_MenuSlide, 0.0f, t);

const bool useCustomBackground = Menu::customMenuBackground.GetState() && Menu::g_BackgroundTexture.IsValid();
ImGui::SetNextWindowBgAlpha(useCustomBackground ? 0.0f : g_MenuAlpha);
ImGui::SetNextWindowSize(windowSize,ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY + g_MenuSlide), ImGuiCond_FirstUseEver);
ImGuiWindowFlags flags =
ImGuiWindowFlags_NoTitleBar |
ImGuiWindowFlags_NoCollapse;

if (!ImGui::Begin("##ClassicInputWindow", nullptr, flags))
{
ImGui::End();
return;
}

ImVec2 winPos = ImGui::GetWindowPos();
ImVec2 winSize = ImGui::GetWindowSize();

// Custom PNG background
if (useCustomBackground)
{
ImDrawList* draw = ImGui::GetWindowDrawList();

draw->AddImage(
Menu::g_BackgroundTexture.GetTextureID(),
winPos,
ImVec2(
winPos.x + winSize.x,
winPos.y + winSize.y
),
ImVec2(0.0f, 0.0f),
ImVec2(1.0f, 1.0f),
IM_COL32_WHITE
);
}

RenderSnowInWindow(winPos, winSize);

if (ImGui::BeginChild("##submenus", ImVec2(120, ImGui::GetContentRegionAvail().y), true))
{
const auto& submenus = UIManager::GetSubmenus();
auto activeSubmenu = UIManager::GetActiveSubmenu();

for (auto& submenu : submenus)
ImGuiIO& io = ImGui::GetIO();
float windowWidth = *Pointers.ScreenResX / 2.5f;
float centerX = (*Pointers.ScreenResX - windowWidth) * 0.5f;
float centerY = *Pointers.ScreenResY / 5.0f;
ImVec2 windowSize(windowWidth,*Pointers.ScreenResY / 2.5f);
const float animSpeed = 10.0f;
float t = io.DeltaTime * animSpeed;
g_MenuAlpha = LerpFloat(g_MenuAlpha, 1.0f, t);
g_MenuSlide = LerpFloat(g_MenuSlide, 0.0f, t);
ImGui::SetNextWindowBgAlpha(g_MenuAlpha);
ImGui::SetNextWindowSize(windowSize, ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos(ImVec2(centerX, centerY + g_MenuSlide),ImGuiCond_FirstUseEver);
ImGuiWindowFlags flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse;
if (!ImGui::Begin("##ClassicInputWindow", nullptr, flags))
{
ImGui::End();
return;
}
ImVec2 winPos = ImGui::GetWindowPos();
ImVec2 winSize = ImGui::GetWindowSize();
RenderSnowInWindow(winPos, winSize);
if (ImGui::BeginChild("##submenus",ImVec2(120, ImGui::GetContentRegionAvail().y),true))
{
if (ImGui::Selectable(
submenu->m_Name.data(),
submenu == activeSubmenu
))
const auto& submenus = UIManager::GetSubmenus();
auto activeSubmenu = UIManager::GetActiveSubmenu();
for (auto& submenu : submenus)
{
UIManager::SetActiveSubmenu(submenu);
UIManager::SetShowContentWindow(true);
if (ImGui::Selectable(submenu->m_Name.data(),submenu == activeSubmenu))
{
UIManager::SetActiveSubmenu(submenu);
UIManager::SetShowContentWindow(true);
}
}
}
}

ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginGroup();

ImGui::TextUnformatted("YimMenuV2");
ImGui::EndChild();
ImGui::SameLine();
ImGui::BeginGroup();
ImGui::TextUnformatted("YimMenuV2");
if (ImGui::BeginChild("##minisubmenus", ImVec2(0, 50), true))
{
auto activeSubmenu = UIManager::GetActiveSubmenu();
if (activeSubmenu) activeSubmenu->DrawCategorySelectors();
}
ImGui::EndChild();

if (ImGui::BeginChild("##minisubmenus", ImVec2(0, 50), true))
{
auto activeSubmenu = UIManager::GetActiveSubmenu();

if (activeSubmenu)
activeSubmenu->DrawCategorySelectors();
}

ImGui::EndChild();

auto activeSubmenu = UIManager::GetActiveSubmenu();

if (activeSubmenu != g_LastSubmenu)
{
g_ContentSlide = 20.0f;
g_LastSubmenu = activeSubmenu;
}

g_ContentSlide = LerpFloat(g_ContentSlide, 0.0f, t);

ImGui::Dummy(ImVec2(g_ContentSlide, 0.0f));
ImGui::SameLine(0.0f, 0.0f);

if (ImGui::BeginChild("##options", ImVec2(0, 0), true))
{
bool pushedFont = false;

if (ImFont* optionsFont = UIManager::GetOptionsFont())
if (activeSubmenu != g_LastSubmenu)
{
ImGui::PushFont(optionsFont);
pushedFont = true;
g_ContentSlide = 20.0f;
g_LastSubmenu = activeSubmenu;
}
g_ContentSlide = LerpFloat(g_ContentSlide, 0.0f, t);
ImGui::Dummy(ImVec2(g_ContentSlide, 0.0f));
ImGui::SameLine(0.0f, 0.0f);
if (ImGui::BeginChild("##options", ImVec2(0, 0), true))
{
if (ImFont* optionsFont = UIManager::GetOptionsFont())
ImGui::PushFont(optionsFont);

if (activeSubmenu)
activeSubmenu->Draw();
if (activeSubmenu)
activeSubmenu->Draw();

if (pushedFont)
ImGui::PopFont();
if (ImGui::GetFont() != ImGui::GetIO().FontDefault)
ImGui::PopFont();
}
ImGui::EndChild();
ImGui::EndGroup();
ImGui::End();
}

ImGui::EndChild();
ImGui::EndGroup();
ImGui::End();
}
}
Loading
Loading