init
This commit is contained in:
commit
f389e4e807
186 changed files with 10853 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
@tool
|
||||
extends VBoxContainer
|
||||
|
||||
@onready var _details_btn = $label
|
||||
@onready var _details_container = $MarginContainer/GridContainer
|
||||
|
||||
@onready var _split_layers_field = $MarginContainer/GridContainer/split_layers
|
||||
@onready var _only_visible_layers = $MarginContainer/GridContainer/only_visible_layers
|
||||
@onready var _layer_exclusion_pattern = $MarginContainer/GridContainer/layer_exclusion_pattern
|
||||
@onready var _output_name = $MarginContainer/GridContainer/output_name
|
||||
@onready var _do_not_create_resource = $MarginContainer/GridContainer/do_not_create_resource
|
||||
|
||||
var _entry
|
||||
|
||||
func _ready():
|
||||
_adjust_icon(false)
|
||||
_details_container.hide()
|
||||
_load_fields()
|
||||
|
||||
|
||||
func set_details(entry: Dictionary):
|
||||
_entry = entry
|
||||
|
||||
|
||||
func _load_fields():
|
||||
_split_layers_field.text = "Yes" if _entry.split_layers else "No"
|
||||
_only_visible_layers.text = "Yes" if _entry.only_visible_layers else "No"
|
||||
_layer_exclusion_pattern.text = _entry.layer_exclusion_pattern
|
||||
_output_name.text = _entry.output_name
|
||||
_output_name.text = _entry.output_name
|
||||
_do_not_create_resource.text = "Yes" if _entry.do_not_create_resource else "No"
|
||||
|
||||
|
||||
func _adjust_icon(is_visible: bool) -> void:
|
||||
var icon_name = "GuiTreeArrowDown" if is_visible else "GuiTreeArrowRight"
|
||||
_details_btn.icon = get_theme_icon(icon_name, "EditorIcons")
|
||||
|
||||
|
||||
func _on_label_pressed():
|
||||
_details_container.visible = not _details_container.visible
|
||||
_adjust_icon(_details_container.visible)
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://bbcunrpgig552
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://b1jb5yierm2bq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbcunrpgig552" path="res://addons/AsepriteWizard/interface/docks/wizard/wizard_nodes/details.gd" id="1_1v4dc"]
|
||||
|
||||
[node name="Details" type="VBoxContainer"]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_1v4dc")
|
||||
|
||||
[node name="label" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Details"
|
||||
flat = true
|
||||
alignment = 0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/h_separation = 5
|
||||
columns = 2
|
||||
|
||||
[node name="split_layers_label" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "Split layers:"
|
||||
|
||||
[node name="split_layers" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="only_visible_layers_label" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "Only visible layers:"
|
||||
|
||||
[node name="only_visible_layers" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="layer_exclusion_pattern_label" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "Layer Ex Pattern:"
|
||||
|
||||
[node name="layer_exclusion_pattern" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="output_name_label" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "Output name:"
|
||||
|
||||
[node name="output_name" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="do_not_create_resource_label" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
text = "Do not create resource:"
|
||||
|
||||
[node name="do_not_create_resource" type="Label" parent="MarginContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="pressed" from="label" to="." method="_on_label_pressed"]
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
@tool
|
||||
extends Label
|
||||
|
||||
|
||||
func set_date(timestamp: String):
|
||||
self.text = timestamp
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://c4myswgaye4va
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bs0i357m5d7ho"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4myswgaye4va" path="res://addons/AsepriteWizard/interface/docks/wizard/wizard_nodes/import_date.gd" id="1"]
|
||||
|
||||
[node name="import_date" type="Label"]
|
||||
offset_left = 660.0
|
||||
offset_top = 39.0
|
||||
offset_right = 774.0
|
||||
offset_bottom = 53.0
|
||||
size_flags_vertical = 0
|
||||
text = "2022-07-18 18:01"
|
||||
script = ExtResource("1")
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
@tool
|
||||
extends HBoxContainer
|
||||
|
||||
signal import_clicked(index)
|
||||
signal edit_clicked(index)
|
||||
signal removed_clicked(index)
|
||||
|
||||
var history_index = -1
|
||||
|
||||
|
||||
func _on_edit_pressed():
|
||||
emit_signal("edit_clicked", history_index)
|
||||
|
||||
|
||||
func _on_reimport_pressed():
|
||||
emit_signal("import_clicked", history_index)
|
||||
|
||||
|
||||
func _on_remove_pressed():
|
||||
emit_signal("removed_clicked", history_index)
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://c4qey4mp3xgdn
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://dujii8vn4caw1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4qey4mp3xgdn" path="res://addons/AsepriteWizard/interface/docks/wizard/wizard_nodes/list_actions.gd" id="1"]
|
||||
|
||||
[node name="actions" type="HBoxContainer"]
|
||||
offset_left = 784.0
|
||||
offset_top = 34.0
|
||||
offset_right = 950.0
|
||||
offset_bottom = 58.0
|
||||
custom_constants/separation = 5
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="edit" type="Button" parent="."]
|
||||
offset_right = 36.0
|
||||
offset_bottom = 20.0
|
||||
size_flags_vertical = 0
|
||||
text = "Edit"
|
||||
|
||||
[node name="reimport" type="Button" parent="."]
|
||||
offset_left = 41.0
|
||||
offset_right = 97.0
|
||||
offset_bottom = 20.0
|
||||
size_flags_vertical = 0
|
||||
text = "Import"
|
||||
|
||||
[node name="remove_at" type="Button" parent="."]
|
||||
offset_left = 102.0
|
||||
offset_right = 166.0
|
||||
offset_bottom = 20.0
|
||||
size_flags_vertical = 0
|
||||
text = "Remove"
|
||||
|
||||
[connection signal="pressed" from="edit" to="." method="_on_edit_pressed"]
|
||||
[connection signal="pressed" from="reimport" to="." method="_on_reimport_pressed"]
|
||||
[connection signal="pressed" from="remove_at" to="." method="_on_remove_pressed"]
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene format=3 uid="uid://nhs4ocpam7ku"]
|
||||
|
||||
[node name="output_path" type="LineEdit"]
|
||||
offset_left = 450.0
|
||||
offset_top = 34.0
|
||||
offset_right = 650.0
|
||||
offset_bottom = 58.0
|
||||
minimum_size = Vector2(200, 0)
|
||||
size_flags_vertical = 0
|
||||
text = "/some/output"
|
||||
align = 3
|
||||
editable = false
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
@tool
|
||||
extends LineEdit
|
||||
|
||||
func set_entry(entry: Dictionary):
|
||||
self.text = entry.source_file
|
||||
self.tooltip_text = entry.source_file
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://b5vp72sqovo7p
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bgf0nf3hqy0xq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b5vp72sqovo7p" path="res://addons/AsepriteWizard/interface/docks/wizard/wizard_nodes/source_path.gd" id="1"]
|
||||
|
||||
[node name="source_path" type="LineEdit"]
|
||||
offset_top = 34.0
|
||||
offset_right = 440.0
|
||||
offset_bottom = 58.0
|
||||
minimum_size = Vector2(200, 0)
|
||||
tooltip_text = "Output name / prefix: some_name
|
||||
Ex. Pattern: $_
|
||||
Split: Yes
|
||||
Only Visible: No
|
||||
No Resource: No"
|
||||
size_flags_vertical = 0
|
||||
text = "/some/very/long/source/path/to/test/field"
|
||||
editable = false
|
||||
script = ExtResource("1")
|
||||
Loading…
Add table
Add a link
Reference in a new issue