MCPcopy Create free account
hub / github.com/dfranx/SHADERed / ShowOptions

Method ShowOptions

src/SHADERed/Objects/PluginManager.cpp:1264–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1262 }
1263 }
1264 void PluginManager::ShowOptions(const std::string& searchString)
1265 {
1266 std::string qLower = searchString;
1267 std::transform(qLower.begin(), qLower.end(), qLower.begin(), tolower);
1268
1269 for (int i = 0; i < m_plugins.size(); i++) {
1270 if (m_plugins[i]->Options_HasSection()) {
1271 std::string pluginName = m_names[i];
1272 std::transform(pluginName.begin(), pluginName.end(), pluginName.begin(), tolower);
1273 if (qLower.empty() || pluginName.find(qLower) != std::string::npos) {
1274 if (ImGui::CollapsingHeader(m_names[i].c_str(), ImGuiTreeNodeFlags_DefaultOpen))
1275 m_plugins[i]->Options_RenderSection();
1276 }
1277 }
1278 }
1279 }
1280 bool PluginManager::ShowSystemVariables(PluginSystemVariableData* data, ShaderVariable::ValueType type)
1281 {
1282 bool ret = false;

Callers 1

m_renderPluginsMethod · 0.80

Calls 5

findMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected