From f89c0e04f34896fbbd9e08050905c547626b7ac4 Mon Sep 17 00:00:00 2001
From: t3du <32546729+t3du@users.noreply.github.com>
Date: Fri, 27 Dec 2024 14:36:32 +0000
Subject: [PATCH 1/2] browser category

---
 armory/blender/arm/logicnode/__init__.py                       | 2 ++
 armory/blender/arm/logicnode/{native => browser}/LN_alert.py   | 0
 armory/blender/arm/logicnode/{native => browser}/LN_confirm.py | 0
 .../logicnode/{native => browser}/LN_detect_mobile_browser.py  | 0
 armory/blender/arm/logicnode/{native => browser}/LN_loadUrl.py | 0
 armory/blender/arm/logicnode/{native => browser}/LN_prompt.py  | 0
 armory/blender/arm/logicnode/browser/__init__.py               | 3 +++
 7 files changed, 5 insertions(+)
 rename armory/blender/arm/logicnode/{native => browser}/LN_alert.py (100%)
 rename armory/blender/arm/logicnode/{native => browser}/LN_confirm.py (100%)
 rename armory/blender/arm/logicnode/{native => browser}/LN_detect_mobile_browser.py (100%)
 rename armory/blender/arm/logicnode/{native => browser}/LN_loadUrl.py (100%)
 rename armory/blender/arm/logicnode/{native => browser}/LN_prompt.py (100%)
 create mode 100644 armory/blender/arm/logicnode/browser/__init__.py

diff --git a/armory/blender/arm/logicnode/__init__.py b/armory/blender/arm/logicnode/__init__.py
index daf6afa7be..b18bd769c1 100644
--- a/armory/blender/arm/logicnode/__init__.py
+++ b/armory/blender/arm/logicnode/__init__.py
@@ -31,6 +31,7 @@ def init_categories():
     arm_nodes.add_category('Native', icon='MEMORY', section="basic",
                            description="The Native category contains nodes which interact with the system (Input/Output functionality, etc.) or Haxe.")
 
+    arm_nodes.add_category('Browser', icon='URL', section="basic")
     arm_nodes.add_category('Camera', icon='OUTLINER_OB_CAMERA', section="data")
     arm_nodes.add_category('Material', icon='MATERIAL', section="data")
     arm_nodes.add_category('Light', icon='LIGHT', section="data")
@@ -62,6 +63,7 @@ def init_categories():
 
     arm_nodes.add_category('Miscellaneous', icon='RESTRICT_COLOR_ON', section="misc")
     arm_nodes.add_category('Layout', icon='SEQ_STRIP_DUPLICATE', section="misc")
+    arm_nodes.add_category('Custom', icon='SEQ_STRIP_DUPLICATE', section="misc")
 
     # Make sure that logic node extension packs are displayed at the end
     # of the menu by default unless they declare it otherwise
diff --git a/armory/blender/arm/logicnode/native/LN_alert.py b/armory/blender/arm/logicnode/browser/LN_alert.py
similarity index 100%
rename from armory/blender/arm/logicnode/native/LN_alert.py
rename to armory/blender/arm/logicnode/browser/LN_alert.py
diff --git a/armory/blender/arm/logicnode/native/LN_confirm.py b/armory/blender/arm/logicnode/browser/LN_confirm.py
similarity index 100%
rename from armory/blender/arm/logicnode/native/LN_confirm.py
rename to armory/blender/arm/logicnode/browser/LN_confirm.py
diff --git a/armory/blender/arm/logicnode/native/LN_detect_mobile_browser.py b/armory/blender/arm/logicnode/browser/LN_detect_mobile_browser.py
similarity index 100%
rename from armory/blender/arm/logicnode/native/LN_detect_mobile_browser.py
rename to armory/blender/arm/logicnode/browser/LN_detect_mobile_browser.py
diff --git a/armory/blender/arm/logicnode/native/LN_loadUrl.py b/armory/blender/arm/logicnode/browser/LN_loadUrl.py
similarity index 100%
rename from armory/blender/arm/logicnode/native/LN_loadUrl.py
rename to armory/blender/arm/logicnode/browser/LN_loadUrl.py
diff --git a/armory/blender/arm/logicnode/native/LN_prompt.py b/armory/blender/arm/logicnode/browser/LN_prompt.py
similarity index 100%
rename from armory/blender/arm/logicnode/native/LN_prompt.py
rename to armory/blender/arm/logicnode/browser/LN_prompt.py
diff --git a/armory/blender/arm/logicnode/browser/__init__.py b/armory/blender/arm/logicnode/browser/__init__.py
new file mode 100644
index 0000000000..eb004bf43c
--- /dev/null
+++ b/armory/blender/arm/logicnode/browser/__init__.py
@@ -0,0 +1,3 @@
+from arm.logicnode.arm_nodes import add_node_section
+
+add_node_section(name='default', category='Browser')

From ae1fa18116080888dca0f4c5a5c7151932b5d0af Mon Sep 17 00:00:00 2001
From: t3du <32546729+t3du@users.noreply.github.com>
Date: Fri, 27 Dec 2024 11:39:13 -0300
Subject: [PATCH 2/2] Update __init__.py

---
 armory/blender/arm/logicnode/__init__.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/armory/blender/arm/logicnode/__init__.py b/armory/blender/arm/logicnode/__init__.py
index b18bd769c1..39d55168f1 100644
--- a/armory/blender/arm/logicnode/__init__.py
+++ b/armory/blender/arm/logicnode/__init__.py
@@ -63,7 +63,6 @@ def init_categories():
 
     arm_nodes.add_category('Miscellaneous', icon='RESTRICT_COLOR_ON', section="misc")
     arm_nodes.add_category('Layout', icon='SEQ_STRIP_DUPLICATE', section="misc")
-    arm_nodes.add_category('Custom', icon='SEQ_STRIP_DUPLICATE', section="misc")
 
     # Make sure that logic node extension packs are displayed at the end
     # of the menu by default unless they declare it otherwise