mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-20 18:19:48 +00:00
12ce12a292
There is no longer any need for having specific graphics for each theme, as white colored textures can change their modulation to any color.
119 lines
3.6 KiB
Plaintext
119 lines
3.6 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://src/UI/Canvas/CanvasPreview.tscn" type="PackedScene" id=1]
|
|
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://src/UI/CanvasPreviewContainer.gd" type="Script" id=3]
|
|
[ext_resource path="res://src/UI/Canvas/CameraMovement.gd" type="Script" id=4]
|
|
[ext_resource path="res://src/Shaders/TransparentChecker.shader" type="Shader" id=5]
|
|
[ext_resource path="res://assets/graphics/timeline/play.png" type="Texture" id=7]
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id=1]
|
|
shader = ExtResource( 5 )
|
|
shader_param/size = 10.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="CanvasPreviewContainer" type="PanelContainer"]
|
|
margin_right = 278.0
|
|
margin_bottom = 164.0
|
|
rect_min_size = Vector2( 300, 0 )
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 0
|
|
script = ExtResource( 3 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
|
margin_left = 7.0
|
|
margin_top = 7.0
|
|
margin_right = 293.0
|
|
margin_bottom = 157.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
|
margin_right = 20.0
|
|
margin_bottom = 150.0
|
|
|
|
[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
|
|
margin_left = 6.0
|
|
margin_right = 14.0
|
|
margin_bottom = 14.0
|
|
size_flags_horizontal = 4
|
|
text = "+"
|
|
align = 1
|
|
|
|
[node name="PreviewZoomSlider" type="VSlider" parent="HBoxContainer/VBoxContainer"]
|
|
margin_left = 2.0
|
|
margin_top = 18.0
|
|
margin_right = 18.0
|
|
margin_bottom = 108.0
|
|
mouse_default_cursor_shape = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 3
|
|
step = 0.01
|
|
|
|
[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer"]
|
|
margin_left = 7.0
|
|
margin_top = 112.0
|
|
margin_right = 12.0
|
|
margin_bottom = 126.0
|
|
size_flags_horizontal = 4
|
|
text = "-"
|
|
align = 1
|
|
|
|
[node name="PlayButton" type="Button" parent="HBoxContainer/VBoxContainer" groups=[
|
|
"UIButtons",
|
|
]]
|
|
margin_top = 130.0
|
|
margin_right = 20.0
|
|
margin_bottom = 150.0
|
|
rect_min_size = Vector2( 20, 0 )
|
|
mouse_default_cursor_shape = 2
|
|
toggle_mode = true
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/PlayButton"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -3.5
|
|
margin_top = -6.0
|
|
margin_right = 3.5
|
|
margin_bottom = 6.0
|
|
mouse_default_cursor_shape = 2
|
|
texture = ExtResource( 7 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="PreviewViewportContainer" type="ViewportContainer" parent="HBoxContainer"]
|
|
margin_left = 24.0
|
|
margin_right = 284.0
|
|
margin_bottom = 150.0
|
|
rect_min_size = Vector2( 0, 150 )
|
|
|
|
[node name="Viewport" type="Viewport" parent="HBoxContainer/PreviewViewportContainer"]
|
|
size = Vector2( 260, 150 )
|
|
transparent_bg = true
|
|
handle_input_locally = false
|
|
render_target_update_mode = 3
|
|
|
|
[node name="TransparentChecker" parent="HBoxContainer/PreviewViewportContainer/Viewport" instance=ExtResource( 2 )]
|
|
material = SubResource( 1 )
|
|
|
|
[node name="CanvasPreview" parent="HBoxContainer/PreviewViewportContainer/Viewport" instance=ExtResource( 1 )]
|
|
|
|
[node name="CameraPreview" type="Camera2D" parent="HBoxContainer/PreviewViewportContainer/Viewport"]
|
|
offset = Vector2( 32, 32 )
|
|
current = true
|
|
zoom = Vector2( 0.15, 0.15 )
|
|
script = ExtResource( 4 )
|
|
[connection signal="value_changed" from="HBoxContainer/VBoxContainer/PreviewZoomSlider" to="." method="_on_PreviewZoomSlider_value_changed"]
|
|
[connection signal="toggled" from="HBoxContainer/VBoxContainer/PlayButton" to="." method="_on_PlayButton_toggled"]
|