Browse Source

Merge pull request #882 from Starkium/Update2.5dGDScript

Change Icon header ordering for 2.5d GD Script Demo
Aaron Franke 2 years ago
parent
commit
956875c306

+ 2 - 1
misc/2.5d/addons/node25d/node_25d.gd

@@ -1,9 +1,10 @@
 # This node converts a 3D position to 2D using a 2.5D transformation matrix.
 # This node converts a 3D position to 2D using a 2.5D transformation matrix.
 # The transformation of its 2D form is controlled by its 3D child.
 # The transformation of its 2D form is controlled by its 3D child.
 @tool
 @tool
+@icon("res://addons/node25d/icons/node_25d_icon.png")
 extends Node2D
 extends Node2D
 class_name Node25D
 class_name Node25D
-@icon("res://addons/node25d/icons/node_25d_icon.png")
+
 
 
 # SCALE is the number of 2D units in one 3D unit. Ideally, but not necessarily, an integer.
 # SCALE is the number of 2D units in one 3D unit. Ideally, but not necessarily, an integer.
 const SCALE = 32
 const SCALE = 32

+ 2 - 1
misc/2.5d/addons/node25d/shadow_math_25d.gd

@@ -2,9 +2,10 @@
 # Place this ShadowMath25D node as a child of a Shadow25D, which
 # Place this ShadowMath25D node as a child of a Shadow25D, which
 # is below the target object in the scene tree (not as a child).
 # is below the target object in the scene tree (not as a child).
 @tool
 @tool
+@icon("res://addons/node25d/icons/shadow_math_25d_icon.png")
 extends CharacterBody3D
 extends CharacterBody3D
 class_name ShadowMath25D
 class_name ShadowMath25D
-@icon("res://addons/node25d/icons/shadow_math_25d_icon.png")
+
 
 
 # The maximum distance below objects that shadows will appear (in 3D units).
 # The maximum distance below objects that shadows will appear (in 3D units).
 var shadow_length = 1000.0
 var shadow_length = 1000.0

+ 2 - 1
misc/2.5d/addons/node25d/y_sort_25d.gd

@@ -3,9 +3,10 @@
 # because the execution order is different and otherwise
 # because the execution order is different and otherwise
 # sorting is delayed by one frame.
 # sorting is delayed by one frame.
 @tool
 @tool
+@icon("res://addons/node25d/icons/y_sort_25d_icon.png")
 extends Node # Note: NOT Node2D, Node25D, or Node2D
 extends Node # Note: NOT Node2D, Node25D, or Node2D
 class_name YSort25D
 class_name YSort25D
-@icon("res://addons/node25d/icons/y_sort_25d_icon.png")
+
 
 
 # Whether or not to automatically call sort() in _process().
 # Whether or not to automatically call sort() in _process().
 @export var sort_enabled := true
 @export var sort_enabled := true