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

Method process

source/Gui/LocationWindow.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void LocationWindow::process()
18{
19 ImGui::PushID(_id);
20
21 ImGui::SetNextWindowBgAlpha(Const::WindowAlpha * ImGui::GetStyle().Alpha);
22 ImGui::SetNextWindowSize({scale(650.0f), scale(350.0f)}, ImGuiCond_Once);
23 ImGui::SetNextWindowPos({_initialPos.x, _initialPos.y}, ImGuiCond_Once);
24 auto title = _widgets->getLocationName();
25 if (ImGui::Begin((title + "###" + std::to_string(_id)).c_str(), &_on)) {
26 _widgets->process();
27 }
28 ImGui::End();
29
30 ImGui::PopID();
31}
32
33bool LocationWindow::isOn() const
34{

Callers

nothing calls this directly

Calls 3

scaleFunction · 0.85
to_stringFunction · 0.85
getLocationNameMethod · 0.45

Tested by

no test coverage detected