Skip to content

Commit

Permalink
Handle integers as integers in inspector and script editor number fields
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronfranke committed Apr 19, 2024
1 parent 5332323 commit 95b1ec5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://dbuxetec5qt2f"]

[ext_resource type="PackedScene" uid="uid://yl2tfblvbyak" path="res://creator/selection/inspector/primitive/inspector_number_field.tscn" id="1_38owa"]

[node name="InspectorLabeledIntegerField" instance=ExtResource("1_38owa")]
step = 1.0

[node name="SpinBox" parent="SpinBoxHolder" index="0"]
step = 1.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ signal request_variable_creation()
const INSPECTOR_PRIMITIVE_SCENES: Dictionary = {
ScriptBlock.PortType.ANY_DATA: preload("res://creator/selection/inspector/primitive/inspector_line_edit_field.tscn"),
ScriptBlock.PortType.BOOL: preload("res://creator/selection/inspector/primitive/inspector_bool.tscn"),
ScriptBlock.PortType.INT: preload("res://creator/selection/inspector/primitive/inspector_number_field.tscn"),
ScriptBlock.PortType.INT: preload("res://creator/selection/inspector/primitive/inspector_integer_field.tscn"),
ScriptBlock.PortType.FLOAT: preload("res://creator/selection/inspector/primitive/inspector_number_field.tscn"),
ScriptBlock.PortType.STRING: preload("res://creator/selection/inspector/primitive/inspector_line_edit_field.tscn"),
ScriptBlock.PortType.VECTOR2: preload("res://creator/selection/inspector/primitive/inspector_vector2.tscn"),
Expand Down

0 comments on commit 95b1ec5

Please sign in to comment.