1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 09:39:48 +00:00
Pixelorama/src/UI/UI.tscn

377 lines
14 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=42 format=2]
2022-01-31 17:01:55 +00:00
[ext_resource path="res://src/UI/Tools.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/UI/Canvas/CanvasPreview.tscn" type="PackedScene" id=2]
2020-06-04 23:48:38 +00:00
[ext_resource path="res://src/UI/Tabs.gd" type="Script" id=3]
[ext_resource path="res://src/UI/Canvas/Rulers/VerticalRuler.gd" type="Script" id=4]
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=5]
[ext_resource path="res://src/UI/Canvas/Rulers/HorizontalRuler.gd" type="Script" id=6]
[ext_resource path="res://src/UI/Canvas/CameraMovement.gd" type="Script" id=7]
[ext_resource path="res://src/Shaders/Greyscale.gdshader" type="Shader" id=8]
[ext_resource path="res://src/Shaders/TransparentChecker.shader" type="Shader" id=9]
[ext_resource path="res://addons/dockable_container/layout.gd" type="Script" id=14]
[ext_resource path="res://src/UI/CanvasPreviewContainer.tscn" type="PackedScene" id=16]
[ext_resource path="res://src/UI/ColorPickers.tscn" type="PackedScene" id=17]
[ext_resource path="res://src/UI/Timeline/AnimationTimeline.tscn" type="PackedScene" id=18]
[ext_resource path="res://src/UI/Canvas/Canvas.tscn" type="PackedScene" id=19]
[ext_resource path="res://src/Palette/PalettePanel.tscn" type="PackedScene" id=20]
[ext_resource path="res://src/UI/ViewportContainer.gd" type="Script" id=23]
[ext_resource path="res://addons/dockable_container/layout_split.gd" type="Script" id=27]
[ext_resource path="res://addons/dockable_container/dockable_container.gd" type="Script" id=35]
[ext_resource path="res://addons/dockable_container/layout_panel.gd" type="Script" id=36]
[ext_resource path="res://src/UI/UI.gd" type="Script" id=37]
[ext_resource path="res://src/Shaders/UITransparency.gdshader" type="Shader" id=38]
[sub_resource type="ShaderMaterial" id=26]
shader = ExtResource( 38 )
shader_param/alpha = 0.0
shader_param/screen_resolution = Vector2( 1280, 720 )
shader_param/position = Vector2( 100, 100 )
shader_param/size = Vector2( 100, 100 )
[sub_resource type="Resource" id=1]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Tools" )
current_tab = 0
[sub_resource type="Resource" id=8]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Main Canvas" )
current_tab = 0
[sub_resource type="Resource" id=9]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Animation Timeline" )
current_tab = 0
[sub_resource type="Resource" id=10]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.90625
first = SubResource( 8 )
second = SubResource( 9 )
[sub_resource type="Resource" id=11]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Canvas Preview" )
current_tab = 0
[sub_resource type="Resource" id=20]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Color Pickers" )
current_tab = 0
[sub_resource type="Resource" id=21]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.911765
first = SubResource( 11 )
second = SubResource( 20 )
[sub_resource type="Resource" id=22]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Left Tool Options" )
current_tab = 0
[sub_resource type="Resource" id=23]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Right Tool Options" )
current_tab = 0
[sub_resource type="Resource" id=24]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.5
first = SubResource( 22 )
second = SubResource( 23 )
[sub_resource type="Resource" id=13]
resource_name = "Tabs"
script = ExtResource( 36 )
names = PoolStringArray( "Palette Panel" )
current_tab = 0
[sub_resource type="Resource" id=14]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.754808
first = SubResource( 24 )
second = SubResource( 13 )
[sub_resource type="Resource" id=15]
resource_name = "Split"
script = ExtResource( 27 )
direction = 1
percent = 0.332031
first = SubResource( 21 )
second = SubResource( 14 )
[sub_resource type="Resource" id=16]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.962785
first = SubResource( 10 )
second = SubResource( 15 )
[sub_resource type="Resource" id=5]
resource_name = "Split"
script = ExtResource( 27 )
direction = 0
percent = 0.0
first = SubResource( 1 )
second = SubResource( 16 )
[sub_resource type="Resource" id=25]
resource_name = "Layout"
script = ExtResource( 14 )
root = SubResource( 5 )
hidden_tabs = {
}
2021-08-18 17:13:56 +00:00
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 9 )
shader_param/size = 10.0
shader_param/alpha = 1.0
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
shader_param/color2 = Color( 1, 1, 1, 1 )
shader_param/offset = Vector2( 0, 0 )
shader_param/scale = Vector2( 0, 0 )
shader_param/rect_size = Vector2( 0, 0 )
shader_param/follow_movement = false
shader_param/follow_scale = false
[sub_resource type="ShaderMaterial" id=27]
shader = ExtResource( 8 )
2021-08-18 17:13:56 +00:00
[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 9 )
shader_param/size = 10.0
shader_param/alpha = 1.0
shader_param/color1 = Color( 0.7, 0.7, 0.7, 1 )
shader_param/color2 = Color( 1, 1, 1, 1 )
shader_param/offset = Vector2( 0, 0 )
shader_param/scale = Vector2( 0, 0 )
shader_param/rect_size = Vector2( 0, 0 )
shader_param/follow_movement = false
shader_param/follow_scale = false
[node name="UI" type="Panel"]
material = SubResource( 26 )
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 37 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DockableContainer" type="Container" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 35 )
__meta__ = {
"_edit_use_anchors_": false
}
tabs_visible = false
layout = SubResource( 25 )
2022-01-31 17:01:55 +00:00
[node name="Tools" parent="DockableContainer" instance=ExtResource( 1 )]
2022-01-31 22:54:33 +00:00
margin_left = 4.0
margin_top = 8.0
margin_right = -1234.0
margin_bottom = -4.0
[node name="Main Canvas" type="VBoxContainer" parent="DockableContainer"]
margin_left = 66.0
margin_top = 8.0
margin_right = 938.0
margin_bottom = 532.0
size_flags_horizontal = 3
size_flags_vertical = 3
2020-06-04 23:48:38 +00:00
custom_constants/separation = 0
[node name="TabsContainer" type="PanelContainer" parent="DockableContainer/Main Canvas"]
margin_right = 872.0
2020-06-04 23:48:38 +00:00
margin_bottom = 38.0
[node name="Tabs" type="Tabs" parent="DockableContainer/Main Canvas/TabsContainer"]
2020-06-04 23:48:38 +00:00
margin_left = 7.0
margin_top = 7.0
margin_right = 865.0
2020-06-04 23:48:38 +00:00
margin_bottom = 31.0
tab_align = 0
tab_close_display_policy = 2
2020-06-04 23:48:38 +00:00
drag_to_rearrange_enabled = true
script = ExtResource( 3 )
[node name="HorizontalRuler" type="Button" parent="DockableContainer/Main Canvas"]
2020-06-04 23:48:38 +00:00
margin_top = 38.0
margin_right = 872.0
margin_bottom = 58.0
rect_min_size = Vector2( 0, 16 )
focus_mode = 0
mouse_default_cursor_shape = 14
action_mode = 0
script = ExtResource( 6 )
[node name="HSplitContainer" type="HSplitContainer" parent="DockableContainer/Main Canvas"]
margin_top = 58.0
margin_right = 872.0
margin_bottom = 524.0
size_flags_vertical = 3
custom_constants/autohide = 0
[node name="ViewportandVerticalRuler" type="HBoxContainer" parent="DockableContainer/Main Canvas/HSplitContainer"]
margin_right = 860.0
margin_bottom = 466.0
size_flags_horizontal = 3
size_flags_vertical = 3
custom_constants/separation = 0
[node name="VerticalRuler" type="Button" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler"]
margin_right = 16.0
margin_bottom = 466.0
rect_min_size = Vector2( 16, 0 )
focus_mode = 0
mouse_default_cursor_shape = 15
size_flags_horizontal = 0
size_flags_vertical = 3
action_mode = 0
script = ExtResource( 4 )
[node name="ViewportContainer" type="ViewportContainer" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler"]
margin_left = 16.0
margin_right = 860.0
margin_bottom = 466.0
focus_mode = 2
mouse_default_cursor_shape = 3
size_flags_horizontal = 3
size_flags_vertical = 3
stretch = true
script = ExtResource( 23 )
[node name="Viewport" type="Viewport" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer"]
size = Vector2( 844, 466 )
handle_input_locally = false
usage = 0
render_target_update_mode = 3
[node name="TransparentChecker" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport" instance=ExtResource( 5 )]
2021-08-18 17:13:56 +00:00
material = SubResource( 2 )
[node name="Canvas" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport" instance=ExtResource( 19 )]
[node name="Camera2D" type="Camera2D" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport"]
current = true
zoom = Vector2( 0.15, 0.15 )
script = ExtResource( 7 )
[node name="CanvasLayer" type="CanvasLayer" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport"]
[node name="GreyscaleVision" type="ColorRect" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer/Viewport/CanvasLayer"]
material = SubResource( 27 )
margin_right = 40.0
margin_bottom = 40.0
mouse_filter = 2
[node name="ViewportContainer2" type="ViewportContainer" parent="DockableContainer/Main Canvas/HSplitContainer"]
margin_left = 872.0
margin_right = 872.0
margin_bottom = 466.0
size_flags_vertical = 3
stretch = true
script = ExtResource( 23 )
[node name="Viewport" type="Viewport" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2"]
size = Vector2( 0, 466 )
handle_input_locally = false
render_target_update_mode = 3
[node name="TransparentChecker" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport" instance=ExtResource( 5 )]
2021-08-18 17:13:56 +00:00
material = SubResource( 3 )
[node name="CanvasPreview" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport" instance=ExtResource( 2 )]
[node name="Camera2D2" type="Camera2D" parent="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2/Viewport"]
current = true
zoom = Vector2( 0.15, 0.15 )
script = ExtResource( 7 )
[node name="Animation Timeline" parent="DockableContainer" instance=ExtResource( 18 )]
margin_left = 66.0
margin_top = 556.0
margin_right = 938.0
margin_bottom = 716.0
[node name="Canvas Preview" parent="DockableContainer" instance=ExtResource( 16 )]
margin_left = 958.0
margin_top = 8.0
margin_right = 1276.0
margin_bottom = 173.062
[node name="Color Pickers" parent="DockableContainer" instance=ExtResource( 17 )]
margin_top = 197.062
[node name="Left Tool Options" type="ScrollContainer" parent="DockableContainer"]
margin_left = 958.0
margin_top = 253.062
margin_right = 1107.0
margin_bottom = 574.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LeftPanelContainer" type="PanelContainer" parent="DockableContainer/Left Tool Options"]
margin_right = 149.0
margin_bottom = 320.938
rect_min_size = Vector2( 130, 0 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Right Tool Options" type="ScrollContainer" parent="DockableContainer"]
margin_left = 1127.0
margin_top = 253.062
margin_right = 1276.0
margin_bottom = 574.0
[node name="RightPanelContainer" type="PanelContainer" parent="DockableContainer/Right Tool Options"]
margin_right = 149.0
margin_bottom = 320.938
rect_min_size = Vector2( 130, 0 )
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Palette Panel" parent="DockableContainer" instance=ExtResource( 20 )]
margin_left = 958.0
margin_top = 598.0
margin_right = 1276.0
margin_bottom = 716.0
[connection signal="item_rect_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_item_rect_changed"]
[connection signal="visibility_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_visibility_changed"]
[connection signal="reposition_active_tab_request" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_reposition_active_tab_request"]
[connection signal="tab_changed" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_tab_changed"]
[connection signal="tab_close" from="DockableContainer/Main Canvas/TabsContainer/Tabs" to="DockableContainer/Main Canvas/TabsContainer/Tabs" method="_on_Tabs_tab_close"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_mouse_entered"]
[connection signal="pressed" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_pressed"]
[connection signal="pressed" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/VerticalRuler" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/VerticalRuler" method="_on_VerticalRuler_pressed"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" to="DockableContainer/Main Canvas/HSplitContainer/ViewportandVerticalRuler/ViewportContainer" method="_on_ViewportContainer_mouse_exited"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" to="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" to="DockableContainer/Main Canvas/HSplitContainer/ViewportContainer2" method="_on_ViewportContainer_mouse_exited"]