Initial commit, layout mockup
This commit is contained in:
238
Views/MainView.tscn
Normal file
238
Views/MainView.tscn
Normal file
@@ -0,0 +1,238 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://cr2f68sbsegai"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://b8rk41gjual2b" path="res://Assets/DefaultTheme.tres" id="1_s6hk6"]
|
||||
[ext_resource type="Script" path="res://addons/dockable_container/dockable_container.gd" id="2_7b0h5"]
|
||||
[ext_resource type="Script" path="res://Scripts/NestablePopupMenu.gd" id="2_lsrne"]
|
||||
[ext_resource type="Texture2D" uid="uid://vd53o7va0tni" path="res://Assets/Icons/tracks.svg" id="2_nidjn"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxl2qel0qbxrn" path="res://Assets/Icons/mixer.svg" id="3_4tblp"]
|
||||
[ext_resource type="Script" path="res://addons/dockable_container/layout_panel.gd" id="3_4twnq"]
|
||||
[ext_resource type="Script" path="res://addons/dockable_container/layout.gd" id="4_ixaqo"]
|
||||
[ext_resource type="PackedScene" uid="uid://bpd6g2b3s7tqa" path="res://Views/TrackView.tscn" id="5_rgxdu"]
|
||||
[ext_resource type="PackedScene" uid="uid://v4oljx3qrk5q" path="res://Views/Timeline.tscn" id="7_xu70y"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7bolv16y04n" path="res://Assets/Icons/play_fill.svg" id="9_5eeih"]
|
||||
[ext_resource type="Texture2D" uid="uid://bqmcx807prwj0" path="res://Assets/Icons/pause_fill.svg" id="10_a1xvk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmw8ftyp0yfnq" path="res://Assets/Icons/stop_fill.svg" id="11_6dqcn"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_pfnfv"]
|
||||
resource_name = "Tabs"
|
||||
script = ExtResource("3_4twnq")
|
||||
names = PackedStringArray("Tracks")
|
||||
current_tab = 0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_20kxa"]
|
||||
resource_name = "Layout"
|
||||
script = ExtResource("4_ixaqo")
|
||||
root = SubResource("Resource_pfnfv")
|
||||
hidden_tabs = {}
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xnlko"]
|
||||
resource_name = "Tabs"
|
||||
script = ExtResource("3_4twnq")
|
||||
names = PackedStringArray("Mixer")
|
||||
current_tab = 0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_h7r2s"]
|
||||
resource_name = "Layout"
|
||||
script = ExtResource("4_ixaqo")
|
||||
root = SubResource("Resource_xnlko")
|
||||
hidden_tabs = {}
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3f3qp"]
|
||||
bg_color = Color(0.180005, 0.180005, 0.180005, 1)
|
||||
|
||||
[node name="MainView" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_s6hk6")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="MenuBar" type="MenuBar" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
flat = true
|
||||
|
||||
[node name="File" type="PopupMenu" parent="VBoxContainer/MenuBar"]
|
||||
item_count = 3
|
||||
item_0/text = "New..."
|
||||
item_1/text = "Open..."
|
||||
item_1/id = 1
|
||||
item_2/id = 2
|
||||
item_2/separator = true
|
||||
script = ExtResource("2_lsrne")
|
||||
|
||||
[node name="Import" type="PopupMenu" parent="VBoxContainer/MenuBar/File"]
|
||||
auto_translate_mode = 1
|
||||
item_count = 2
|
||||
item_0/text = "Audio Clip"
|
||||
item_1/text = "Label Clip"
|
||||
item_1/id = 1
|
||||
|
||||
[node name="Export" type="PopupMenu" parent="VBoxContainer/MenuBar/File"]
|
||||
item_count = 2
|
||||
item_0/text = "Project"
|
||||
item_1/text = "Region"
|
||||
item_1/id = 1
|
||||
|
||||
[node name="Edit" type="PopupMenu" parent="VBoxContainer/MenuBar"]
|
||||
auto_translate_mode = 1
|
||||
item_count = 2
|
||||
item_0/text = "Add Audio Track"
|
||||
item_1/text = "Add Label Track"
|
||||
item_1/id = 1
|
||||
|
||||
[node name="View" type="PopupMenu" parent="VBoxContainer/MenuBar"]
|
||||
auto_translate_mode = 1
|
||||
hide_on_checkable_item_selection = false
|
||||
item_count = 2
|
||||
item_0/text = "Tracks"
|
||||
item_0/icon = ExtResource("2_nidjn")
|
||||
item_0/checkable = 1
|
||||
item_0/checked = true
|
||||
item_1/text = "Mixer"
|
||||
item_1/icon = ExtResource("3_4tblp")
|
||||
item_1/checkable = 1
|
||||
item_1/checked = true
|
||||
item_1/id = 1
|
||||
|
||||
[node name="Settings" type="PopupMenu" parent="VBoxContainer/MenuBar"]
|
||||
auto_translate_mode = 1
|
||||
hide_on_checkable_item_selection = false
|
||||
item_count = 2
|
||||
item_0/text = "Project Settings"
|
||||
item_1/text = "System Settings"
|
||||
item_1/id = 1
|
||||
|
||||
[node name="Panel" type="Panel" parent="VBoxContainer/MenuBar"]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Transport" type="PanelContainer" parent="VBoxContainer/VSplitContainer"]
|
||||
show_behind_parent = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/VSplitContainer/Transport"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Controls" type="MarginContainer" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Controls"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = 8
|
||||
|
||||
[node name="Play" type="Button" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Controls/HBoxContainer"]
|
||||
modulate = Color(0.253333, 1, 0.2, 1)
|
||||
layout_mode = 2
|
||||
icon = ExtResource("9_5eeih")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="Pause" type="Button" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Controls/HBoxContainer"]
|
||||
modulate = Color(1, 0.986667, 0.2, 1)
|
||||
layout_mode = 2
|
||||
icon = ExtResource("10_a1xvk")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="Stop" type="Button" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Controls/HBoxContainer"]
|
||||
self_modulate = Color(1, 0.2, 0.2, 1)
|
||||
layout_mode = 2
|
||||
icon = ExtResource("11_6dqcn")
|
||||
icon_alignment = 1
|
||||
|
||||
[node name="Time" type="VBoxContainer" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Time"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="CurrentTime" type="Label" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Time/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "00:00.00"
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Time/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Length" type="Label" parent="VBoxContainer/VSplitContainer/Transport/HBoxContainer/Time/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "00:00.00"
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/VSplitContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LeftDock" type="Container" parent="VBoxContainer/VSplitContainer/HSplitContainer"]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.2
|
||||
script = ExtResource("2_7b0h5")
|
||||
tab_alignment = 0
|
||||
layout = SubResource("Resource_20kxa")
|
||||
|
||||
[node name="Tracks" parent="VBoxContainer/VSplitContainer/HSplitContainer/LeftDock" instance=ExtResource("5_rgxdu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Timeline" parent="VBoxContainer/VSplitContainer/HSplitContainer" instance=ExtResource("7_xu70y")]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="BottomDock" type="Container" parent="VBoxContainer/VSplitContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.2
|
||||
script = ExtResource("2_7b0h5")
|
||||
tab_alignment = 0
|
||||
layout = SubResource("Resource_h7r2s")
|
||||
|
||||
[node name="Mixer" type="Control" parent="VBoxContainer/VSplitContainer/BottomDock"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
show_behind_parent = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_3f3qp")
|
||||
15
Views/Timeline.tscn
Normal file
15
Views/Timeline.tscn
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_scene format=3 uid="uid://v4oljx3qrk5q"]
|
||||
|
||||
[node name="Timeline" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
modulate = Color(0.329158, 0.329158, 0.329158, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
38
Views/TrackView.tscn
Normal file
38
Views/TrackView.tscn
Normal file
@@ -0,0 +1,38 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bpd6g2b3s7tqa"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dlb5xpe1t8rrk" path="res://Controls/AudioTrack.tscn" id="1_ueogm"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3mydiolrvqlr" path="res://Assets/Icons/add.svg" id="2_rekuu"]
|
||||
|
||||
[node name="Tracks" type="Control"]
|
||||
clip_children = 1
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 3
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TrackList" type="VBoxContainer" parent="VBoxContainer"]
|
||||
custom_minimum_size = Vector2(128, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Track" parent="VBoxContainer/TrackList" instance=ExtResource("1_ueogm")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AddTrack" type="MenuButton" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
icon = ExtResource("2_rekuu")
|
||||
flat = false
|
||||
icon_alignment = 1
|
||||
item_count = 2
|
||||
popup/item_0/text = "Audio Track"
|
||||
popup/item_1/text = "Label Track"
|
||||
popup/item_1/id = 1
|
||||
Reference in New Issue
Block a user