feat: selection tracking
This commit is contained in:
parent
4aa1075fb6
commit
cb43179770
15 changed files with 217 additions and 20 deletions
|
|
@ -7,6 +7,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://bb0mnjwx58nt3" path="res://assets/icons/plus.svg" id="4_q68jb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bl3gn6qruuy8w" path="res://assets/icons/plane.svg" id="4_xg7d5"]
|
||||
[ext_resource type="Texture2D" uid="uid://d1te42w7wpkrx" path="res://assets/icons/noise.svg" id="5_eqbpn"]
|
||||
[ext_resource type="PackedScene" uid="uid://bsvvhue5x4rb" path="res://ui/primitive_inspectors/point_primitive_inspector.tscn" id="8_5tm2q"]
|
||||
|
||||
[sub_resource type="PointPrimitive" id="PointPrimitive_5tm2q"]
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ script/source = "extends Camera3D
|
|||
|
||||
var pan_speed = .001
|
||||
var rotate_speed := .0015
|
||||
var zoom_speed := 1.0
|
||||
var zoom_speed := 2.
|
||||
var rotating := false
|
||||
var panning := false
|
||||
var distance := 200
|
||||
|
|
@ -223,13 +224,12 @@ icons = {
|
|||
&"PointPrimitive": ExtResource("4_5lcyj")
|
||||
}
|
||||
|
||||
[node name="Inspector" type="TabContainer" parent="LeftPanel/VBoxContainer" unique_id=240272030]
|
||||
[node name="Inspector" type="LayerEditor" parent="LeftPanel/VBoxContainer" unique_id=833878161 node_paths=PackedStringArray("terrain")]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
current_tab = 0
|
||||
|
||||
[node name="Inspector" type="VBoxContainer" parent="LeftPanel/VBoxContainer/Inspector" unique_id=1225013744]
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
inspectors = {
|
||||
&"PointPrimitive": ExtResource("8_5tm2q")
|
||||
}
|
||||
terrain = NodePath("../../../TerrainMeshEditor")
|
||||
|
||||
[connection signal="primitives_changed" from="TerrainMeshEditor" to="TerrainMeshEditor" method="_on_primitives_changed"]
|
||||
|
|
|
|||
21
project/ui/editor_elements/float_editor.tscn
Normal file
21
project/ui/editor_elements/float_editor.tscn
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[gd_scene format=3 uid="uid://cwby0in0f2wi2"]
|
||||
|
||||
[node name="FloatEditor" type="HBoxContainer" unique_id=1730998858]
|
||||
offset_right = 318.0
|
||||
offset_bottom = 31.0
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="." unique_id=163542019]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
max_value = 300.0
|
||||
step = 0.01
|
||||
value = 200.0
|
||||
|
||||
[node name="SpinBox" type="SpinBox" parent="." unique_id=580598896]
|
||||
layout_mode = 2
|
||||
min_value = -10000.0
|
||||
max_value = 100000.0
|
||||
step = 0.01
|
||||
value = 10.0
|
||||
allow_greater = true
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
[gd_scene format=3 uid="uid://bsvvhue5x4rb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cwby0in0f2wi2" path="res://ui/editor_elements/float_editor.tscn" id="1_qb00w"]
|
||||
|
||||
[node name="PointPrimitive" type="MarginContainer" unique_id=905749607]
|
||||
offset_right = 302.0
|
||||
offset_bottom = 230.0
|
||||
theme_override_constants/margin_left = 5
|
||||
theme_override_constants/margin_top = 5
|
||||
theme_override_constants/margin_right = 5
|
||||
theme_override_constants/margin_bottom = 5
|
||||
metadata/_tab_index = 0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=236606520]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HeightLabel" type="Label" parent="VBoxContainer" unique_id=1478707845]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Height"
|
||||
|
||||
[node name="FloatEditor" parent="VBoxContainer" unique_id=1730998858 instance=ExtResource("1_qb00w")]
|
||||
layout_mode = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue