Commit graph

2136 commits

Author SHA1 Message Date
N8n5h 0dadfad886 remove remaining active_node's in implementation 2020-09-30 17:42:35 -03:00
N8n5h ee2764b877 Add two context menu options for logic nodes
The two new context menu options will let the user inspect the source code
of the node. For the haxe source the existing operator was used (ArmOpenNodeSource),
but it was modified because I thought it made more sense to guess the version the user has based on their last commit instead of master.
for python __module__ was used to obtain the relative path.

The options were appended to the existing menu instead of being its own class because I couldn't find how to implement it that way without redrawing.

- Added a way to obtain the last commit in utils without git cli
2020-09-30 17:42:35 -03:00
Moritz Brückner bb139d96f9 Fix SubString node socket labels 2020-09-28 16:21:18 +02:00
Moritz Brückner 431630d42e Update node docstrings 2020-09-28 15:58:41 +02:00
Lubos Lenco dc515c97d0
Merge pull request #1891 from niacdoial/master
Further handling of node depreciation
2020-09-28 10:14:34 +02:00
niacdoial 580902e8df and one more typo for the road 2020-09-28 10:07:03 +02:00
Lubos Lenco 95cc79339a
Merge pull request #1893 from MoritzBrueckner/on-application-state
Add "On Application State" node
2020-09-27 20:36:54 +02:00
Lubos Lenco 7042797185
Merge pull request #1894 from MoritzBrueckner/node-register
Automatically register new nodes and categories from libraries
2020-09-27 20:36:03 +02:00
E1e5en 1fec2d1e20 Get System Name
Get System Name - to get the name of the system while the application is running.

Output parameters:
- System Name — displays the system name as a string;
- List systems for quick comparison.
2020-09-27 20:22:41 +03:00
niacdoial 482a340c77 (fixed a few typos and docstrings in relation to the previous commit) 2020-09-27 17:17:22 +02:00
Moritz Brückner 4e234c0f56 Automatically register new nodes and categories from libraries 2020-09-27 17:12:45 +02:00
Moritz Brückner f4c004c8ea Reorganize imports according to PEP8 2020-09-27 17:12:22 +02:00
Moritz Brückner b132d4b171 Add "On Application State" node 2020-09-27 16:57:21 +02:00
niacdoial 24313d65a4 Further handling of node depreciation
(Depreciated nodes are moved elsewhere in the files to diminish clutter)

Also fixed a couple bugs for the handling of node replacement.
2020-09-26 16:14:35 +02:00
Lubos Lenco 9ad68b561a
Merge pull request #1888 from MoritzBrueckner/cwd_contextmanager
Implement context manager for safer cwd changing
2020-09-26 10:12:19 +02:00
Moritz Brückner fd4fcff19f Implement context manager for safer cwd changing 2020-09-25 21:20:11 +02:00
knowledgenude e01c7f5754 rename-material-labels 2020-09-24 21:20:21 -03:00
knowledgenude 4e114e02d3 replace-delete-by-remove 2020-09-24 21:02:26 -03:00
knowledgenude 618fa26dd4
Update LN_get_display_resolution.py 2020-09-24 19:54:29 -03:00
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