Tech ENABLE_PREVIEW_LAYOUT - Collassable legend
This commit is contained in:
parent
3d22cc096f
commit
3b17cde53f
1 changed files with 4 additions and 0 deletions
|
@ -3369,7 +3369,11 @@ void GCodeViewer::render_legend(float& legend_height)
|
|||
const float max_height = 0.75f * static_cast<float>(cnv_size.get_height());
|
||||
const float child_height = 0.3333f * max_height;
|
||||
ImGui::SetNextWindowSizeConstraints({ 0.0f, 0.0f }, { -1.0f, max_height });
|
||||
#if ENABLE_PREVIEW_LAYOUT
|
||||
imgui.begin(std::string("Legend"), ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
|
||||
#else
|
||||
imgui.begin(std::string("Legend"), ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoMove);
|
||||
#endif // ENABLE_PREVIEW_LAYOUT
|
||||
|
||||
enum class EItemType : unsigned char
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue