| 68 | } |
| 69 | |
| 70 | void HelpDisplay::LoadHelp() |
| 71 | { |
| 72 | juce::File file(ofToResourcePath("help.txt").c_str()); |
| 73 | if (file.existsAsFile()) |
| 74 | { |
| 75 | std::string help = file.loadFileAsString().toStdString(); |
| 76 | ofStringReplace(help, "\r", ""); |
| 77 | mHelpText = ofSplitString(help, "\n"); |
| 78 | } |
| 79 | |
| 80 | mMaxScrollAmount = (int)mHelpText.size() * 14; |
| 81 | } |
| 82 | |
| 83 | void HelpDisplay::DrawModule() |
| 84 | { |
nothing calls this directly
no test coverage detected