mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-21 14:24:58 +01:00
Structure gauge button in the Track tab of the toolset
This commit is contained in:
@@ -86,16 +86,6 @@ void editor_ui::render_mode_options(nodebank_panel::edit_mode const Mode)
|
|||||||
m_filloptions();
|
m_filloptions();
|
||||||
break;
|
break;
|
||||||
case nodebank_panel::TRACK:
|
case nodebank_panel::TRACK:
|
||||||
if (m_trackoptions)
|
|
||||||
m_trackoptions();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void editor_ui::render_header_sections()
|
|
||||||
{
|
|
||||||
if (m_gaugewindow != nullptr)
|
if (m_gaugewindow != nullptr)
|
||||||
{
|
{
|
||||||
auto const open{*m_gaugewindow};
|
auto const open{*m_gaugewindow};
|
||||||
@@ -108,6 +98,16 @@ void editor_ui::render_header_sections()
|
|||||||
if (ImGui::IsItemHovered())
|
if (ImGui::IsItemHovered())
|
||||||
ImGui::SetTooltip("%s", STR_C("Checks which models enter the structure gauge of the tracks and the clearance over the roads (skrajnia budowli)"));
|
ImGui::SetTooltip("%s", STR_C("Checks which models enter the structure gauge of the tracks and the clearance over the roads (skrajnia budowli)"));
|
||||||
}
|
}
|
||||||
|
if (m_trackoptions)
|
||||||
|
m_trackoptions();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void editor_ui::render_header_sections()
|
||||||
|
{
|
||||||
if (ImGui::CollapsingHeader("Gizmo", ImGuiTreeNodeFlags_DefaultOpen))
|
if (ImGui::CollapsingHeader("Gizmo", ImGuiTreeNodeFlags_DefaultOpen))
|
||||||
{
|
{
|
||||||
if (m_gizmooptions)
|
if (m_gizmooptions)
|
||||||
|
|||||||
Reference in New Issue
Block a user