imported into godot 3.1

master
Zac 4 years ago
parent 33508afea0
commit 04f80042d0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

@ -1,29 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/godot-git.png-d7ac435f39d77eea6618833b75aed563.stex"
[deps]
source_file="res://addons/godot-git-control.funabab/godot-git.png"
dest_files=[ "res://.import/godot-git.png-d7ac435f39d77eea6618833b75aed563.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

@ -1,29 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/logo.png-b8b61a09dbd3005e8497cb5271c00da6.stex"
[deps]
source_file="res://addons/godot-git-control.funabab/logo.png"
dest_files=[ "res://.import/logo.png-b8b61a09dbd3005e8497cb5271c00da6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

@ -1,7 +0,0 @@
[plugin]
name="Godot Git Control"
description="Simple Git integration for GodotEngine"
author="@funabab"
script="plugin.gd"
version="2.0.0-alpha"

@ -1,59 +0,0 @@
tool
extends EditorPlugin
const NAME = "GitControl";
const DIR_LANG = "res://addons/godot-git-control.funabab/scripts/lang/";
enum PluginMode {DEFAULT = 0, BOTTOM_DOCK = 1, TOOLBAR = 2};
var Git;
var Settings;
var Lang;
var control;
var control_toolbar_btn;
var toolbtn;
var plugin_mode = 0;
func _enter_tree():
Settings = load("res://addons/godot-git-control.funabab/scripts/settings.gd").new();
Lang = load_lang(Settings.get("language"));
Git = load("res://addons/godot-git-control.funabab/scripts/git.gd").new(get_editor_interface().get_base_control(), Settings, Lang);
plugin_mode = Settings.get_as_int("plugin_mode");
if plugin_mode == PluginMode.DEFAULT || plugin_mode == PluginMode.BOTTOM_DOCK:
control = load("res://addons/godot-git-control.funabab/scenes/main_gui.tscn").instance();
control.setup(Git);
toolbtn = add_control_to_bottom_panel(control, NAME);
Git.connect("action_event", self, "_on_action_event");
if plugin_mode == PluginMode.DEFAULT || plugin_mode == PluginMode.TOOLBAR:
control_toolbar_btn = load("res://addons/godot-git-control.funabab/scenes/git_control_toolbar.tscn").instance();
control_toolbar_btn.setup(Git);
add_control_to_container(CONTAINER_TOOLBAR, control_toolbar_btn);
Git.call_deferred("initialize"); ## should be called last
# Git.initialize(); ## should be called last
pass
func load_lang(lang):
return load(DIR_LANG + "lang_" + lang + ".gd");
pass
func _on_action_event(what, args):
if what == Git.action.UI_WORKSPACE_UPDATE:
if args.size() > 0:
toolbtn.text = NAME + "*";
else:
toolbtn.text = NAME;
pass
func _exit_tree():
if control:
Git.disconnect("action_event", self, "_on_action_event");
remove_control_from_bottom_panel(control);
control.free();
control = null;
if control_toolbar_btn:
remove_control_from_container(CONTAINER_TOOLBAR, control_toolbar_btn);
control_toolbar_btn.free();
toolbtn = null;
Git.kill_process();
pass

@ -1,102 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "commit_message_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_commit\");
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_enter_commit_msg\");
dialog_text = Lang.tr(\"prop_dialog_text_commit_msg\");
pass
func _get_result(custom):
return $commit_message/input.text;
pass
func _on_show_dialog(args):
$commit_message/input.text = \"\";
pass
"
_sections_unfolded = [ "Resource" ]
[node name="commit_message_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 549.0
margin_bottom = 245.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = true
window_title = "Enter commit message"
resizable = false
dialog_text = "commit message"
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Dialog", "Popup", "Rect" ]
[node name="commit_message" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 22.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
_sections_unfolded = [ "Margin" ]
[node name="input" type="TextEdit" parent="commit_message" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 533.0
margin_bottom = 187.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 3
size_flags_vertical = 3
text = ""
readonly = false
highlight_current_line = false
syntax_highlighting = false
show_line_numbers = false
highlight_all_occurrences = false
override_selected_font_color = false
context_menu_enabled = true
smooth_scrolling = false
v_scroll_speed = 80.0
hiding_enabled = 0
wrap_lines = false
caret_block_mode = false
caret_blink = false
caret_blink_speed = 0.65
caret_moving_by_right_click = true
_sections_unfolded = [ "Margin", "Size Flags" ]

@ -1,228 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "create_branch_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var new_branch_input;
var current_branch;
var branches = [];
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_create_branch\");
pass
func _get_custom_btn_text():
return Lang.tr(\"prop_btn_text_checkout_branch\");
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_create_branch\");
$container/current_branch/label.text = Lang.tr(\"prop_label_text_current_branch\");
$container/new_branch/label.text = Lang.tr(\"prop_label_text_new_branch\");
pass
func _on_ready():
new_branch_input = $container/new_branch/input;
new_branch_input.connect(\"text_changed\", self, \"_on_text_changed\");
validation();
pass
func _on_show_dialog(args):
new_branch_input.text = \"\";
pass
func _on_text_changed(new_text):
validation();
pass
func _get_result(custom):
return {
\"name\": new_branch_input.text,
\"checkout_branch\": custom == CUSTOM_ACTION
};
pass
func _on_action_event(what, args):
if what == manager.git.action.UI_BRANCH_UPDATE:
branches = args;
current_branch = branches[0];
$container/current_branch/input.text = current_branch;
pass
func validation():
var validate = is_input_valid();
get_ok().disabled = !validate;
get_custom_btn().disabled = !validate;
pass
func is_input_valid():
var branch_name = new_branch_input.text;
return branch_name && !branches.has(branch_name) && branch_name.find(\" \") == -1;
return
pass
"
_sections_unfolded = [ "Resource" ]
[node name="create_branch_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 549.0
margin_bottom = 138.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = ""
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Rect" ]
[node name="container" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
custom_constants/separation = 10
alignment = 0
_sections_unfolded = [ "Margin", "custom_constants" ]
[node name="current_branch" type="VBoxContainer" parent="container" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 533.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/current_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 533.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Current branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/current_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 533.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
editable = false
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
[node name="new_branch" type="VBoxContainer" parent="container" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 52.0
margin_right = 533.0
margin_bottom = 94.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/new_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 533.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Branch branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/new_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 533.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0

@ -1,291 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "create_tag_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var tag_name_input;
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_create_tag\");
pass
func _get_custom_btn_text():
return Lang.tr(\"prop_btn_text_force_tag\");
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_create_tag\");
$container/tag_name/label.text = Lang.tr(\"prop_label_text_tag_name\");
$container/tag_commit/label.text = Lang.tr(\"prop_label_text_commit_ref\");
$container/tag_commit/label.text = Lang.tr(\"prop_label_text_tag_commit_msg\");
pass
func _get_result(custom):
return {
tag_name = tag_name_input.text,
tag_commit_ref = $container/tag_commit/input.text,
tag_message = $container/tag_message/input.text,
force = custom == CUSTOM_ACTION
}
pass
func _on_ready():
tag_name_input = $container/tag_name/input;
tag_name_input.connect(\"text_changed\", self, \"_on_text_changed\");
validation();
pass
func _on_show_dialog(args):
tag_name_input.text = \"\";
$container/tag_message/input.text = \"\";
pass
func _on_text_changed(new_text):
validation();
pass
func validation():
var validate = validate_input();
get_ok().disabled = !validate;
get_custom_btn().disabled = !validate;
pass
func validate_input():
var tag_name = tag_name_input.text;
return tag_name && tag_name.find(\" \") == -1;
pass"
_sections_unfolded = [ "Resource" ]
[node name="create_tag_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 527.0
margin_bottom = 291.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = ""
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Rect" ]
[node name="container" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
_sections_unfolded = [ "Margin" ]
[node name="tag_name" type="VBoxContainer" parent="container" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 511.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/tag_name" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 511.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Tag name"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/tag_name" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 511.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
[node name="tag_commit" type="VBoxContainer" parent="container" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 46.0
margin_right = 511.0
margin_bottom = 88.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/tag_commit" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 511.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Commit ref"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/tag_commit" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 511.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
focus_mode = 2
context_menu_enabled = true
placeholder_text = "Optional"
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
_sections_unfolded = [ "Placeholder" ]
[node name="tag_message" type="VBoxContainer" parent="container" index="2"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 92.0
margin_right = 511.0
margin_bottom = 247.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 3
alignment = 0
_sections_unfolded = [ "Size Flags" ]
[node name="label" type="Label" parent="container/tag_message" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 511.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Tag message"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="TextEdit" parent="container/tag_message" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 511.0
margin_bottom = 155.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 3
text = ""
readonly = false
highlight_current_line = false
syntax_highlighting = false
show_line_numbers = false
highlight_all_occurrences = false
override_selected_font_color = false
context_menu_enabled = true
smooth_scrolling = false
v_scroll_speed = 80.0
hiding_enabled = 0
wrap_lines = false
caret_block_mode = false
caret_blink = false
caret_blink_speed = 0.65
caret_moving_by_right_click = true
_sections_unfolded = [ "Size Flags" ]

@ -1,53 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "delete_branch_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var selected_branch;
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_delete_branch\");
pass
func _get_custom_btn_text():
return Lang.tr(\"prop_btn_text_force_delete_branch\");
pass
func _get_result(custom):
return {
branch = selected_branch,
force = custom == CUSTOM_ACTION
}
pass
func _on_show_dialog(args):
selected_branch = args;
dialog_text = Lang.tr(\"confirm_delete_branch\") % selected_branch;
pass"
_sections_unfolded = [ "Resource" ]
[node name="delete_branch_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 444.0
margin_bottom = 70.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = "Alert!"
resizable = false
dialog_text = "Delete branch"
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Dialog", "Margin", "Rect" ]

@ -1,32 +0,0 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/godot-git-control.funabab/scenes/res/git_toolbar_icon.png" type="Texture" id=1]
[ext_resource path="res://addons/godot-git-control.funabab/scripts/gui/git_control_toolbar.gd" type="Script" id=2]
[node name="git_control_toolbar" type="MenuButton" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 12.0
margin_bottom = 20.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 0
shortcut = null
group = null
icon = ExtResource( 1 )
flat = true
align = 1
items = [ ]
script = ExtResource( 2 )
_sections_unfolded = [ "custom_fonts" ]

@ -1,231 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "gitignore_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var GitignoreManager;
var list_container;
var add_pattern_input;
var patterns = [];
func _on_ready():
list_container = $container/scroll_container/list_container;
add_pattern_input = $container/add_pattern/input;
get_close_button().visible = false;
$container/add_pattern/add_btn.connect(\"pressed\", self, \"_on_add_btn_pressed\");
GitignoreManager = manager.git.GitignoreManager;
pass
func _on_show_dialog(args):
patterns = GitignoreManager.load_patterns();
setup_ui();
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_gitignore_manager\");
pass
func _get_result(custom):
GitignoreManager.save_patterns(patterns);
pass
func _get_cancel_btn_text():
return null;
pass
func clear():
for i in range(list_container.get_child_count()):
list_container.get_child(i).queue_free();
pass
func setup_ui():
clear();
add_pattern_input.text = \"\";
for pattern in patterns:
list_container.add_child(get_list_item(pattern));
pass
func get_list_item(pattern):
var list_item = VBoxContainer.new();
var container = HBoxContainer.new();
var label = Label.new();
label.text = pattern;
label.name = \"label\";
label.hint_tooltip = pattern;
label.size_flags_horizontal = Control.SIZE_EXPAND_FILL;
var delete_btn = Button.new();
delete_btn.text = \"x\";
delete_btn.name = \"delete_btn\";
delete_btn.connect(\"pressed\", self, \"_on_list_item_delete_btn_pressed\", [list_item]);
container.add_child(label);
container.add_child(delete_btn);
list_item.add_child(container);
list_item.add_child(HSeparator.new());
return list_item;
pass
func _on_add_btn_pressed():
var pattern = add_pattern_input.text.strip_edges();
add_pattern_input.text = \"\";
if !pattern.empty() && !patterns.has(pattern):
patterns.append(pattern);
list_container.add_child(get_list_item(pattern));
pass
func _on_list_item_delete_btn_pressed(list_item):
patterns.remove(list_item.get_index());
list_item.queue_free();
pass
"
_sections_unfolded = [ "Resource" ]
[node name="gitignore_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 229.0
margin_bottom = 339.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = ""
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Dialog", "Rect" ]
[node name="container" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
custom_constants/separation = 2
alignment = 0
_sections_unfolded = [ "Margin", "custom_constants" ]
[node name="scroll_container" type="ScrollContainer" parent="container" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 213.0
margin_bottom = 269.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = true
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 3
size_flags_vertical = 3
scroll_horizontal_enabled = false
scroll_horizontal = 0
scroll_vertical_enabled = true
scroll_vertical = 0
_sections_unfolded = [ "Scroll", "Size Flags" ]
[node name="list_container" type="VBoxContainer" parent="container/scroll_container" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 213.0
margin_bottom = 269.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 0
_sections_unfolded = [ "Size Flags" ]
[node name="add_pattern" type="HBoxContainer" parent="container" index="1"]
editor/display_folded = true
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 271.0
margin_right = 213.0
margin_bottom = 295.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="input" type="LineEdit" parent="container/add_pattern" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 189.0
margin_bottom = 24.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 3
size_flags_vertical = 1
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
_sections_unfolded = [ "Rect", "Size Flags" ]
[node name="add_btn" type="Button" parent="container/add_pattern" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 193.0
margin_right = 213.0
margin_bottom = 24.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
text = "+"
flat = false
align = 1

File diff suppressed because it is too large Load Diff

@ -1,249 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "merge_branch_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var branch_btn;
var current_branch;
func _on_ready():
branch_btn = $container/merge_branch/branches;
current_branch = $container/current_branch/input;
pass
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_merge_branch\");
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_merge_branch\");
$container/current_branch/label.text = Lang.tr(\"prop_label_text_current_branch\");
$container/merge_branch/label.text = Lang.tr(\"prop_label_text_merge_branch\");
$container/no_fast_forward/checkbox.text = Lang.tr(\"prop_checkbox_text_no_ff\");
pass
func _get_result(custom):
return {
merge_branch_idx = branch_btn.get_selected_id(),
no_fast_forward = $container/no_fast_forward/checkbox.pressed
}
pass
func _on_action_event(what, args):
if what == manager.git.action.UI_BRANCH_UPDATE:
var branches = args;
branch_btn.clear();
current_branch.text = branches[0];
for i in range(args.size()):
if i > 0:
branch_btn.add_item(branches[i], i);
pass
"
_sections_unfolded = [ "Resource" ]
[node name="merge_branch_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 452.0
margin_bottom = 187.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = "Alert!"
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Rect" ]
[node name="container" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
_sections_unfolded = [ "Margin" ]
[node name="current_branch" type="VBoxContainer" parent="container" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 436.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/current_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 436.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Current branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/current_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 436.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
editable = false
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
[node name="merge_branch" type="VBoxContainer" parent="container" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 46.0
margin_right = 436.0
margin_bottom = 84.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/merge_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 436.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Merge from Branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="branches" type="OptionButton" parent="container/merge_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 436.0
margin_bottom = 38.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 2
shortcut = null
group = null
flat = false
align = 0
items = [ ]
selected = -1
[node name="no_fast_forward" type="VBoxContainer" parent="container" index="2"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 88.0
margin_right = 436.0
margin_bottom = 112.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="checkbox" type="CheckBox" parent="container/no_fast_forward" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 436.0
margin_bottom = 24.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = true
enabled_focus_mode = 2
shortcut = null
group = null
text = "No Fast-Forward"
flat = false
align = 0

@ -1,204 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "rebase_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var branch_btn;
var current_branch;
func _on_ready():
branch_btn = $container/rebase_on_branch/branches;
current_branch = $container/current_branch/input;
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_rebase_branch\");
$container/current_branch/label.text = Lang.tr(\"prop_label_text_current_branch\");
$container/rebase_on_branch/label.text = Lang.tr(\"prop_label_text_rebase_branch\");
pass
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_rebase_branch\");
pass
func _get_result(custom):
return branch_btn.get_selected_id();
pass
func _on_action_event(what, args):
if what == manager.git.action.UI_BRANCH_UPDATE:
var branches = args;
branch_btn.clear();
current_branch.text = branches[0];
for i in range(args.size()):
if i > 0:
branch_btn.add_item(branches[i], i);
pass"
_sections_unfolded = [ "Resource" ]
[node name="rebase_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 472.0
margin_bottom = 175.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = "Alert!"
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Rect" ]
[node name="container" type="VBoxContainer" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 8.0
margin_top = 8.0
margin_right = -8.0
margin_bottom = -36.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
_sections_unfolded = [ "Margin" ]
[node name="current_branch" type="VBoxContainer" parent="container" index="0"]
editor/display_folded = true
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 456.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/current_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 456.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Current Branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="input" type="LineEdit" parent="container/current_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 456.0
margin_bottom = 42.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
editable = false
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
[node name="rebase_on_branch" type="VBoxContainer" parent="container" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 46.0
margin_right = 456.0
margin_bottom = 84.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
[node name="label" type="Label" parent="container/rebase_on_branch" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 456.0
margin_bottom = 14.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 4
text = "Rebase on Branch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[node name="branches" type="OptionButton" parent="container/rebase_on_branch" index="1"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 18.0
margin_right = 456.0
margin_bottom = 38.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
action_mode = 0
enabled_focus_mode = 2
shortcut = null
group = null
flat = false
align = 0
items = [ ]
selected = -1

@ -1,12 +0,0 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://addons/godot-git-control.funabab/fonts/font_awesome.otf" type="DynamicFontData" id=1]
[resource]
size = 16
use_mipmaps = false
use_filter = false
font_data = ExtResource( 1 )
_sections_unfolded = [ "Font", "Font/fallback", "Settings" ]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 932 B

@ -1,29 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/git_toolbar_icon.png-5b363365a37a52a0dbce2e357353b701.stex"
[deps]
source_file="res://addons/godot-git-control.funabab/scenes/res/git_toolbar_icon.png"
dest_files=[ "res://.import/git_toolbar_icon.png-5b363365a37a52a0dbce2e357353b701.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

@ -1,12 +0,0 @@
[gd_resource type="DynamicFont" load_steps=2 format=2]
[ext_resource path="res://addons/godot-git-control.funabab/fonts/octicons.ttf" type="DynamicFontData" id=1]
[resource]
size = 16
use_mipmaps = false
use_filter = false
font_data = ExtResource( 1 )
_sections_unfolded = [ "Font", "Font/fallback", "Settings" ]

@ -1,14 +0,0 @@
[gd_resource type="DynamicFont" load_steps=3 format=2]
[ext_resource path="res://addons/godot-git-control.funabab/fonts/arial.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://addons/godot-git-control.funabab/fonts/font_awesome.otf" type="DynamicFontData" id=2]
[resource]
size = 14
use_mipmaps = false
use_filter = false
font_data = ExtResource( 2 )
fallback/0 = ExtResource( 1 )
_sections_unfolded = [ "Font", "Font/fallback", "Settings" ]

@ -1,39 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "revert_confirm_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
func _get_ok_btn_text():
return Lang.tr(\"prop_btn_text_revert_objects\");
pass
func _tr():
dialog_text = Lang.tr(\"prop_dialog_text_revert_objects\");
pass"
_sections_unfolded = [ "Resource" ]
[node name="revert_confirm_dialog" type="AcceptDialog" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_right = 398.0
margin_bottom = 84.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
popup_exclusive = false
window_title = "Alert!"
resizable = false
dialog_hide_on_ok = true
script = SubResource( 1 )
_sections_unfolded = [ "Dialog", "Rect" ]

@ -1,224 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
resource_name = "settings_dialog"
script/source = "tool
extends \"res://addons/godot-git-control.funabab/scripts/git_dialog.gd\"
var octicon_font = preload(\"res://addons/godot-git-control.funabab/scenes/res/octicon_font.tres\");
var list_container;
var Settings;
var settings_update_hash;
func _on_ready():
Settings = manager.git.Settings;
list_container = $panel/scroll_container/container;
get_close_button().visible = false;
set_ui();
pass
func _tr():
window_title = Lang.tr(\"prop_window_title_title_settings\");
pass
func _get_cancel_btn_text():
return null;
pass
func _get_result(custom):
Settings.save_settings();
return settings_update_hash != Settings.get_hash();
pass
func _on_show_dialog(args):
settings_update_hash = Settings.get_hash();
var child_count = list_container.get_child_count();
for i in range(child_count):
var input_node = list_container.get_child(i).get_child(0).get_node(\"input\");
if !input_node:
continue;
var default_value = input_node.get_meta(\"default_value\");
var modified = false;
if input_node is LineEdit:
input_node.text = Settings.get(input_node.get_meta(\"key\"));
modified = default_value != input_node.text;
elif input_node is CheckBox:
var toggled = Settings.get(input_node.get_meta(\"key\"));
input_node.pressed = toggled;
modified = default_value != toggled;
elif input_node is OptionButton:
var select = Settings.get_as_int(input_node.get_meta(\"key\"));
input_node.select(select);
modified = default_value != select;
list_container.get_child(i).get_child(0).get_node(\"reset\").visible = modified;
pass
func set_ui():
for key in Settings.LAYOUT:
var list_item = VBoxContainer.new();
var container = HBoxContainer.new();
var label = Label.new();
label.text = key.capitalize();
label.size_flags_horizontal = Control.SIZE_EXPAND_FILL;
container.add_child(label);
var input_node;
var default_value;
match(typeof(Settings.LAYOUT[key])):
TYPE_STRING:
input_node = LineEdit.new();
default_value = Settings.get_default(key);
input_node.size_flags_horizontal = Control.SIZE_EXPAND_FILL;
input_node.connect(\"text_changed\", self, \"_on_list_item_val_text_input_changed\", [container]);
TYPE_BOOL:
input_node = CheckBox.new();
input_node.text = manager.git.Lang.tr(\"value_on\");
default_value = Settings.get_default(key);
input_node.size_flags_horizontal = Control.SIZE_EXPAND_FILL;
input_node.connect(\"toggled\", self, \"_on_list_item_val_input_toggled\", [container]);
TYPE_ARRAY:
input_node = OptionButton.new();
default_value = Settings.get_default_as_int(key);
input_node.size_flags_horizontal = Control.SIZE_EXPAND_FILL;
var id = 0;
for arr in Settings.LAYOUT[key]:
input_node.add_item(arr, id);
id += 1;
input_node.connect(\"item_selected\", self, \"_on_list_item_val_option_input_selected\", [container]);
if input_node:
input_node.set_meta(\"key\", key);
input_node.set_meta(\"default_value\", default_value);
input_node.name = \"input\";
container.add_child(input_node);
var reset_btn = Button.new();
reset_btn.connect(\"pressed\", self, \"_on_list_item_reset_btn_pressed\", [container]);
reset_btn.name = \"reset\";