Начинающий
- Статус
- Оффлайн
- Регистрация
- 28 Мар 2019
- Сообщения
- 9
- Реакции
- 0
Где найти положение кнопок в исходнике и так сказать приподнять их
Я так понимаю это отвечает за отрисовку кнопок
Я так понимаю это отвечает за отрисовку кнопок
Код:
auto draw_list = ImGui::GetWindowDrawList();
const auto bottom_color = ImGui::GetColorU32(ImVec4(0.1f, 0.1f, 0.1f, 1.f));
const auto text_color = ImGui::GetColorU32(ImVec4(1.f, 1.f, 1.f, 1.f));
const auto start = ImVec2(win_pos.x, win_pos.y + window_size.y);
const auto end = ImVec2(start.x + window_size.x, start.y - copyright_size.y - 2.f);
draw_list->AddRectFilled(start, end, bottom_color);
draw_list->AddText(ImVec2(start.x + 10.f, start.y - copyright_size.y - 2.f), text_color, copyright);
draw_list->AddText(ImVec2(end.x - 10.f - buildtime_size.x, start.y - buildtime_size.y - 2.f), text_color, buildtime);
//draw_list->AddText(ImVec2(start.x + (end.x - start.x) / 2.f - name_size.x / 2.f, start.y - buildtime_size.y - 2.f), text_color, "");
Последнее редактирование: