mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 21:24:49 -04:00
105 lines
3.4 KiB
Text
105 lines
3.4 KiB
Text
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://src/Tools/Base.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://src/Tools/Text.gd" type="Script" id=2]
|
|
|
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="PixelPerfect" parent="." index="1"]
|
|
visible = false
|
|
|
|
[node name="EmptySpacer" parent="." index="2"]
|
|
visible = false
|
|
margin_top = 18.0
|
|
margin_bottom = 30.0
|
|
|
|
[node name="Mirror" parent="." index="3"]
|
|
visible = false
|
|
margin_top = 18.0
|
|
margin_bottom = 35.0
|
|
|
|
[node name="FontLabel" type="Label" parent="." index="4"]
|
|
margin_top = 18.0
|
|
margin_right = 116.0
|
|
margin_bottom = 32.0
|
|
text = "Font:"
|
|
align = 1
|
|
|
|
[node name="FontOptionButton" type="OptionButton" parent="." index="5"]
|
|
margin_top = 36.0
|
|
margin_right = 116.0
|
|
margin_bottom = 56.0
|
|
mouse_default_cursor_shape = 2
|
|
text = "Roboto"
|
|
items = [ "Roboto", null, false, 0, null, "NotoSansCJK", null, false, 1, null ]
|
|
selected = 0
|
|
|
|
[node name="TextSizeLabel" type="Label" parent="." index="6"]
|
|
margin_top = 60.0
|
|
margin_right = 116.0
|
|
margin_bottom = 74.0
|
|
text = "Text size:"
|
|
align = 1
|
|
|
|
[node name="TextSizeSpinBox" type="SpinBox" parent="." index="7"]
|
|
margin_top = 78.0
|
|
margin_right = 116.0
|
|
margin_bottom = 102.0
|
|
mouse_default_cursor_shape = 2
|
|
min_value = 1.0
|
|
max_value = 128.0
|
|
value = 16.0
|
|
|
|
[node name="LoadFontButton" type="Button" parent="." index="8"]
|
|
margin_top = 106.0
|
|
margin_right = 116.0
|
|
margin_bottom = 126.0
|
|
mouse_default_cursor_shape = 2
|
|
text = "Load Font"
|
|
|
|
[node name="FontFileDialog" type="FileDialog" parent="." index="9"]
|
|
margin_right = 400.0
|
|
margin_bottom = 400.0
|
|
rect_min_size = Vector2( 400, 400 )
|
|
window_title = "Open File(s)"
|
|
resizable = true
|
|
mode = 1
|
|
access = 2
|
|
filters = PoolStringArray( "*.ttf", "*.otf" )
|
|
current_dir = "/Users/Overloaded/Documents/#Orama Stuff/Pixelorama/#Main Repos/Pixelorama"
|
|
current_path = "/Users/Overloaded/Documents/#Orama Stuff/Pixelorama/#Main Repos/Pixelorama/"
|
|
|
|
[node name="OutlineLabel" type="Label" parent="." index="10"]
|
|
margin_top = 130.0
|
|
margin_right = 116.0
|
|
margin_bottom = 144.0
|
|
text = "Outline:"
|
|
align = 1
|
|
|
|
[node name="OutlineContainer" type="HBoxContainer" parent="." index="11"]
|
|
margin_top = 148.0
|
|
margin_right = 116.0
|
|
margin_bottom = 172.0
|
|
alignment = 1
|
|
|
|
[node name="OutlineColorPickerButton" type="ColorPickerButton" parent="OutlineContainer" index="0"]
|
|
margin_left = 7.0
|
|
margin_right = 31.0
|
|
margin_bottom = 24.0
|
|
rect_min_size = Vector2( 24, 0 )
|
|
mouse_default_cursor_shape = 2
|
|
color = Color( 1, 1, 1, 1 )
|
|
|
|
[node name="OutlineSpinBox" type="SpinBox" parent="OutlineContainer" index="1"]
|
|
margin_left = 35.0
|
|
margin_right = 109.0
|
|
margin_bottom = 24.0
|
|
mouse_default_cursor_shape = 2
|
|
[connection signal="item_selected" from="FontOptionButton" to="." method="_on_FontOptionButton_item_selected"]
|
|
[connection signal="value_changed" from="TextSizeSpinBox" to="." method="_on_TextSizeSpinBox_value_changed"]
|
|
[connection signal="pressed" from="LoadFontButton" to="." method="_on_LoadFontButton_pressed"]
|
|
[connection signal="files_selected" from="FontFileDialog" to="." method="_on_FontFileDialog_files_selected"]
|
|
[connection signal="popup_hide" from="FontFileDialog" to="." method="_on_FontFileDialog_popup_hide"]
|
|
[connection signal="color_changed" from="OutlineContainer/OutlineColorPickerButton" to="." method="_on_OutlineColorPickerButton_color_changed"]
|
|
[connection signal="value_changed" from="OutlineContainer/OutlineSpinBox" to="." method="_on_OutlineSpinBox_value_changed"]
|