frankie-on-platform/armory3d/Sources/arm/node/Camera_mode.hx

58 lines
2.6 KiB
Haxe
Raw Normal View History

2022-07-24 16:34:50 +02:00
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)]);
}
}