예제 #1
0
 def evt_user_input(cls, input):
     irp = IRP()
     irp.__dict__.update(input.__dict__)
     ui_message('evt_user_input', irp)
     irp.wait()
     input.input = irp.input
     return input
예제 #2
0
파일: view.py 프로젝트: CoolCloud/thbattle
 def evt_user_input(cls, input):
     irp = IRP()
     irp.__dict__.update(input.__dict__)
     ui_message("evt_user_input", irp)
     irp.wait()
     input.input = irp.input
     return input
예제 #3
0
    def evt_action_after(cls, act):
        if hasattr(act, 'ui_meta'):
            if getattr(act.ui_meta, 'barrier', False):
                cls.ui_barrier_schedule(process_msg, ('evt_action_after', act))
                return act

        ui_message('evt_action_after', act)
        return act
예제 #4
0
파일: view.py 프로젝트: CoolCloud/thbattle
    def evt_action_after(cls, act):
        if hasattr(act, "ui_meta"):
            if getattr(act.ui_meta, "barrier", False):
                cls.ui_barrier_schedule(process_msg, ("evt_action_after", act))
                return act

        ui_message("evt_action_after", act)
        return act
예제 #5
0
    def handle(cls, evt, data):
        name = 'evt_%s' % evt
        try:
            f = getattr(cls, name)
        except AttributeError:
            ui_message(name, data)
            return data

        rst = f(data)
        return rst
예제 #6
0
파일: view.py 프로젝트: CoolCloud/thbattle
    def handle(cls, evt, data):
        name = "evt_%s" % evt
        try:
            f = getattr(cls, name)
        except AttributeError:
            ui_message(name, data)
            return data

        rst = f(data)
        return rst