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

Method LoadText

Source/ScriptModule.cpp:1641–1652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1639}
1640
1641void ScriptReferenceDisplay::LoadText()
1642{
1643 File file(ofToResourcePath("scripting_reference.txt").c_str());
1644 if (file.existsAsFile())
1645 {
1646 std::string text = file.loadFileAsString().toStdString();
1647 ofStringReplace(text, "\r", "");
1648 mText = ofSplitString(text, "\n");
1649 }
1650
1651 mMaxScrollAmount = (int)mText.size() * 14;
1652}
1653
1654void ScriptReferenceDisplay::DrawModule()
1655{

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