예제 #1
0
파일: model.py 프로젝트: spacejump163/ai2
 def callback(path, node, editor):
     if path == "info.enter.act_name":
         parent = self.editable_info.enter
         idx = parent.act_name.get_index()
         arglist = node._choice_provider.arglists[idx]
         parent.clear_tail()
         TypedValueBuilder.add_fields_with_template(parent, self.arg_desc, *arglist)
     elif path == "info.leave.act_name":
         parent = self.editable_info.leave
         idx = parent.act_name.get_index()
         arglist = node._choice_provider.arglists[idx]
         parent.clear_tail()
         TypedValueBuilder.add_fields_with_template(parent, self.arg_desc, *arglist)
     refresh_handler()
예제 #2
0
 def callback(path, node, editor):
     if path == "info.enter.act_name":
         parent = self.editable_info.enter
         idx = parent.act_name.get_index()
         arglist = node._choice_provider.arglists[idx]
         parent.clear_tail()
         TypedValueBuilder.add_fields_with_template(
             parent, self.arg_desc, *arglist)
     elif path == "info.leave.act_name":
         parent = self.editable_info.leave
         idx = parent.act_name.get_index()
         arglist = node._choice_provider.arglists[idx]
         parent.clear_tail()
         TypedValueBuilder.add_fields_with_template(
             parent, self.arg_desc, *arglist)
     refresh_handler()
예제 #3
0
파일: model.py 프로젝트: spacejump163/ai2
 def __init__(self, uid, tree):
     self.tree = tree
     self.uid = uid
     self.children = []
     self.parent = None
     self.editable_info = TypedValueBuilder.build_object(self.EIT, "info")
예제 #4
0
 def __init__(self, uid, tree):
     self.tree = tree
     self.uid = uid
     self.children = []
     self.parent = None
     self.editable_info = TypedValueBuilder.build_object(self.EIT, "info")