| 1295 | return ret; |
| 1296 | } |
| 1297 | bool PluginManager::ShowVariableFunctions(PluginFunctionData* data, ShaderVariable::ValueType type) |
| 1298 | { |
| 1299 | bool ret = false; |
| 1300 | for (int i = 0; i < m_plugins.size(); i++) { |
| 1301 | int nameCount = m_plugins[i]->VariableFunctions_GetNameCount((plugin::VariableType)type); |
| 1302 | |
| 1303 | for (int j = 0; j < nameCount; j++) { |
| 1304 | const char* name = m_plugins[i]->VariableFunctions_GetName((plugin::VariableType)type, j); |
| 1305 | if (ImGui::Selectable(name)) { |
| 1306 | data->Owner = m_plugins[i]; |
| 1307 | strcpy(data->Name, name); |
| 1308 | ret = true; |
| 1309 | } |
| 1310 | } |
| 1311 | } |
| 1312 | |
| 1313 | return ret; |
| 1314 | } |
| 1315 | } |