Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- method OnGUINodePropertyEditorSubmit(node as NodeRef)
- where node is kindof QuestSpec
- if me.GetNameGUI().value != node.displayName
- node.SetMyName( me.GetNameGUI().value )
- .
- if me.GetDescGUI().value != node.DisplayDescription
- node.SetMyDescription(me.GetDescGUI().value)
- .
- if me.GetStartDialogue().value != node.q_DialogueStart
- node.q_DialogueStart = me.GetStartDialogue().value
- .
- if me.GetInProgressDialogue().value != node.q_DialogueInProgress
- node.q_DialogueInProgress = me.GetInProgressDialogue().value
- .
- if me.GetCompleteDialogue().value != node.q_DialogueCompletion
- node.q_DialogueCompletion = me.GetCompleteDialogue().value
- .
- clear node.q_Giver
- count as Integer
- foreach lbl in me.GetGiverNames().children
- count += 1
- name as String = lbl.name
- giverID as ID
- giverLbl as NodeRef of Class GUILabel = me.GetGiverIDs().children[count]
- giverID = giverLbl.text
- node.q_Giver[giverID] = name
- .
- clear node.q_Repeatable
- if me.IsRepeatable().checked
- node.q_Repeatable[me.IsRepeatable().checked] = me.GetRepeatWhen().E_dropDownBox_getDropDownBoxValue()
- else
- node.q_Repeatable[false] = ""
- .
- clear node.q_RequireTurnIn
- count = 0
- foreach lbl in me.GetRecipientNames().children
- count += 1
- name as String = lbl.name
- recipID as ID
- recipLbl as NodeRef of Class GUILabel = me.GetRecipientIDs().children[count]
- recipID = recipLbl.text
- node.q_RequireTurnIn[recipID] = name
- .
- .
- .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement