MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / toggleGraphShown

Method toggleGraphShown

src/modules/scripting-ui/ui/ScriptLogPanelPopup.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void ScriptLogPanelPopup::toggleGraphShown(bool graph) {
85 m_graphShown = graph;
86
87 m_drawNode->setVisible(graph);
88 m_graphLabelsNode->setVisible(graph);
89 m_graphBottomLabels->setVisible(graph);
90
91 m_editor->setVisible(!graph);
92
93 this->refresh();
94}
95
96void ScriptLogPanelPopup::refresh() {
97 if (auto gjbgl = SCBaseGameLayer::get()) {

Callers 1

initMethod · 0.95

Calls 2

refreshMethod · 0.95
setVisibleMethod · 0.80

Tested by

no test coverage detected