MCPcopy Create free account
hub / github.com/chrxh/alien / processTab

Method processTab

source/Gui/GenomeEditorWindow.cpp:288–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void GenomeEditorWindow::processTab(TabData& tab)
289{
290 _previewHeight = std::min(ImGui::GetContentRegionAvail().y - 10.0f, std::max(10.0f, _previewHeight));
291 if (ImGui::BeginChild("##", ImVec2(0, ImGui::GetContentRegionAvail().y - _previewHeight), true)) {
292 AlienImGui::Group("General properties");
293 processGenomeHeader(tab);
294
295 AlienImGui::Group("Construction sequence");
296 processConstructionSequence(tab);
297 }
298 ImGui::EndChild();
299
300 AlienImGui::MovableSeparator(AlienImGui::MovableSeparatorParameters().additive(false), _previewHeight);
301
302 AlienImGui::Group("Preview (reference configuration)", Const::GenomePreviewTooltip);
303 ImGui::SameLine();
304 if (ImGui::BeginChild("##child4", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar)) {
305 showPreview(tab);
306 }
307 ImGui::EndChild();
308}
309
310void GenomeEditorWindow::processGenomeHeader(TabData& tab)
311{

Callers

nothing calls this directly

Calls 2

ImVec2Class · 0.85

Tested by

no test coverage detected