Commit graph

1685 commits

Author SHA1 Message Date
knowledgenude fdf24de3fb logic-nodes-labels 2020-09-24 19:49:21 -03:00
Moritz Brückner bd50923411 Fix typo: obselete -> obsolete 2020-09-24 16:40:15 +02:00
knowledgenude 2d2e6d74db
Update LN_volume_trigger.py 2020-09-23 17:54:01 -03:00
knowledgenude cfbeb850bf
Update LN_blend_action.py 2020-09-23 17:26:09 -03:00
knowledgenude 79df9d7016 logic-nodes-descriptions 2020-09-23 17:12:25 -03:00
Lubos Lenco 58e4744aa1
Merge pull request #1880 from knowledgenude/master
Logic nodes improvements
2020-09-22 17:30:10 +02:00
Lubos Lenco 8f06f611b5
Merge pull request #1874 from MoritzBrueckner/lz4
Support for LZ4 compression
2020-09-21 09:48:20 +02:00
knowledgenude 558e22e20e logic-nodes-improvements 2020-09-20 15:10:01 -03:00
E1e5en 9ac4325a00 On Tap Screen - node for handling touches (double, triple…)
Input parameters:

Duration - time during which the number of touches is counted (default value is 0.3 seconds);
Interval - the time that must elapse between touches (default value is 0);
Repeat - the number of touches that need to be done to execute the event (default value is 2).
Output parameters:

Done - event for a successful completed action;
Fail - an event for a failed action;
Tap - event on each touch;
Tap Number - how many times the user has already touched the screen;
Coords - coordinates of the touch.
2020-09-18 08:37:44 +03:00
Moritz Brückner aab56427d5 Lz4: update docstring, Lz4.hx is now in Iron 2020-09-17 21:38:51 +02:00
Moritz Brückner 932d4d5065 Notification on LZ4 export that compressing might take some time 2020-09-17 21:32:05 +02:00
Moritz Brückner 8b3eefb382 Improve asset compression tooltip 2020-09-17 21:30:22 +02:00
QuantumCoderQC 5cf598bdf4 Custom Particle Node UI and implementation 2020-09-16 23:30:20 +02:00
QuantumCoderQC 822775b9cc Support parsing of Custom Particle Node in Vertex Shader 2020-09-16 23:28:21 +02:00
QuantumCoderQC 0b252093f5 Shadowmap and Depth shader parsing for Custom Particle Node 2020-09-16 23:24:51 +02:00
QuantumCoderQC fcc1db0743 Correct normals for instanced rendering when transparency enabled 2020-09-16 23:20:57 +02:00
QuantumCoderQC c3092e781c Add uniforms in Vertex Shader 2020-09-16 23:17:43 +02:00
Moritz Brückner 5cd6c3d09f Fix export for sockets with no default value 2020-09-16 16:39:35 +02:00
Lubos Lenco 88aaeffcf1
Merge pull request #1869 from E1e5en/on-swipe-logic-node
Logic Node - On Swipe
2020-09-15 12:50:01 +02:00
Lubos Lenco 495da3c4f2
Merge pull request #1868 from MoritzBrueckner/addnode-poll
Add poll() function to AddNodeOverride operator
2020-09-15 12:49:10 +02:00
E1e5en 813f77dc0a Logic Node - On Swipe
The node for the swipe event.

Input parameters:
- Time - duration of the swipe (default value 0.15 s);
- Min Length (px) - the minimum length that the swipe must “pass” (default value 100 px).

