public BlockMouseGetPosition(Blueprint owner) : base(owner) { _out = new Connector(this, ConnectorType.Output); _out.name = "Mouse position"; _out.value = Vector.zero; }
public BlockControl(Blueprint owner) : base(owner) { c_out = new Connector(this, ConnectorType.Output); c_out.name = "Out"; c_out.color = Color.red; c_out.value = new ConnectorDummy(); }
public BlockHub(Blueprint owner) : base(owner) { c_out2 = new Connector(this, ConnectorType.Output); c_out2.name = "Out 2"; c_out2.color = Color.red; c_out2.value = new ConnectorDummy(); }
public BlockColor(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "Color"; value_color = Color.black; _output.value = value_color; width = 115; }
public BlockString(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "String"; value_text = ""; _output.value = ""; secondColor = Color.oliveDrab; }
public BlockFloatToString(Blueprint owner) : base(owner) { c_int = new Connector(this, ConnectorType.Input); c_int.name = "Int"; c_int.value = 0; c_out_string = new Connector(this, ConnectorType.Output); c_out_string.value = "0"; c_out_string.name = "Converted string"; }
public BlockInt(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "Int"; value_int = 0; _output.value = 0; width = 100; secondColor = Color.airForceBlue; }
public BlockVector(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "Vector"; value_vector = new Vector(); _output.value = value_vector; secondColor = Color.alizarinCrimson; width = 100; }
public BlockDrawText(Blueprint owner) : base(owner) { secondColor = Color.amethyst; mainColor = Color.canonicalAubergine; c_text = new Connector(this, ConnectorType.Input); c_text.name = "Text"; c_text.value = ""; c_position = new Connector(this, ConnectorType.Input); c_position.name = "Position"; c_position.value = new Vector(); c_center = new Connector(this, ConnectorType.Input); c_center.name = "Center"; c_center.value = new Vector(); c_scale = new Connector(this, ConnectorType.Input); c_scale.name = "Scale"; c_scale.value = new Vector(1, 1); c_angle = new Connector(this, ConnectorType.Input); c_angle.name = "Angle"; c_angle.value = 0; c_width = new Connector(this, ConnectorType.Input); c_width.name = "Width"; c_width.value = 100; c_height = new Connector(this, ConnectorType.Input); c_height.name = "Height"; c_height.value = 30; c_color = new Connector(this, ConnectorType.Input); c_color.name = "Color"; c_color.value = Color.black; c_font = new Connector(this, ConnectorType.Input); c_font.name = "Font"; c_font.value = Assets.find(typeof(Font)); if (c_font.value == null) { try { c_font.value = new OpenGLF.Font("Data/Fonts/OpenSans.ttf"); } catch { } } width = 200; }
public BlockFunction(Blueprint owner) : base(owner) { c_in = new Connector(this, ConnectorType.Input); c_in.name = "In"; c_in.color = Color.red; c_in.value = new ConnectorDummy(); c_out = new Connector(this, ConnectorType.Output); c_out.name = "Out"; c_out.color = Color.red; c_out.value = new ConnectorDummy(); }
public BlockSetAngle(Blueprint owner) : base(owner) { c_gameObject = new Connector(this, ConnectorType.Input); c_gameObject.name = "GameObject"; GameObject obj = new GameObject(); if (Engine.scene != null) Engine.scene.objects.Remove(obj); c_gameObject.value = obj; c_angle = new Connector(this, ConnectorType.Input); c_angle.name = "Angle"; c_angle.value = 0; }
public BlockGetPosition(Blueprint owner) : base(owner) { c_gameObject = new Connector(this, ConnectorType.Input); c_gameObject.name = "GameObject"; GameObject obj = new GameObject(); if (Engine.scene != null) Engine.scene.objects.Remove(obj); c_gameObject.value = obj; c_pos = new Connector(this, ConnectorType.Output); c_pos.name = "Position"; c_pos.value = Vector.zero; }
public BlockNewVector(Blueprint owner) : base(owner) { _a = new Connector(this, ConnectorType.Input); _a.name = "A"; _a.value = 0; _b = new Connector(this, ConnectorType.Input); _b.name = "B"; _b.value = 0; _vec = new Connector(this, ConnectorType.Output); _vec.name = "New Vector"; _vec.value = Vector.zero; }
public BlockVectorComponents(Blueprint owner) : base(owner) { c_vector = new Connector(this, ConnectorType.Input); c_vector.name = "Vector"; c_vector.value = new Vector(); c_x = new Connector(this, ConnectorType.Output); c_x.name = "X"; c_x.value = 0; c_y = new Connector(this, ConnectorType.Output); c_y.name = "Y"; c_y.value = 0; }
public BlockLookAt(Blueprint owner) : base(owner) { c_point = new Connector(this, ConnectorType.Input); c_point.name = "Point 1"; c_point.value = new Vector(); c_point2 = new Connector(this, ConnectorType.Input); c_point2.name = "Point 2"; c_point2.value = new Vector(); c_out_angle = new Connector(this, ConnectorType.Output); c_out_angle.name = "New angle"; c_out_angle.value = 0; }
public BlockDivide(Blueprint owner) : base(owner) { op1 = new Connector(this, ConnectorType.Input); op1.name = "Operand A"; op1.value = 0; op2 = new Connector(this, ConnectorType.Input); op2.name = "Operand B"; op2.value = 0; _result = new Connector(this, ConnectorType.Output); _result.name = "Result (A / B)"; _result.value = 0; }
public BlockGameObject(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "GameObject"; GameObject obj = new GameObject(); if (Engine.scene != null) Engine.scene.objects.Remove(obj); _output.value = obj; width = 120; if (blueprint.owner != null) { value_gameObject = blueprint.owner.gameObject; } }
public BlockMove(Blueprint owner) : base(owner) { c_gameObject = new Connector(this, ConnectorType.Input); c_gameObject.name = "GameObject"; GameObject obj = new GameObject(); if (Engine.scene != null) Engine.scene.objects.Remove(obj); c_gameObject.value = obj; c_position = new Connector(this, ConnectorType.Input); c_position.name = "Position"; c_position.value = new Vector(); c_out_position = new Connector(this, ConnectorType.Output); c_out_position.name = "New position"; c_out_position.value = new Vector(); }
public BlockCompare(Blueprint owner) : base(owner) { compareType = CompareType.Equal; c_obj1 = new Connector(this, ConnectorType.Input); c_obj1.name = "Value 1"; c_obj1.value = 0; c_obj2 = new Connector(this, ConnectorType.Input); c_obj2.name = "Value 2"; c_obj2.value = 0; c_out.name = "True"; c_out2 = new Connector(this, ConnectorType.Output); c_out2.name = "False"; c_out2.color = Color.red; c_out2.value = new ConnectorDummy(); }
public BlockFont(Blueprint owner) : base(owner) { _output = new Connector(this, ConnectorType.Output); _output.name = "Font"; try { value_font = (Font)Assets.find(typeof(Font)); } catch { try { value_font = new OpenGLF.Font("Data/Fonts/OpenSans.ttf"); } catch { } } _output.value = value_font; }
public Block(Blueprint owner) { ID = owner._ids; owner._ids += 1; owner.blocks.Add(this); blueprint = owner; font = (Font)Assets.find(typeof(Font)); if (font == null) { try { font = new Font("Data/Fonts/OpenSansB.ttf"); } catch { } } textColor = new OpenGLF.Color(textColor.r, textColor.g, textColor.b, 255); }
public BlockUpdate(Blueprint owner) : base(owner) { }
public BlockStart(Blueprint owner) : base(owner) { }
public BlockVariable(Blueprint owner) : base(owner) { }
public BlockBeforeDraw(Blueprint owner) : base(owner) { }
public override void Loaded() { if (blueprint != null) blueprint = (Blueprint)Assets.find(blueprint.RES_ID, typeof(Blueprint)); }
public BlockDraw(Blueprint owner) : base(owner) { }