Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Вопрос ImGui

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
25 Ноя 2020
Сообщения
6
Реакции
0
How can I render buttons / checkboxes / widgets on top of ImGui::GetForegroundDrawList();
I'm using an older version of imgui so i cant use GetOverlayDrawList();
and using GetWindowDrawList results in fucking up the x positions of the renders
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ImGui::SetCursorPos(ImVec2(x, y));

if (ImGui::Button("Name", ImVec2(x, y)))
{
}

I understood you correctly?
 
ImGui::SetCursorPos(ImVec2(x, y));

if (ImGui::Button("Name", ImVec2(x, y)))
{
}

I understood you correctly?
No, what i mean is when i use foregrounddrawlist to render lets say a square, i cant view the button / checkboxes that are on top of it, any possible way to achieve it without using WindowDrawList?
 
Назад
Сверху Снизу