mirror of
https://forge.apps.education.fr/phroy/frankie-on-platform.git
synced 2024-01-27 11:32:04 +01:00
58 lines
2.6 KiB
Haxe
58 lines
2.6 KiB
Haxe
|
package arm.node;
|
||
|
|
||
|
@:keep class Camera_mode extends armory.logicnode.LogicTree {
|
||
|
|
||
|
var functionNodes:Map<String, armory.logicnode.FunctionNode>;
|
||
|
|
||
|
var functionOutputNodes:Map<String, armory.logicnode.FunctionOutputNode>;
|
||
|
|
||
|
public function new() {
|
||
|
super();
|
||
|
name = "Camera_mode";
|
||
|
this.functionNodes = new Map();
|
||
|
this.functionOutputNodes = new Map();
|
||
|
notifyOnAdd(add);
|
||
|
}
|
||
|
|
||
|
override public function add() {
|
||
|
var _SetProperty = new armory.logicnode.SetPropertyNode(this);
|
||
|
var _SetCamera = new armory.logicnode.SetCameraNode(this);
|
||
|
var _Branch = new armory.logicnode.BranchNode(this);
|
||
|
var _OnKeyboard_004 = new armory.logicnode.OnKeyboardNode(this);
|
||
|
_OnKeyboard_004.property0 = "Started";
|
||
|
_OnKeyboard_004.property1 = "f";
|
||
|
_OnKeyboard_004.addOutputs([_Branch]);
|
||
|
_Branch.addInput(_OnKeyboard_004, 0);
|
||
|
var _GetProperty = new armory.logicnode.GetPropertyNode(this);
|
||
|
_GetProperty.addInput(new armory.logicnode.ObjectNode(this, "Camera_fps"), 0);
|
||
|
_GetProperty.addInput(new armory.logicnode.StringNode(this, "camera_fps"), 0);
|
||
|
_GetProperty.addOutputs([_Branch]);
|
||
|
_Branch.addInput(_GetProperty, 0);
|
||
|
var _SetCamera_001 = new armory.logicnode.SetCameraNode(this);
|
||
|
_SetCamera_001.addInput(_Branch, 0);
|
||
|
_SetCamera_001.addInput(new armory.logicnode.ObjectNode(this, "Camera.001"), 0);
|
||
|
var _SetProperty_001 = new armory.logicnode.SetPropertyNode(this);
|
||
|
_SetProperty_001.addInput(_SetCamera_001, 0);
|
||
|
_SetProperty_001.addInput(new armory.logicnode.ObjectNode(this, "Camera_fps"), 0);
|
||
|
_SetProperty_001.addInput(new armory.logicnode.StringNode(this, "camera_fps"), 0);
|
||
|
var _Boolean_001 = new armory.logicnode.BooleanNode(this);
|
||
|
_Boolean_001.addInput(new armory.logicnode.BooleanNode(this, false), 0);
|
||
|
_Boolean_001.addOutputs([_SetProperty_001]);
|
||
|
_SetProperty_001.addInput(_Boolean_001, 0);
|
||
|
_SetProperty_001.addOutputs([new armory.logicnode.NullNode(this)]);
|
||
|
_SetCamera_001.addOutputs([_SetProperty_001]);
|
||
|
_Branch.addOutputs([_SetCamera_001]);
|
||
|
_Branch.addOutputs([_SetCamera]);
|
||
|
_SetCamera.addInput(_Branch, 1);
|
||
|
_SetCamera.addInput(new armory.logicnode.ObjectNode(this, "Camera_fps"), 0);
|
||
|
_SetCamera.addOutputs([_SetProperty]);
|
||
|
_SetProperty.addInput(_SetCamera, 0);
|
||
|
_SetProperty.addInput(new armory.logicnode.ObjectNode(this, "Camera_fps"), 0);
|
||
|
_SetProperty.addInput(new armory.logicnode.StringNode(this, "camera_fps"), 0);
|
||
|
var _Boolean = new armory.logicnode.BooleanNode(this);
|
||
|
_Boolean.addInput(new armory.logicnode.BooleanNode(this, true), 0);
|
||
|
_Boolean.addOutputs([_SetProperty]);
|
||
|
_SetProperty.addInput(_Boolean, 0);
|
||
|
_SetProperty.addOutputs([new armory.logicnode.NullNode(this)]);
|
||
|
}
|
||
|
}
|