MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / LoadHelp

Method LoadHelp

Source/HelpDisplay.cpp:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void 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
83void HelpDisplay::DrawModule()
84{

Callers

nothing calls this directly

Calls 4

ofToResourcePathFunction · 0.85
ofStringReplaceFunction · 0.85
ofSplitStringFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected