godot-git plugin addon

This commit is contained in:
sysek 2026-01-04 12:23:29 +01:00
parent 029c00736b
commit b7b75fceb8
10 changed files with 1397 additions and 17 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
# Godot 4+ specific ignores # Godot 4+ specific ignores
addons/
.godot/ .godot/
.nomedia .nomedia

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2016-2023 The Godot Engine community
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
[configuration]
entry_symbol = "git_plugin_init"
compatibility_minimum = "4.2.0"
[libraries]
linux.editor.x86_64 = "linux/libgit_plugin.linux.editor.x86_64.so"
macos.editor = "macos/libgit_plugin.macos.editor.universal.dylib"
windows.editor.x86_64 = "windows/libgit_plugin.windows.editor.x86_64.dll"

View file

@ -0,0 +1 @@
uid://bh3sfupyqx4bn

View file

@ -4,9 +4,8 @@ extends Control
@onready var new_character = get_node("Character/NewCharacter") @onready var new_character = get_node("Character/NewCharacter")
## Vars ## Vars
@onready var button_new = get_node("Menu/New") @onready var button_new = get_node("VBoxContainer/Menu/ButtonNew")
@onready var menu = get_node("Menu") @onready var menu = get_node("VBoxContainer/Menu")
@onready var button_test = get_node("Top/TopMenu/ButtonTest")
func _ready() -> void: func _ready() -> void:
pass pass

View file

@ -65,9 +65,9 @@ text = "!! TEST !!"
[node name="Character" type="MarginContainer" parent="."] [node name="Character" type="MarginContainer" parent="."]
layout_mode = 0 layout_mode = 0
offset_left = 8.0 offset_left = 8.0
offset_top = 64.0 offset_top = 56.0
offset_right = 792.0 offset_right = 792.0
offset_bottom = 592.0 offset_bottom = 584.0
theme_override_constants/margin_left = 5 theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5 theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5 theme_override_constants/margin_right = 5
@ -78,29 +78,31 @@ visible = false
layout_mode = 2 layout_mode = 2
checkbox_group = SubResource("ButtonGroup_ysn76") checkbox_group = SubResource("ButtonGroup_ysn76")
[node name="Menu" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0 layout_mode = 0
offset_left = 312.0 offset_left = 8.0
offset_top = 56.0 offset_top = 56.0
offset_right = 468.0 offset_right = 792.0
offset_bottom = 176.0 offset_bottom = 584.0
[node name="New" type="Button" parent="Menu"] [node name="Logo" type="TextureRect" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 300)
layout_mode = 2
[node name="Menu" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="ButtonNew" type="Button" parent="VBoxContainer/Menu"]
layout_mode = 2 layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c") theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c")
text = "Nowa postać" text = "Nowa postać"
[node name="Load" type="Button" parent="Menu"] [node name="ButtonLoad" type="Button" parent="VBoxContainer/Menu"]
layout_mode = 2 layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c") theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c")
disabled = true disabled = true
text = "Załaduj" text = "Załaduj"
[node name="Test" type="Button" parent="Menu"]
layout_mode = 2
theme_override_styles/focus = SubResource("StyleBoxEmpty_yty2c")
text = "Test"
[connection signal="pressed" from="Top/TopMenu/ButtonQuit" to="." method="_on_button_quit_pressed"] [connection signal="pressed" from="Top/TopMenu/ButtonQuit" to="." method="_on_button_quit_pressed"]
[connection signal="pressed" from="Top/TopMenu/ButtonRoll" to="Character/NewCharacter" method="_on_button_roll_pressed"] [connection signal="pressed" from="Top/TopMenu/ButtonRoll" to="Character/NewCharacter" method="_on_button_roll_pressed"]
[connection signal="pressed" from="Menu/New" to="." method="_on_new_pressed"] [connection signal="pressed" from="VBoxContainer/Menu/ButtonNew" to="." method="_on_new_pressed"]