-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impletented: size selection (still not working
correctly), text editor, load text from file, text incipit selection, closing text selection, font size, background color selection, font color selection, zoom buttons, preview rect Connected: all tools with preview ui
- Loading branch information
1 parent
f3d6589
commit bf56a98
Showing
18 changed files
with
752 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[gd_resource type="Theme" load_steps=2 format=2] | ||
|
||
[ext_resource path="res://assets/temp.tres" type="DynamicFont" id=1] | ||
|
||
[resource] | ||
default_font = ExtResource( 1 ) | ||
OptionButton/fonts/font = ExtResource( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
font_path = "res://assets/Louis George Cafe Bold.ttf" | ||
|
||
[resource] | ||
size = 50 | ||
size = 35 | ||
font_data = SubResource( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://scripts/BackgroundColorSelection.cs" type="Script" id=1] | ||
|
||
[node name="BackgroundColorSelection" type="VBoxContainer"] | ||
anchor_left = 1.0 | ||
anchor_right = 1.0 | ||
margin_left = -447.0 | ||
margin_top = 30.0 | ||
margin_right = -54.0 | ||
margin_bottom = 74.0 | ||
custom_constants/separation = 5 | ||
script = ExtResource( 1 ) | ||
|
||
[node name="Button" type="Button" parent="."] | ||
margin_right = 393.0 | ||
margin_bottom = 20.0 | ||
text = "Background Color" | ||
|
||
[node name="ColorGrid" type="GridContainer" parent="."] | ||
margin_top = 25.0 | ||
margin_right = 393.0 | ||
margin_bottom = 25.0 | ||
custom_constants/vseparation = 5 | ||
custom_constants/hseparation = 5 | ||
columns = 5 | ||
|
||
[connection signal="button_down" from="Button" to="." method="_on_BackgroundColorSelection_button_down"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://scripts/ColorIcon.cs" type="Script" id=1] | ||
|
||
[node name="ColorIcon" type="Button"] | ||
self_modulate = Color( 0, 0, 0, 0 ) | ||
margin_right = 40.0 | ||
margin_bottom = 40.0 | ||
rect_min_size = Vector2( 80, 80 ) | ||
toggle_mode = true | ||
flat = true | ||
script = ExtResource( 1 ) | ||
|
||
[node name="ColorRect" type="ColorRect" parent="."] | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -40.0 | ||
margin_top = -40.0 | ||
margin_right = 40.0 | ||
margin_bottom = 40.0 | ||
rect_min_size = Vector2( 80, 80 ) | ||
mouse_filter = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
[gd_scene load_steps=4 format=2] | ||
[gd_scene load_steps=5 format=2] | ||
|
||
[ext_resource path="res://scenes/ToolsUI.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://scenes/PreviewUI.tscn" type="PackedScene" id=2] | ||
[ext_resource path="res://scripts/PreviewUI.cs" type="Script" id=3] | ||
[ext_resource path="res://scripts/MainControl.cs" type="Script" id=4] | ||
|
||
[node name="MainControl" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
script = ExtResource( 4 ) | ||
|
||
[node name="ToolsUI" parent="." instance=ExtResource( 1 )] | ||
unique_name_in_owner = true | ||
|
||
[node name="CenterContainer" type="CenterContainer" parent="."] | ||
[node name="PreviewContainer" type="CenterContainer" parent="."] | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -469.0 | ||
margin_top = -585.0 | ||
margin_top = -552.5 | ||
margin_right = 469.0 | ||
margin_bottom = 585.0 | ||
margin_bottom = 552.5 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="PreviewUI" parent="CenterContainer" instance=ExtResource( 2 )] | ||
[node name="PreviewUI" parent="PreviewContainer" instance=ExtResource( 2 )] | ||
unique_name_in_owner = true | ||
anchor_right = 0.0 | ||
anchor_bottom = 0.0 | ||
margin_left = 469.0 | ||
margin_top = 585.0 | ||
margin_top = 552.0 | ||
margin_right = 469.0 | ||
margin_bottom = 585.0 | ||
margin_bottom = 552.0 | ||
script = ExtResource( 3 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://scripts/TextEditor.cs" type="Script" id=1] | ||
|
||
[sub_resource type="DynamicFontData" id=1] | ||
font_path = "res://assets/Louis George Cafe Bold.ttf" | ||
|
||
[sub_resource type="DynamicFont" id=2] | ||
size = 30 | ||
font_data = SubResource( 1 ) | ||
|
||
[node name="TextEditor" type="VBoxContainer"] | ||
margin_top = 98.0 | ||
margin_right = 391.0 | ||
margin_bottom = 322.0 | ||
rect_min_size = Vector2( 450, 0 ) | ||
custom_constants/separation = 10 | ||
script = ExtResource( 1 ) | ||
|
||
[node name="TextEdit" type="TextEdit" parent="."] | ||
margin_right = 450.0 | ||
margin_bottom = 200.0 | ||
rect_min_size = Vector2( 100, 200 ) | ||
custom_fonts/font = SubResource( 2 ) | ||
text = " | ||
" | ||
draw_tabs = true | ||
draw_spaces = true | ||
wrap_enabled = true | ||
|
||
[node name="Buttons" type="HBoxContainer" parent="."] | ||
margin_top = 210.0 | ||
margin_right = 450.0 | ||
margin_bottom = 230.0 | ||
custom_constants/separation = 20 | ||
|
||
[node name="LoadFile" type="Button" parent="Buttons"] | ||
margin_right = 230.0 | ||
margin_bottom = 20.0 | ||
size_flags_horizontal = 3 | ||
text = "Load" | ||
|
||
[node name="Update" type="Button" parent="Buttons"] | ||
margin_left = 250.0 | ||
margin_right = 450.0 | ||
margin_bottom = 20.0 | ||
rect_min_size = Vector2( 200, 0 ) | ||
size_flags_vertical = 3 | ||
text = "Update Text" | ||
|
||
[connection signal="button_down" from="Buttons/LoadFile" to="." method="_on_LoadFile_button_down"] | ||
[connection signal="button_down" from="Buttons/Update" to="." method="_on_Update_button_down"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,159 @@ | ||
[gd_scene load_steps=3 format=2] | ||
[gd_scene load_steps=9 format=2] | ||
|
||
[ext_resource path="res://assets/temp.tres" type="DynamicFont" id=1] | ||
[ext_resource path="res://scenes/BackgroundColorSelection.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://scripts/ToolsUI.cs" type="Script" id=2] | ||
[ext_resource path="res://assets/ToolsUIBasic.tres" type="Theme" id=3] | ||
[ext_resource path="res://scenes/TextEditor.tscn" type="PackedScene" id=4] | ||
[ext_resource path="res://scenes/ZoomButtons.tscn" type="PackedScene" id=5] | ||
|
||
[sub_resource type="Theme" id=1] | ||
default_font = ExtResource( 1 ) | ||
OptionButton/fonts/font = ExtResource( 1 ) | ||
[sub_resource type="DynamicFontData" id=1] | ||
font_path = "res://assets/Louis George Cafe Bold.ttf" | ||
|
||
[sub_resource type="DynamicFont" id=2] | ||
size = 35 | ||
font_data = SubResource( 1 ) | ||
|
||
[sub_resource type="Theme" id=3] | ||
default_font = SubResource( 2 ) | ||
/fonts/font = SubResource( 2 ) | ||
|
||
[node name="ToolsUI" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
mouse_filter = 1 | ||
theme = ExtResource( 3 ) | ||
script = ExtResource( 2 ) | ||
|
||
[node name="ToolContainer" type="HBoxContainer" parent="."] | ||
anchor_left = 0.5 | ||
anchor_right = 0.5 | ||
margin_left = -518.0 | ||
margin_top = 48.0 | ||
margin_right = 518.0 | ||
margin_bottom = 402.0 | ||
custom_constants/separation = 15 | ||
|
||
[node name="FrameSizeSelection" type="OptionButton" parent="."] | ||
margin_left = 32.0 | ||
margin_top = 24.0 | ||
margin_right = 534.0 | ||
margin_bottom = 96.0 | ||
theme = SubResource( 1 ) | ||
custom_fonts/font = ExtResource( 1 ) | ||
[node name="VBoxContainer" type="VBoxContainer" parent="ToolContainer"] | ||
margin_right = 450.0 | ||
margin_bottom = 354.0 | ||
custom_constants/separation = 30 | ||
|
||
[node name="FrameSizeSelection" type="OptionButton" parent="ToolContainer/VBoxContainer" groups=["framesize"]] | ||
unique_name_in_owner = true | ||
margin_right = 450.0 | ||
margin_bottom = 46.0 | ||
rect_min_size = Vector2( 450, 0 ) | ||
text = "1:1 (1080x1080)" | ||
items = [ "1:1 (1080x1080)", null, false, 0, null, "9:16 (1080x1920)", null, false, 1, null ] | ||
selected = 0 | ||
|
||
[node name="TextEditor" parent="ToolContainer/VBoxContainer" instance=ExtResource( 4 )] | ||
unique_name_in_owner = true | ||
margin_top = 76.0 | ||
margin_right = 450.0 | ||
margin_bottom = 332.0 | ||
|
||
[node name="VBoxContainer2" type="VBoxContainer" parent="ToolContainer"] | ||
margin_left = 465.0 | ||
margin_right = 715.0 | ||
margin_bottom = 354.0 | ||
custom_constants/separation = 30 | ||
|
||
[node name="IncipitSelection" type="OptionButton" parent="ToolContainer/VBoxContainer2"] | ||
unique_name_in_owner = true | ||
margin_right = 250.0 | ||
margin_bottom = 46.0 | ||
rect_min_size = Vector2( 250, 0 ) | ||
align = 1 | ||
icon_align = 1 | ||
items = [ "", null, false, 0, null, "comunque...", null, false, 1, null, "e comunque...", null, false, 2, null, "o comunque...", null, false, 3, null ] | ||
selected = 0 | ||
|
||
[node name="ClosingSelection" type="OptionButton" parent="ToolContainer/VBoxContainer2"] | ||
unique_name_in_owner = true | ||
margin_top = 76.0 | ||
margin_right = 250.0 | ||
margin_bottom = 122.0 | ||
rect_min_size = Vector2( 250, 0 ) | ||
align = 1 | ||
icon_align = 1 | ||
items = [ "", null, false, 0, null, "-- INSERT --", null, false, 1, null, ":wq", null, false, 2, null ] | ||
selected = 0 | ||
|
||
[node name="FontSelection" type="OptionButton" parent="ToolContainer/VBoxContainer2"] | ||
unique_name_in_owner = true | ||
margin_top = 152.0 | ||
margin_right = 250.0 | ||
margin_bottom = 198.0 | ||
rect_min_size = Vector2( 250, 0 ) | ||
align = 1 | ||
icon_align = 1 | ||
items = [ "", null, false, 0, null, "-- INSERT --", null, false, 1, null, ":wq", null, false, 2, null ] | ||
selected = 0 | ||
|
||
[node name="FontSizeSpinBox" type="SpinBox" parent="ToolContainer/VBoxContainer2"] | ||
unique_name_in_owner = true | ||
margin_top = 228.0 | ||
margin_right = 250.0 | ||
margin_bottom = 278.0 | ||
min_value = 18.0 | ||
max_value = 50.0 | ||
value = 18.0 | ||
rounded = true | ||
align = 1 | ||
|
||
[node name="VBoxContainer3" type="VBoxContainer" parent="ToolContainer"] | ||
margin_left = 730.0 | ||
margin_right = 1036.0 | ||
margin_bottom = 354.0 | ||
custom_constants/separation = 25 | ||
|
||
[node name="BackgroundColorSelection" parent="ToolContainer/VBoxContainer3" instance=ExtResource( 1 )] | ||
anchor_left = 0.0 | ||
anchor_right = 0.0 | ||
margin_left = 0.0 | ||
margin_top = 0.0 | ||
margin_right = 306.0 | ||
margin_bottom = 51.0 | ||
_title = "Background Color" | ||
|
||
[node name="FontColorSelection" parent="ToolContainer/VBoxContainer3" instance=ExtResource( 1 )] | ||
anchor_left = 0.0 | ||
anchor_right = 0.0 | ||
margin_left = 0.0 | ||
margin_top = 76.0 | ||
margin_right = 306.0 | ||
margin_bottom = 127.0 | ||
_title = "Font Color" | ||
|
||
[node name="ZoomButtons" parent="ToolContainer/VBoxContainer3" instance=ExtResource( 5 )] | ||
|
||
[node name="FileDialog" type="FileDialog" parent="."] | ||
unique_name_in_owner = true | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -467.0 | ||
margin_top = -460.0 | ||
margin_right = 467.0 | ||
margin_bottom = 460.0 | ||
rect_min_size = Vector2( 400, 140 ) | ||
theme = SubResource( 3 ) | ||
window_title = "Open a File" | ||
mode = 0 | ||
access = 2 | ||
filters = PoolStringArray( "*.cmqtxt" ) | ||
show_hidden_files = true | ||
|
||
[connection signal="item_selected" from="ToolContainer/VBoxContainer/FrameSizeSelection" to="." method="_on_FrameSizeSelection_item_selected"] | ||
[connection signal="LoadPressed" from="ToolContainer/VBoxContainer/TextEditor" to="." method="_on_TextEditor_LoadPressed"] | ||
[connection signal="UpdateText" from="ToolContainer/VBoxContainer/TextEditor" to="." method="_on_TextEditor_UpdateText"] | ||
[connection signal="item_selected" from="ToolContainer/VBoxContainer2/IncipitSelection" to="." method="_on_IncipitSelection_item_selected"] | ||
[connection signal="item_selected" from="ToolContainer/VBoxContainer2/ClosingSelection" to="." method="_on_ClosingSelection_item_selected"] | ||
[connection signal="item_selected" from="ToolContainer/VBoxContainer2/FontSelection" to="." method="_on_ClosingSelection_item_selected"] | ||
[connection signal="value_changed" from="ToolContainer/VBoxContainer2/FontSizeSpinBox" to="." method="_on_FontSize_value_changed"] | ||
[connection signal="Selected" from="ToolContainer/VBoxContainer3/BackgroundColorSelection" to="." method="_on_BackgroundColorSelection_Selected"] | ||
[connection signal="Selected" from="ToolContainer/VBoxContainer3/FontColorSelection" to="." method="_on_FontColorSelection_Selected"] | ||
[connection signal="Changed" from="ToolContainer/VBoxContainer3/ZoomButtons" to="." method="_on_ZoomButtons_Changed"] | ||
[connection signal="file_selected" from="FileDialog" to="." method="_on_FileDialog_file_selected"] |
Oops, something went wrong.