Output parameters:
- Direction - normalized vector of the swipe direction;
- Length (px) - the length of the swipe (to assess the “strength”);
The Length output parameter is calculated by the vector value (without normalization) to relate to the input value.
- Angle (0-360) - swipe angle in the range from 0 to 360 degrees (0 is on the right, i.e. Vector (1, 0) = 0 degrees).
- States are states with direction output (Up, Down …). By default, they are not displayed, but if you press “Add 4 State”, then 4 states will appear (Up, Down, Left, Right) and if again, then 8 states will already be displayed.
Determining direction for a state:
for 4 directions - "circle" is divided into 4 segments of 90 degrees;
for 8 directions - "circle" is divided into 8 segments of 45 degrees.
2020-09-15 09:08:59 +03:00
Moritz Brückner 73d8fbd1d6 Add poll() function to AddNodeOverride operator 2020-09-15 01:25:42 +02:00
Moritz Brückner 98fccc445a Fix naming of dynamic sockets 2020-09-14 23:20:19 +02:00
Moritz Brückner 818c2242da Don't write 'None' into the generated logic tree code 2020-09-14 23:11:03 +02:00
Lubos Lenco 0b01c4648d
Merge pull request #1864 from MoritzBrueckner/new-nodes
Some new nodes and improvements (by @knowledgenude )
2020-09-14 08:21:40 +02:00
Moritz Brückner 533c81e2cf Merge branch 'master' into new-nodes
# Conflicts:
#	blender/arm/logicnode/object/LN_get_visible.py
#	blender/arm/logicnode/object/LN_set_visible.py
2020-09-14 01:08:59 +02:00
Moritz Brückner e634fbf629 Fix export of String and Object sockets 2020-09-14 01:03:13 +02:00
knowledgenude 7d419481f2
Update .py files 2020-09-13 15:59:48 -03:00
knowledgenude e3c7731b63
Update object nodes .py 2020-09-13 15:43:27 -03:00
knowledgenude d2ecc78712
Improved nodes + LN_get_object_offscreen.py 2020-09-13 14:11:57 -03:00
knowledgenude 8d7c139375
Add LN_get_rigid_body_data.py 2020-09-13 14:09:42 -03:00
niacdoial 19064c60b5 populated a previously empty error message 2020-09-13 15:40:35 +02:00
niacdoial 28722ee866 Fixed one bug/exploit waiting to happen
(and removed a debug print)
2020-09-13 15:32:39 +02:00
niacdoial c8a6743819 Merge branch 'logic-nodes' into master
(additions: node versioning system, slight rework of the NodeSockets)
2020-09-13 11:36:41 +02:00
niacdoial bdc33cb419 added node versioning information to all node classes 2020-09-13 11:27:58 +02:00
Lubos Lenco b2c00f3dfa
Merge pull request #1858 from MoritzBrueckner/arm-flag
Add "armory" flag on export to differ between Armory and Kha
2020-09-13 10:47:14 +02:00
Lubos Lenco b89a757bc4
Merge pull request #1857 from E1e5en/master
Blender UI – Armory Trait – Logic Node
2020-09-13 10:27:14 +02:00
niacdoial cd730249af Merge branch 'node-versioning' into logic-nodes 2020-09-12 18:29:28 +02:00
niacdoial 3a2952ced8 Added node versioning
- changed the way custom node sockets are handled at several places
 - updated the `replaceAll` and `replace` functions used to perform node replacements
 - renamed and improved the NodeReplacement [new name] class, which represents a replacement task
 - added an arm_version property to all logic nodes, as well as a `get_replacement_node` method (to be overridden for each node)
 - added an option to declare a node as obselete in add_node()  (useful in order to have the node defined, but out of the menu)
 - added classes for UI popups linked to node updates, as well as an operator dedicated to said node update

Thanks to MoritzBrueckner for part of the ground work!
2020-09-12 18:15:53 +02:00
Moritz Brückner e8b1859e8b Add "armory" flag on export so libraries can differ between Armory and Kha 2020-09-11 14:43:59 +02:00
E1e5en 4304be7a0a Blender UI – Armory Trait – Logic Node
Add buttons:
- New Node Tree – creates and sets a new Node Tree in the list;
- Edit Node Tree – loads the Node Tree selected from the list into all Logic Node Editor;
- From Node Tree – loops through all the working Logic Node Editor and from the last in the list sets the value to the list.
2020-09-11 12:18:31 +03:00
Moritz Brückner 2d33398f9f Merge remote-tracking branch 'upstream/master' into logic-nodes
# Conflicts:
#	blender/arm/logicnode/action_set_visible.py
#	blender/arm/logicnode/physics_get_gravity.py
2020-09-09 21:11:49 +02:00
Moritz Brückner fccd83bf14 Rename MODULE_AS_CATEGORY -> PKG_AS_CATEGORY 2020-09-09 20:48:35 +02:00
Moritz Brückner 1bde147a23 AddCollectionnode -> CreateCollectionNode 2020-09-09 20:34:23 +02:00
Moritz Brückner 3ea181fc37 Fix operator call 2020-09-09 20:30:49 +02:00
Moritz Brückner e6de489451 Better names for array remove nodes 2020-09-09 20:27:54 +02:00
Moritz Brückner d0f3c1e946 Ensure correct node section order 2020-09-09 15:18:48 +02:00
knowledgenude 9c8b6d3b98
Update action_set_visible.py 2020-09-08 21:05:51 -03:00
knowledgenude 546f8824d0
value_get_mouse_lock.py , value_get_mouse_visible.py 2020-09-08 20:12:45 -03:00
knowledgenude bdb18496a3
canvas_get_visible.py 2020-09-08 19:34:45 -03:00