Skip to content

Commit

Permalink
Threshold else return 0 checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed Feb 4, 2020
1 parent 951cfee commit 341cdd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions basicnodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ class NLActiveCameraParameterNode(bpy.types.Node, NLParameterNode):

def init(self, context):
NLParameterNode.init(self, context)
self.outputs.new(NLGameObjectSocket.bl_idname, "")
self.outputs.new(NLGameObjectSocket.bl_idname, "Camera")

def get_netlogic_class_name(self):
return "bgelogic.ParameterActiveCamera"
Expand Down Expand Up @@ -3252,7 +3252,7 @@ def init(self, context):
self.outputs.new(NLConditionSocket.bl_idname, "Always")

def draw_buttons(self, context, layout):
layout.prop(self, "repeat", text="Repeat: ON" if self.repeat else "Repeat: OFF", toggle=True)
layout.prop(self, "repeat", text="Each Frame" if self.repeat else "Once", toggle=True)

def get_netlogic_class_name(self):
return "bgelogic.ConditionAlways"
Expand Down Expand Up @@ -3499,7 +3499,7 @@ def init(self, context):
self.outputs.new(NLConditionSocket.bl_idname, "If Released")

def draw_buttons(self, context, layout):
layout.prop(self, "pulse", text="Pulse: ON" if self.pulse else "Pulse: OFF", toggle=True)
layout.prop(self, "pulse", text="Each Frame" if self.pulse else "Once", toggle=True)

def get_netlogic_class_name(self): return "bgelogic.ConditionKeyReleased"
def get_input_sockets_field_names(self): return ["key_code"]
Expand All @@ -3525,7 +3525,7 @@ def init(self, context):
self.outputs.new(NLConditionSocket.bl_idname, "If Pressed")

def draw_buttons(self, context, layout):
layout.prop(self, "pulse", text="Pulse: ON" if self.pulse else "Pulse: OFF", toggle=True)
layout.prop(self, "pulse", text="Each Frame" if self.pulse else "Once", toggle=True)

def get_netlogic_class_name(self):
return "bgelogic.ConditionMousePressed"
Expand Down Expand Up @@ -3555,7 +3555,7 @@ def init(self, context):
self.outputs.new(NLConditionSocket.bl_idname, "If Moved")

def draw_buttons(self, context, layout):
layout.prop(self, "pulse", text="Pulse: ON" if self.pulse else "Pulse: OFF", toggle=True)
layout.prop(self, "pulse", text="Each Frame" if self.pulse else "Once", toggle=True)

def get_netlogic_class_name(self):
return "bgelogic.ConditionMouseMoved"
Expand Down Expand Up @@ -3586,7 +3586,7 @@ def init(self, context):
self.outputs.new(NLConditionSocket.bl_idname, "If Released")

def draw_buttons(self, context, layout):
layout.prop(self, "pulse", text="Pulse: ON" if self.pulse else "Pulse: OFF", toggle=True)
layout.prop(self, "pulse", text="Each Frame" if self.pulse else "Once", toggle=True)

def get_netlogic_class_name(self): return "bgelogic.ConditionMouseReleased"
def get_input_sockets_field_names(self): return ["mouse_button_code"]
Expand Down

0 comments on commit 341cdd5

Please sign in to comment.