Skip to content

Button Quiz Config

eisclimber edited this page Feb 15, 2024 · 3 revisions

Button Quiz Config

serializable struct in ExPresSXR.Interaction.ButtonQuiz
Use SetupDialog at ExPresS XR/Tutorial Button Quiz to create, edit and store

Description

Holds the config of a quiz to allow serialization.
It contains basic information about the type and the question in for of an array of QuizQuestions.

Members

Public Properties

  • QuizMode quizMode: The mode of the quiz. Either SingleChoice or MultipleChoice.
  • QuestionOrdering questionOrdering: The ordering of the questions. Either Ordered (ordering from the questions-array) or Randomize.
  • AnswersAmount answersAmount: Number of answer (and required buttons). Either One, Two, Three, Four or Differing.
  • AnswerOrdering answerOrdering: The ordering of the answers. Either Ordered (ordering from the question.answer*-arrays) or Randomize.
  • QuestionType questionType: The type of questions (what is displayed). Either Object, Text, Video or DifferingTypes (any of the first three).
  • AnswerType answerType: The type of answers (what is displayed on the buttons). Either Object, Text or DifferingTypes (any of the first two).
  • FeedbackMode feedbackMode: The type of feedback (what is displayed). Either ShowAnswers, Object, Text, Video or DifferingTypes (any of the first three).
  • FeedbackType feedbackType: What feedback (correct or incorrect) is shown. Either None, Always Right, Always Wrong or Random.
  • bool feedbackPrefixEnabled: If enabled, will add the feedbackPrefixText (plus a '\n') to every feedback.
  • string feedbackPrefixText: The prefix added to every feedback if feedbackPrefixEnabled is enabled. Default: DEFAULT_FEEDBACK_PREFIX
  • string usedFeedbackPrefix: (Readonly) The exact prefix added to every question (including a new line). Returns an empty string if no prefix should be added.
  • QuizQuestion[] questions: The questions that need to be answered to complete the quiz.
    If questionOrdering is set to Ordered, the questions are displayed in the order of the array.

Public Methods

  • string GetConfigCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR): (MultiColumnValue & HeaderReplacement) Returns the configuration data of this config as csv-string.
    The header is: "quizMode,questionOrdering,answersAmount,answersOrdering,questionType,answerType,feedbackMode,feedbackType"
  • string GetAllQuestionsCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR): (MultiColumnValue & HeaderReplacement) Returns a CSV-formatted string of all export values all QuizQuestions with header: QuizQuestion.GetQuestionCsvHeader().
    The header is: "questionIdx,questionVideo,questionObject,questionText,answerObject0,answerObject1,answerObject2,answerObject3,answerText0,answerText1,answerText2,answerText3,correctAnswers0,correctAnswers1,correctAnswers2,correctAnswers3,feedbackVideo,feedbackObject,feedbackText"
  • List<object> GetConfigCsvExportValuesList(): Returns the configuration data of this config as list of objects.

Static Methods

  • string GetEmptyCsvExportValues(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR): Returns a string of empty column for each column of the values exported by GetConfigCsvExportValues().
  • string GetConfigCsvHeader(char sep = CsvUtility.DEFAULT_COLUMN_SEPARATOR): Returns the csv header of the config.
  • string List<object> GetConfigCsvHeaderList(): Returns the csv header of the config as a list of objects.

Constants

  • NUM_CSV_EXPORT_COLUMNS = 8: Number of csv-columns of values returned the export functions.
  • string DEFAULT_FEEDBACK_PREFIX = "Correct Answer was:": Default prefix to be added to the feedback.

Enums

  • QuizMode: The mode of the quiz either SingleChoice or MultipleChoice.
  • QuestionOrdering: The ordering of the questions, either Ordered (order of in questions) or Randomize.
  • AnswersAmount: Number of answer (and required buttons) One, Two, Three, Four or Differing.
  • AnswerOrdering: The ordering of answers on the buttons, either Ordered (order within the answer arrays) or Randomize.
  • QuestionType: The type of questions (what is displayed) either Object, Text, Video or DifferingTypes (any of the first three).
  • AnswerType: The type of answers (what is displayed on the buttons) either Object, Text or DifferingTypes (any of the first two).
  • FeedbackMode: The type of feedback (what is displayed) either ShowAnswers, Object, Text, Video or DifferingTypes (any of the first three).
  • FeedbackType: What feedback (correct or incorrect) is shown either None, Always Right, Always Wrong or Random.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally