This is the initial version:
You’ll see an easy survey sample. As said, I plan to talk about it on medium, but a while from now (probably I’ll get to the survey part 3-4 weeks from now).
But on the plus side, it’s insanely easy to use.
public static void show_survey() {
questions_window qw = new questions_window(survey.from_file( "photawe.txt")));
// you need to customize this
qw.model().user_email = sett.inst.user_email;
qw.model().user_name = sett.inst.user_name;
qw.model().is_on_saying_hi_page = true;
qw.on_complete = on_survey_complete;
qw.Show();
}
private static void on_survey_complete(survey_complete complete) {
sett.inst.user_email = complete.user_email;
sett.inst.user_name = complete.user_name;
var msg = complete.friendly_msg();
// you need to decide what to do with the result of the survey
}
Please let me know what you think