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

Method processTablesTab

source/Gui/StatisticsWindow.cpp:223–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void StatisticsWindow::processTablesTab()
224{
225 if (!_tableLiveStatistics.isDataAvailable()) {
226 return;
227 }
228
229 ImGui::PushID(3);
230 if (ImGui::BeginTable(
231 "##throughput",
232 2,
233 ImGuiTableFlags_BordersInnerH | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_BordersOuterH | ImGuiTableFlags_BordersOuterV,
234 ImVec2(-1, 0))) {
235
236 ImGui::TableSetupColumn("##");
237 ImGui::TableSetupColumn("##", ImGuiTableColumnFlags_WidthFixed, scale(RightColumnWidthTable));
238
239 ImGui::TableNextRow();
240 ImGui::TableSetColumnIndex(0);
241 AlienImGui::Text(StringHelper::format(_tableLiveStatistics.getCreatedCellsPerSecond()));
242
243 ImGui::TableSetColumnIndex(1);
244 AlienImGui::Text("Created cells / sec");
245
246 ImGui::TableNextRow();
247 ImGui::TableSetColumnIndex(0);
248 AlienImGui::Text(StringHelper::format(_tableLiveStatistics.getCreatedReplicatorsPerSecond()));
249
250 ImGui::TableSetColumnIndex(1);
251 AlienImGui::Text("Created self-replicators / sec");
252
253 ImGui::EndTable();
254 }
255 ImGui::PopID();
256}
257
258void StatisticsWindow::processSettings()
259{

Callers

nothing calls this directly

Calls 5

ImVec2Class · 0.85
scaleFunction · 0.85
isDataAvailableMethod · 0.45

Tested by

no test coverage detected