Home / Forums / Secret Neighbor ImGui Menu Source - Role Identifier, Keycard ESP & Stamina Tracker

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Secret Neighbor ImGui Menu Source - Role Identifier, Keycard ESP & Stamina Tracker

KeycardMaster
Item ESP & Unity UI Dev
MEMBER
Rep: 215
Join Date: Oct 2023
Posts: 19
Thanks: 54
2y ago · Aug 5, 2024 5:50 PM
#1
Here is a complete ImGui window layout designed specifically for Secret Neighbor:

CPP
void RenderSecretNeighborMenu() {
    ImGui::Begin("Secret Neighbor Toolkit v1.3", nullptr, ImGuiWindowFlags_AlwaysAutoResize);
    
    if (ImGui::CollapsingHeader("Neighbor Identification", ImGuiTreeNodeFlags_DefaultOpen)) {
        for (const auto& player : g_PlayerList) {
            if (player.isNeighbor) {
                ImGui::TextColored(ImVec4(1.0f, 0.2f, 0.2f, 1.0f), "[NEIGHBOR FOUND] %s (Disguised as: %s)", 
                    player.name.c_str(), player.disguiseName.c_str());
                ImGui::ProgressBar(player.stamina / 100.0f, ImVec2(220, 0), "Neighbor Stamina");
            }
        }
    }
    
    if (ImGui::CollapsingHeader("Keycard & Objective ESP")) {
        ImGui::Checkbox("Keycards ESP (Red/Blue/Yellow/Green)", &g_Config.KeyESP);
        ImGui::Checkbox("Basement Door Lock Status", &g_Config.BasementLocksESP);
        ImGui::Checkbox("Show Distance in Meters", &g_Config.ShowDistance);
        ImGui::SliderFloat("ESP Max Distance", &g_Config.MaxDistance, 10.0f, 150.0f, "%.0f m");
    }
    
    if (ImGui::CollapsingHeader("Player Features")) {
        ImGui::Checkbox("Draw Neighbor Warning Indicator", &g_Config.NeighborWarning);
        ImGui::Checkbox("Draw Snaplines to Unlocked Basement Door", &g_Config.DoorSnapline);
    }
    
    ImGui::End();
}


The neighbor warning indicator flashes red on your screen whenever the disguised neighbor comes within 15 meters of your position!
KeycardMaster | Keycard & Objective ESP Specialist
The following users thanked KeycardMaster for this post:
GlowShader
Shader & Overlay Artist
MEMBER
Rep: 185
Join Date: Oct 2023
Posts: 36
Thanks: 46
2y ago · Aug 5, 2024 8:10 PM
#2
The proximity warning indicator is a great touch. You can use
CPP
ImGui::GetBackgroundDrawList()->AddText()
with a pulsating alpha using
CPP
sin(ImGui::GetTime() * 5.0f)
for a smooth flashing effect!
GlowShader | Shaders, Stencils & DirectX DrawLists
VectorByte
Graphics & DirectX Dev
VIP
Rep: 420
Join Date: Aug 2022
Posts: 39
Thanks: 115
2y ago · Aug 6, 2024 11:20 AM
#3
Clean ImGui UI structure @KeycardMaster! Matches the modern dark glassmorphic styling perfectly.
VectorByte | DirectX 11/12 Hooking & ImGui Overlays
Quote
Math is the language of game engines.