add full functionality to add and edit groups in group view
This commit is contained in:
@ -23,3 +23,18 @@ func get_group_metadata() -> GroupMetadata:
|
||||
group_metadata.settings_overrides = override_editor_settings_menu.get_overrides()
|
||||
|
||||
return group_metadata
|
||||
|
||||
|
||||
func fill_from_group_metadata(p_name: String) -> void:
|
||||
name_line_edit.text = p_name
|
||||
icon_path_line_edit.text = group_metadata.icon_path
|
||||
description_text_edit.text = group_metadata.description
|
||||
override_editor_settings_menu.fill_from_dictionary(group_metadata.settings_overrides)
|
||||
|
||||
|
||||
func clear_ok_button_connections() -> void:
|
||||
for connection in get_signal_connection_list("confirmed"):
|
||||
var callable := connection["callable"] as Callable
|
||||
var _signal := connection["signal"] as Signal
|
||||
|
||||
_signal.disconnect(callable)
|
||||
|
@ -6,14 +6,14 @@
|
||||
[node name="GroupEditDialog" type="ConfirmationDialog"]
|
||||
initial_position = 1
|
||||
title = "Edit Group"
|
||||
size = Vector2i(678, 411)
|
||||
size = Vector2i(678, 419)
|
||||
script = ExtResource("1_ic3yh")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = 670.0
|
||||
offset_bottom = 362.0
|
||||
offset_left = 12.0
|
||||
offset_top = 12.0
|
||||
offset_right = 666.0
|
||||
offset_bottom = 366.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
Reference in New Issue
Block a user