summaryrefslogtreecommitdiff
path: root/futuregael/src/show.h
diff options
context:
space:
mode:
Diffstat (limited to 'futuregael/src/show.h')
-rw-r--r--futuregael/src/show.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/futuregael/src/show.h b/futuregael/src/show.h
index e3aeebe..c5a7605 100644
--- a/futuregael/src/show.h
+++ b/futuregael/src/show.h
@@ -92,10 +92,11 @@ public:
if (word2amt>1.0f) word2amt=1.0f;
outlines.clear();
- float p=-ofGetWidth()/2;
float s=0.1f;
+ float p=(-(ofGetWidth()/3))/s;
+
if (word1>-1&&word1<words.size()){
for (auto& g:words[word1].glyphs){
for (auto& o:g.outline){
@@ -178,7 +179,13 @@ public:
}
void play(){
- if (playline==script.end()) return;
+ if (playline==script.end()){
+ if (script.size()){
+ playline=script.begin();
+ ofLog()<<"Restarted!";
+ }
+ else return;
+ }
if (playline->audio.isLoaded()){
playline->audio.play();