Commit graph

1784 commits

Author SHA1 Message Date
Moritz Brückner 74d6b594a6 Two new logic nodes for the "Random" category 2020-10-19 18:21:56 +02:00
Lubos Lenco b36cf8327b
Merge pull request #1940 from MoritzBrueckner/fix-android-build-folder
Open correct folder after successful Android build
2020-10-19 09:09:25 +02:00
Moritz Brückner 597bb9aca5 Open correct folder after successful Android build 2020-10-18 21:57:49 +02:00
Moritz Brückner 863ec518f8 Set file encoding to utf-8 2020-10-18 17:50:35 +02:00
Lubos Lenco e9c351c7e0
Merge pull request #1936 from E1e5en/add-android-settings
Add Android Settings + LN Set Vibrate
2020-10-18 11:59:35 +02:00
E1e5en 1a34e202a7 Add Android Settings + LN Set Vibrate
1. For the new settings to fully function, you need to update the submodules so that this Pull Request (https://github.com/Kode/kincmake/pull/100) gets into armsdk. Extended settings via khafile.js.

2. Added Android Settings panel:
- invisible until the target platform android-hl is added to the list;
- inactive until the target platform android-hl is selected in the list.
Options:
- Orientation;
- Compile Version SDK - from 26 to 30, default 29;
- Minimal Version SDK - from 14 to 30, default 14;
- Target Version SDK - from 26 to 30, default 29;
- Permissions - a list of permissions. If I will duplicate entries in the list, then only unique entries will be included during export. By default, the list is empty;
- Android ABI Filters - a list of platforms to build for (arm64-v8a, armeabi-v7a, x86, x86_64). If I will duplicate entries in the list, then only unique entries will be included during export. By default, the list is empty. If the list is empty, then all platforms will be used (as before).

3. The enum (names of permissions) and the function have been added to the utils.py modules, which adds the specified value to the list of permissions. Feature added for ease of use from different locations (different logical nodes).

4. List of permissions:
- ACCESS_COARSE_LOCATION - Allows an app to access approximate location;
- ACCESS_NETWORK_STATE - Allows applications to access information about networks;
- ACCESS_FINE_LOCATION - Allows an app to access precise location;
- ACCESS_WIFI_STATE - Allows applications to access information about Wi-Fi network;
- BLUETOOTH - Allows applications to connect to paired bluetooth devices;
- BLUETOOTH_ADMIN - Allows applications to discover and pair bluetooth devices;
- CAMERA - Required to be able to access the camera device;
- EXPAND_STATUS_BAR - Allows an application to expand or collapse the status bar;
- FOREGROUND_SERVICE - Allows a regular application to use Service.startForeground;
- GET_ACCOUNTS - Allows access to the list of accounts in the Accounts Service;
- INTERNET - Allows applications to open network sockets';
- READ_EXTERNAL_STORAGE - Allows an application to read from external storage;
- VIBRATE - Allows access to the vibrator;
- WRITE_EXTERNAL_STORAGE - Allows an application to write to external storage.

5. Added logical node Set Vibrate:
Category: Native
Pulses the vibration hardware on the device for time in milliseconds, if such hardware exists.
Input parameters:
- Milliseconds - time in milliseconds (data type Int, default value 100).
When adding the logical node Set Vibrate, the permission is automatically added to the list, even if the target android-hl has not been added to the export list (using a function from utils.py).
2020-10-17 16:47:54 +03:00
Moritz Brückner 4bafe8130c Add option to open build directory after successfully publishing 2020-10-17 15:09:21 +02:00
Moritz Brückner 203da296ad Make arm.utils.folder() work with every folder 2020-10-17 15:08:56 +02:00
Moritz Brückner 6dcc2f3fe8 Add arm.utils.get_arm_preferences() 2020-10-17 15:08:20 +02:00
Henrique f2afb4fcdb rename-tilesheet-sockets 2020-10-14 10:56:41 -03:00
Henrique be137c3805 get-tilesheet-state-ln 2020-10-14 10:03:47 -03:00
Lubos Lenco aaa699c3cd
Merge pull request #1930 from E1e5en/screen-to-world-space-modif
Modifying the Screen To World Space node
2020-10-14 08:58:37 +02:00
E1e5en 6116c665c4 Modifying the Screen To World Space node
Modifying the Screen To World Space node

Input parameters:
- Screen X - value of screen coordinates along the X axis (data type Int);
- Screen Y - the value of the screen coordinates along the Y axis (data type Int).

Options:
- Separator Out - whether or not to separate the output parameters (vectors) into components (XYZ).

Output parameters:
- World - coordinates of a point in 3D space (Vector data type)
- Direction - normalized direction vector from the camera towards the point/cursor indication (data type Vector).
- X, Y, Z - components of the corresponding vectors (data type Float).
2020-10-13 20:50:30 +03:00
E1e5en ebfb324abf
Update
Correction of an error in the node description
2020-10-13 18:25:10 +03:00
E1e5en c67246cd1a Get System Language - LN
Get System Language
Category: Native
To get the current system language according to the IS0 639 standard.
The Krom platform always returns “en”.
2020-10-13 17:29:50 +03:00
Lubos Lenco 20c8be3d0d
Merge pull request #1924 from MoritzBrueckner/world-nodes
World nodes support and nodes parsing refactor
2020-10-11 20:23:53 +02:00
Moritz Brückner eeee016927 Remove unused parameter 2020-10-11 17:15:35 +02:00
Moritz Brückner 34eafda885 Fix noise texture node socket indices 2020-10-11 17:13:36 +02:00
knowledgenude 5abe984920
Update LN_set_object_material.py 2020-10-11 12:08:05 -03:00
knowledgenude 6ed63ad7d0
Update LN_resume_action.py 2020-10-11 12:06:36 -03:00
knowledgenude 46f0c3eb9b
Update LN_play_action.py 2020-10-11 12:05:44 -03:00
knowledgenude ffffd6bc88
Update LN_resume_trait.py 2020-10-11 12:03:49 -03:00
knowledgenude 1d0d22594f
Update LN_pause_trait.py 2020-10-11 12:02:23 -03:00
knowledgenude e5534c2998
Update LN_pause_tilesheet.py 2020-10-11 11:56:17 -03:00
Lubos Lenco 70ae143c9b
Merge pull request #1922 from E1e5en/debug-console-settings
Add Debug Console settings
2020-10-11 16:54:17 +02:00
Moritz Brückner 8f7e99530c Show node panels only when applicable 2020-10-11 00:24:11 +02:00
Moritz Brückner d8a5e9edea Fix parsing of glossy shaders 2020-10-11 00:11:25 +02:00
Moritz Brückner 64e23b9b72 Remove duplicate comments 2020-10-10 23:51:40 +02:00
Moritz Brückner ffaf09e5f6 Cleanup comment 2020-10-10 23:16:10 +02:00
Moritz Brückner 9c27779f19 Fix normalmap parsing 2020-10-10 23:09:16 +02:00
Moritz Brückner c7e42f3f9c Some more fixes 2020-10-10 23:04:56 +02:00
Moritz Brückner 4c13017c4f Fix export of brick/checker texture nodes 2020-10-10 22:54:11 +02:00
Moritz Brückner 860594266c Fix world shader compilation for various input coordinate types 2020-10-10 21:28:36 +02:00
Moritz Brückner 6b797b75ae Use world color for irradiance when no sky/texture exists but don't use static color only 2020-10-10 20:37:59 +02:00
Moritz Brückner c2cf227989 Autocompletion for rpdat 2020-10-10 20:34:39 +02:00
Moritz Brückner 2dd7407772 Fix parsing of transparent shader node 2020-10-10 20:27:19 +02:00
Moritz Brückner cf531856f7 Set vertex shader in world parser state 2020-10-10 20:26:39 +02:00
Moritz Brückner 3482878c22 Improve ParserState 2020-10-10 20:26:29 +02:00
E1e5en 305878db42 Add Debug Console settings
1. Adding the ability to customize display, scale (size), shortcuts to the DebugConsole class.
2. Adding a function to utils.py to get Debug Console settings from Render: Armory.
3. Added Debug Console settings to the Armory Project interface:
- Enable (default value - False);
- Position (Left, Center, Right, default value - Right);
- Scale Console (from 0.3 to 10);
- Visible.
4. Added transfer of Debug Console settings to exporter.py.
5. Added logical nodes to control DebugConsole while the application is running.
2020-10-10 13:10:34 +03:00
Moritz Brückner 2f11b0c406 Further improve ParserState 2020-10-09 23:32:41 +02:00
Henrique 677ae903a2 merge-pause-and-resume-nodes 2020-10-09 17:43:17 -03:00
Moritz Brückner 4f0316f076 cycles.py: move parents into ParserState 2020-10-09 21:15:21 +02:00
Moritz Brückner 2b45a3132b World shader: make procedural textures work 2020-10-09 19:46:20 +02:00
Moritz Brückner eed7329f57 Improve parsing oder 2020-10-09 19:46:06 +02:00
Moritz Brückner cc5513b9fc Cleanup whitespace 2020-10-09 19:45:40 +02:00
Moritz Brückner 968f687e5d Fix parser lookup 2020-10-09 19:43:54 +02:00
Moritz Brückner 23b9016f13 Fix node group handling 2020-10-09 19:24:55 +02:00
Moritz Brückner c6258894f1 Cleanup 2020-10-09 19:18:59 +02:00
Moritz Brückner ea5118dba9 cycles.py: Fix writing of normals 2020-10-09 19:18:44 +02:00
Moritz Brückner 51e2f10f02 Better error handling 2020-10-09 19:13:15 +02:00