fix(UserSidebar): Push under top bar instead of over

This commit is contained in:
Yimura 2021-01-16 13:52:57 +01:00
parent 04f5db9687
commit 64b0c006d7
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -6,7 +6,7 @@ namespace big
void window::render_user_sidebar()
{
ImGui::SetNextWindowSize({ 350.f, (float)y }, ImGuiCond_Always);
ImGui::SetNextWindowPos({ x - 350.f, 0.f }, ImGuiCond_Always);
ImGui::SetNextWindowPos({ x - 350.f, 28.f }, ImGuiCond_Always);
if (ImGui::Begin("###player_menu", NULL, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav))
{
auto vecButtonWidth = ImVec2(ImGui::GetWindowSize().x, 0.0f);