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

Method processIntern

source/Gui/SelectionWindow.cpp:15–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{}
14
15void SelectionWindow::processIntern()
16{
17 auto selection = EditorModel::get().getSelectionShallowData();
18 ImGui::Text("Cells");
19 ImGui::PushFont(StyleRepository::get().getLargeFont());
20 ImGui::PushStyleColor(ImGuiCol_Text, Const::TextDecentColor);
21 ImGui::TextUnformatted(StringHelper::format(selection.numCells).c_str());
22 ImGui::PopStyleColor();
23 ImGui::PopFont();
24
25 ImGui::Text("Connected cells");
26 ImGui::PushFont(StyleRepository::get().getLargeFont());
27 ImGui::PushStyleColor(ImGuiCol_Text, Const::TextDecentColor);
28 ImGui::TextUnformatted(StringHelper::format(selection.numClusterCells).c_str());
29 ImGui::PopStyleColor();
30 ImGui::PopFont();
31
32 ImGui::Text("Energy particles");
33 ImGui::PushFont(StyleRepository::get().getLargeFont());
34 ImGui::PushStyleColor(ImGuiCol_Text, Const::TextDecentColor);
35 ImGui::TextUnformatted(StringHelper::format(selection.numParticles).c_str());
36 ImGui::PopStyleColor();
37 ImGui::PopFont();
38}
39
40bool SelectionWindow::isShown()
41{

Callers

nothing calls this directly

Calls 2

getLargeFontMethod · 0.80

Tested by

no test coverage detected