mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 09:34:43 -04:00
Open last edited project at startup or at will feature (#215)
* Created feature that will alllow user to open last edited project on Pixelorama startup or open last edited project at will. Co-authored-by: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
This commit is contained in:
parent
fef7627f73
commit
086679f1f0
9 changed files with 116 additions and 29 deletions
7
Prefabs/Dialogs/NoProjectEditedOrCreatedAlertDialog.tscn
Normal file
7
Prefabs/Dialogs/NoProjectEditedOrCreatedAlertDialog.tscn
Normal file
|
@ -0,0 +1,7 @@
|
|||
[gd_scene format=2]
|
||||
|
||||
[node name="NoProjectEditedOrCreatedAlertDialog" type="AcceptDialog"]
|
||||
dialog_text = "You haven't saved or opened any project in Pixelorama yet!"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
7
Prefabs/Dialogs/OpenLastProjectAlertDialog.tscn
Normal file
7
Prefabs/Dialogs/OpenLastProjectAlertDialog.tscn
Normal file
|
@ -0,0 +1,7 @@
|
|||
[gd_scene format=2]
|
||||
|
||||
[node name="OpenLastProjectAlertDialog" type="AcceptDialog"]
|
||||
margin_right = 209.0
|
||||
margin_bottom = 58.0
|
||||
window_title = "Alarm!"
|
||||
dialog_text = "Cannot find last project file."
|
|
@ -49,30 +49,39 @@ size_flags_horizontal = 3
|
|||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/ScrollContainer"]
|
||||
margin_right = 308.0
|
||||
margin_bottom = 1158.0
|
||||
margin_bottom = 1186.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="General" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_right = 306.0
|
||||
margin_bottom = 88.0
|
||||
margin_bottom = 116.0
|
||||
|
||||
[node name="SmoothZoom" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/General"]
|
||||
[node name="OpenLastProject" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/General"]
|
||||
margin_right = 306.0
|
||||
margin_bottom = 24.0
|
||||
hint_tooltip = "Opens last opened project on startup"
|
||||
mouse_default_cursor_shape = 2
|
||||
pressed = true
|
||||
text = "Open last project on startup"
|
||||
|
||||
[node name="SmoothZoom" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/General"]
|
||||
margin_top = 28.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 52.0
|
||||
hint_tooltip = "Adds a smoother transition when zooming in or out"
|
||||
mouse_default_cursor_shape = 2
|
||||
pressed = true
|
||||
text = "Smooth Zoom"
|
||||
|
||||
[node name="HSeparator2" type="HSeparator" parent="HSplitContainer/ScrollContainer/VBoxContainer/General"]
|
||||
margin_top = 28.0
|
||||
margin_top = 56.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 32.0
|
||||
margin_bottom = 60.0
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer/General"]
|
||||
margin_top = 36.0
|
||||
margin_top = 64.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 88.0
|
||||
margin_bottom = 116.0
|
||||
custom_constants/vseparation = 4
|
||||
custom_constants/hseparation = 4
|
||||
columns = 2
|
||||
|
@ -137,9 +146,9 @@ items = [ "None", null, false, 0, null, "Affect Brush's Alpha", null, false, 1,
|
|||
selected = 1
|
||||
|
||||
[node name="Languages" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 92.0
|
||||
margin_top = 120.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 484.0
|
||||
margin_bottom = 512.0
|
||||
|
||||
[node name="System Language" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Languages"]
|
||||
margin_right = 306.0
|
||||
|
@ -243,9 +252,9 @@ custom_fonts/font = ExtResource( 3 )
|
|||
text = "繁體中文 [zh_TW]"
|
||||
|
||||
[node name="Themes" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 488.0
|
||||
margin_top = 516.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 624.0
|
||||
margin_bottom = 652.0
|
||||
|
||||
[node name="Dark Theme" type="CheckBox" parent="HSplitContainer/ScrollContainer/VBoxContainer/Themes"]
|
||||
margin_right = 306.0
|
||||
|
@ -282,9 +291,9 @@ mouse_default_cursor_shape = 2
|
|||
text = "Light"
|
||||
|
||||
[node name="Canvas" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 628.0
|
||||
margin_top = 656.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 820.0
|
||||
margin_bottom = 848.0
|
||||
|
||||
[node name="GuideOptions" type="GridContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer/Canvas"]
|
||||
margin_right = 306.0
|
||||
|
@ -456,9 +465,9 @@ mouse_default_cursor_shape = 2
|
|||
color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="Image" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 824.0
|
||||
margin_top = 852.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 900.0
|
||||
margin_bottom = 928.0
|
||||
|
||||
[node name="ImageOptions" type="GridContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer/Image"]
|
||||
margin_right = 306.0
|
||||
|
@ -529,9 +538,9 @@ mouse_default_cursor_shape = 2
|
|||
color = Color( 0, 0, 0, 0 )
|
||||
|
||||
[node name="Shortcuts" type="VBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer"]
|
||||
margin_top = 904.0
|
||||
margin_top = 932.0
|
||||
margin_right = 306.0
|
||||
margin_bottom = 1158.0
|
||||
margin_bottom = 1186.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="HSplitContainer/ScrollContainer/VBoxContainer/Shortcuts"]
|
||||
margin_right = 306.0
|
||||
|
@ -796,6 +805,7 @@ __meta__ = {
|
|||
[connection signal="about_to_show" from="." to="." method="_on_PreferencesDialog_about_to_show"]
|
||||
[connection signal="popup_hide" from="." to="." method="_on_PreferencesDialog_popup_hide"]
|
||||
[connection signal="item_selected" from="HSplitContainer/Tree" to="." method="_on_Tree_item_selected"]
|
||||
[connection signal="pressed" from="HSplitContainer/ScrollContainer/VBoxContainer/General/OpenLastProject" to="." method="_on_OpenLastProject_pressed"]
|
||||
[connection signal="pressed" from="HSplitContainer/ScrollContainer/VBoxContainer/General/SmoothZoom" to="." method="_on_SmoothZoom_pressed"]
|
||||
[connection signal="toggled" from="HSplitContainer/ScrollContainer/VBoxContainer/General/GridContainer/LeftIndicatorCheckbox" to="." method="_on_LeftIndicatorCheckbox_toggled"]
|
||||
[connection signal="toggled" from="HSplitContainer/ScrollContainer/VBoxContainer/General/GridContainer/RightIndicatorCheckbox" to="." method="_on_RightIndicatorCheckbox_toggled"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue