Merge the read only button to the scenes that use it.

This commit is contained in:
Relintai 2022-07-14 14:41:11 +02:00
parent 2056a7a200
commit 9fc8f92e0f
3 changed files with 7 additions and 19 deletions

View File

@ -1,6 +1,5 @@
[gd_scene load_steps=35 format=2]
[gd_scene load_steps=34 format=2]
[ext_resource path="res://addons/file-editor/scenes/Readonly.tscn" type="PackedScene" id=1]
[ext_resource path="res://addons/file-editor/scripts/CSVEditor.gd" type="Script" id=2]
[sub_resource type="Image" id=31]
@ -397,10 +396,15 @@ margin_bottom = 19.0
custom_colors/font_color = Color( 0, 1, 0.156863, 1 )
text = "|"
[node name="Readonly" parent="Container/FileProperties" instance=ExtResource( 1 )]
[node name="Readonly" type="CheckBox" parent="Container/FileProperties"]
margin_left = 945.0
margin_right = 1024.0
margin_bottom = 24.0
size_flags_horizontal = 10
custom_icons/checked = SubResource( 58 )
custom_icons/unchecked = SubResource( 60 )
text = "Can Edit"
flat = true
[node name="EditDialog" type="AcceptDialog" parent="."]
anchor_left = 0.5

View File

@ -1,11 +0,0 @@
[gd_scene format=2]
[node name="Readonly" type="CheckBox"]
margin_left = 945.0
margin_right = 1024.0
margin_bottom = 19.0
size_flags_horizontal = 10
custom_colors/font_color = Color( 0.145098, 0.172549, 0.231373, 1 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
text = "Can Edit"
flat = true

View File

@ -33,9 +33,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_vertical = 3
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextEditor" type="TextEdit" parent="."]
margin_right = 1024.0
@ -204,8 +201,6 @@ margin_left = 945.0
margin_right = 1024.0
margin_bottom = 24.0
size_flags_horizontal = 10
custom_colors/font_color = Color( 0.145098, 0.172549, 0.231373, 1 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
custom_icons/checked = SubResource( 2 )
custom_icons/unchecked = SubResource( 4 )
text = "Can Edit"