Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First split by a semicolon.
  2. Element 0 = Label line colour (Flash-style hexadecimal values)
  3. Element 1 = Width of line in pixels
  4. Element 2 = Label background fill colour
  5. Element 3 = Label font size
  6. Element 4 = Label font colour
  7. Element 5 = Label width in pixels (text)
  8. Element 6 = Label height in pixels (text)
  9. Element 7 = Label width in pixels (images)
  10. Element 8 = Label height in pixels (images)
  11. Element 9 = Mode: 1) single - each label is used once, 2) multiple - each label can used in an answer repeatedly.
  12. Element 10 = Style (label or menu)
  13. Element 11 - split by | character
    1. Split by $ character
      1. 0 = Label ID starting at zero.
      2. 1 = Instance of the label starting at zero (this is incremented by one when in repeating label mode)
      3. 2 = X coordinate of left of label (this coordinate being greater than 219 marks it as being a correct answer)
      4. 3 = Y coordinate of top of label
      5. 4 = Text (or image filename) of the label
      6. 5 = Option when using images - original width of image in pixels (it appears to be impossible to add images, I wonder if this is a left over from the flash version of this question)
      7. 6 = Option when using images - original height of image in pixels (it appears to be impossible to add images, I wonder if this is a left over from the flash version of this question)
  14. Element 12 (onward) - split by $ character:
    1. 0 = ID of additional line
    2. 1 = Type (line, bobble or arrow)
    3. 2 = Start x coordinate
    4. 3 = Start y coordinate
    5. 4 = End x coordinate
    6. 5 = End y coordinate

Student Answer

The answers to all labels are stored in the 'user_answer' field in the relevant log table for a single question. The format is thus:

...