mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
fix(gui): dont draw two gui separators at the top for lua only tab. (#1677)
This commit is contained in:
@ -36,8 +36,14 @@ namespace big
|
||||
ImGui::Separator();
|
||||
|
||||
if (selected->func)
|
||||
{
|
||||
selected->func();
|
||||
|
||||
const auto has_lua_gui_to_draw = g_lua_manager && g_lua_manager->has_gui_to_draw(selected->hash);
|
||||
if (has_lua_gui_to_draw)
|
||||
ImGui::Separator();
|
||||
}
|
||||
|
||||
if (g_lua_manager)
|
||||
g_lua_manager->draw_gui(selected->hash);
|
||||
|
||||
|
Reference in New Issue
Block a user