mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
Wrap achievements column contents into child windows.
This commit is contained in:
@@ -1466,13 +1466,17 @@ Would you like to enable achievements?
|
|||||||
{
|
{
|
||||||
ImGui::Columns( 2 );
|
ImGui::Columns( 2 );
|
||||||
ImGui::SetColumnWidth( 0, 300 * dpiScale );
|
ImGui::SetColumnWidth( 0, 300 * dpiScale );
|
||||||
|
ImGui::BeginChild( "##achievementtoc", ImVec2( 0, 0 ), ImGuiChildFlags_AlwaysUseWindowPadding );
|
||||||
DrawAchievements( c->items );
|
DrawAchievements( c->items );
|
||||||
|
ImGui::EndChild();
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
ImGui::BeginChild( "##achievementtext", ImVec2( 0, 0 ), ImGuiChildFlags_AlwaysUseWindowPadding );
|
||||||
if( s_achievementItem )
|
if( s_achievementItem )
|
||||||
{
|
{
|
||||||
tracy::Markdown md( nullptr, nullptr );
|
tracy::Markdown md( nullptr, nullptr );
|
||||||
md.Print( s_achievementItem->text.c_str(), s_achievementItem->text.size() );
|
md.Print( s_achievementItem->text.c_str(), s_achievementItem->text.size() );
|
||||||
}
|
}
|
||||||
|
ImGui::EndChild();
|
||||||
ImGui::EndColumns();
|
ImGui::EndColumns();
|
||||||
ImGui::EndTabItem();
|
ImGui::EndTabItem();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user