Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. method OnGUINodePropertyEditorSubmit(node as NodeRef)
  2.  
  3. where node is kindof QuestSpec
  4. if me.GetNameGUI().value != node.displayName
  5. node.SetMyName( me.GetNameGUI().value )
  6. .
  7. if me.GetDescGUI().value != node.DisplayDescription
  8. node.SetMyDescription(me.GetDescGUI().value)
  9. .
  10. if me.GetStartDialogue().value != node.q_DialogueStart
  11. node.q_DialogueStart = me.GetStartDialogue().value
  12. .
  13. if me.GetInProgressDialogue().value != node.q_DialogueInProgress
  14. node.q_DialogueInProgress = me.GetInProgressDialogue().value
  15. .
  16. if me.GetCompleteDialogue().value != node.q_DialogueCompletion
  17. node.q_DialogueCompletion = me.GetCompleteDialogue().value
  18. .
  19. clear node.q_Giver
  20. count as Integer
  21. foreach lbl in me.GetGiverNames().children
  22. count += 1
  23. name as String = lbl.name
  24. giverID as ID
  25. giverLbl as NodeRef of Class GUILabel = me.GetGiverIDs().children[count]
  26. giverID = giverLbl.text
  27. node.q_Giver[giverID] = name
  28. .
  29. clear node.q_Repeatable
  30. if me.IsRepeatable().checked
  31. node.q_Repeatable[me.IsRepeatable().checked] = me.GetRepeatWhen().E_dropDownBox_getDropDownBoxValue()
  32. else
  33. node.q_Repeatable[false] = ""
  34. .
  35.  
  36. clear node.q_RequireTurnIn
  37. count = 0
  38. foreach lbl in me.GetRecipientNames().children
  39. count += 1
  40. name as String = lbl.name
  41. recipID as ID
  42. recipLbl as NodeRef of Class GUILabel = me.GetRecipientIDs().children[count]
  43. recipID = recipLbl.text
  44. node.q_RequireTurnIn[recipID] = name
  45. .
  46. .
  47. .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement