summaryrefslogtreecommitdiff
path: root/nextus/src/ofApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2023-04-19 18:43:02 +0100
committerTim Redfern <tim@getdrop.com>2023-04-19 18:43:02 +0100
commit192b6d22d5c523aebc7210b21846aeb4b74b2307 (patch)
tree3d58f3c11493848203b3896b3c9c44db19ed43ab /nextus/src/ofApp.cpp
parentd45fe66516082797eb1f3f41bb8d90e0bbd843c4 (diff)
adding text anim
Diffstat (limited to 'nextus/src/ofApp.cpp')
-rw-r--r--nextus/src/ofApp.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/nextus/src/ofApp.cpp b/nextus/src/ofApp.cpp
index 048a128..4a955a5 100644
--- a/nextus/src/ofApp.cpp
+++ b/nextus/src/ofApp.cpp
@@ -173,6 +173,10 @@ void ofApp::dragEvent(ofDragInfo dragInfo){
string extension= filename.substr(filename.find_last_of(".") + 1);
if (extension == "svg") {
svginput.load(filename);
+ } else if (extension == "txt"){
+ textinput.loadText(filename);
+ } else if (extension == "plt"){
+ textinput.loadPalette(filename);
} else {
ofLog()<<"cannot load "<<filename;
}