|
@ -33,7 +33,7 @@ void ofTeleprompter::update() { |
|
|
currentSentence = (*activeScript)[currentLine].sentence; |
|
|
currentSentence = (*activeScript)[currentLine].sentence; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
currentLineIndex = ofToString(currentLine + 1) + " / " + ofToString(script.size() + 1); |
|
|
currentLineIndex = ofToString(currentLine + 1) + " / " + ofToString((*activeScript).size() + 1); |
|
|
|
|
|
|
|
|
// Teleprompter logic (letter by letter)
|
|
|
// Teleprompter logic (letter by letter)
|
|
|
if (currentLetterIndex < currentSentence.size()) { |
|
|
if (currentLetterIndex < currentSentence.size()) { |
|
@ -226,7 +226,7 @@ void ofTeleprompter::nextLinePressed() { |
|
|
|
|
|
|
|
|
ofLog() << "Next Line!"; |
|
|
ofLog() << "Next Line!"; |
|
|
|
|
|
|
|
|
if (currentLine < script.size()) { |
|
|
if (currentLine < (*activeScript).size()) { |
|
|
currentLine++; |
|
|
currentLine++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -315,7 +315,7 @@ void ofTeleprompter::keyPressed(int key){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ofTeleprompter::pastLine() { |
|
|
void ofTeleprompter::pastLine() { |
|
|
if (currentLine < script.size()) { |
|
|
if (currentLine > 0) { |
|
|
currentLine--; |
|
|
currentLine--; |
|
|
currentSpeaker = (*activeScript)[currentLine].speaker; |
|
|
currentSpeaker = (*activeScript)[currentLine].speaker; |
|
|
currentEmotion = (*activeScript)[currentLine].emotion; |
|
|
currentEmotion = (*activeScript)[currentLine].emotion; |
|
|