Skip to content

Commit

Permalink
Fixed being unable to remove fake slabs by right-clicking on them in …
Browse files Browse the repository at this point in the history
…Slab Window
  • Loading branch information
rainlizard committed Jun 13, 2024
1 parent 963cbac commit 66dbdd2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 16 deletions.
5 changes: 0 additions & 5 deletions Scenes/AddCustomSlabWindow.gd
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ func update_type():
oCustomSlabVoxelView.modulate.a = 1


func _on_SlabsetSlabCheckBox_pressed():
update_type()

func _on_FakeSlabCheckBox_pressed():
update_type()


func _on_FakeSlabHelpButton_pressed():
Expand Down
2 changes: 1 addition & 1 deletion Scenes/Main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -7507,7 +7507,7 @@ script = SubResource( 20 )
[connection signal="confirmed" from="Ui/UiSystem/ConfirmDelete" to="Ui/UiSystem/MapBrowser" method="_on_ConfirmDelete_confirmed"]
[connection signal="confirmed" from="Ui/UiSystem/ConfirmDiscardChanges" to="Ui/UiSystem/Menu" method="_on_ConfirmDiscardChanges_confirmed"]
[connection signal="confirmed" from="Ui/UiSystem/ConfirmQuit" to="Editor" method="_on_ConfirmQuit_confirmed"]
[connection signal="confirmed" from="Ui/UiSystem/ConfirmDeleteFakeSlab" to="Ui/UiTools/PickSlabWindow" method="_on_ConfirmDeleteCustomSlab_confirmed"]
[connection signal="confirmed" from="Ui/UiSystem/ConfirmDeleteFakeSlab" to="Ui/UiTools/PickSlabWindow" method="_on_ConfirmDeleteFakeSlab_confirmed"]
[connection signal="pressed" from="Ui/UiSystem/ConfirmSaveBeforeQuit/VBoxContainer/HBoxContainer/ButtonConfirmExitSave" to="Ui/UiSystem/ConfirmSaveBeforeQuit" method="_on_ButtonConfirmExitSave_pressed"]
[connection signal="pressed" from="Ui/UiSystem/ConfirmSaveBeforeQuit/VBoxContainer/HBoxContainer/ButtonConfirmExitDontSave" to="Ui/UiSystem/ConfirmSaveBeforeQuit" method="_on_ButtonConfirmExitDontSave_pressed"]
[connection signal="pressed" from="Ui/UiSystem/ConfirmSaveBeforeQuit/VBoxContainer/HBoxContainer/ButtonConfirmExitCancel" to="Ui/UiSystem/ConfirmSaveBeforeQuit" method="_on_ButtonConfirmExitCancel_pressed"]
Expand Down
5 changes: 0 additions & 5 deletions Scenes/PositionEditor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ func set_txt(array):
$"HBoxContainer1/LineEditX".text = str(array[0])
if array.size() >= 2:
$"HBoxContainer1/LineEditY".text = str(array[1])


if array.size() >= 3:
$"HBoxContainer2/LineEditZ".text = str(array[2])
else:
# For Action Point, don't display Z field.
$"HBoxContainer2".visible = false
$"HBoxContainer2/LineEditZ".visible = false #Visibility is checked for oLineEditZ later on, so visibility is set for it

#$LinEditX.hint_tooltip =


func _on_LineEditX_focus_exited():
emit_signal("position_editor_focus_exited")
func _on_LineEditY_focus_exited():
Expand Down
12 changes: 7 additions & 5 deletions Scenes/PositionEditor.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@ text = "x"

[node name="LineEditX" type="LineEdit" parent="HBoxContainer1"]
margin_left = 7.0
margin_right = 71.0
margin_right = 512.0
margin_bottom = 14.0
size_flags_horizontal = 3
theme = ExtResource( 2 )
custom_constants/minimum_spaces = 12
placeholder_text = "x"
caret_blink = true

[node name="Label2" type="Label" parent="HBoxContainer1"]
margin_left = 71.0
margin_right = 78.0
margin_left = 512.0
margin_right = 519.0
margin_bottom = 14.0
text = "y"

[node name="LineEditY" type="LineEdit" parent="HBoxContainer1"]
margin_left = 78.0
margin_right = 142.0
margin_left = 519.0
margin_right = 1024.0
margin_bottom = 14.0
size_flags_horizontal = 3
theme = ExtResource( 2 )
custom_constants/minimum_spaces = 12
placeholder_text = "y"
Expand Down

0 comments on commit 66dbdd2

Please sign in to comment.