| 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; |