Commit 9edc7a3e authored by alexandre burton's avatar alexandre burton
Browse files

AbstractClient: ajustement pour TextField natif

parent 7f869e9c
......@@ -2,6 +2,7 @@
#define ABSTRACTCLIENT_HPP
#include "ofMain.h"
//#include "ofxInputField.h"
namespace ofxCloudLib
{
......@@ -27,7 +28,7 @@ class AbstractClient
gui_.add(etiquette_field_.setup("nom", "nom"));
menu_is_ready_ = true;
auto parameter_string = (ofParameter<string> &)etiquette_field_.getParameter();
auto parameter_string = etiquette_field_.getParameter().cast<string>();
parameter_string.addListener(this, &AbstractClient::update_gui_name);
};
......@@ -58,7 +59,7 @@ class AbstractClient
bool dead_client_ = false;
ofMesh mesh_;
bool menu_is_ready_ = false;
ofxTextField etiquette_field_;
ofxInputField<std::string> etiquette_field_;
private:
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment