NAT Godot make playground tabs and entry panels
This commit is contained in:
29
projects/nat-godot-playground/Playground.tscn
Normal file
29
projects/nat-godot-playground/Playground.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://scripts/Playground.gd" type="Script" id=1]
|
||||
[ext_resource path="res://scripts/EntryContainer.gd" type="Script" id=2]
|
||||
[ext_resource path="res://EntryPanel.tscn" type="PackedScene" id=3]
|
||||
|
||||
[node name="Playground" type="ScrollContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 4.0
|
||||
margin_top = 32.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
rect_min_size = Vector2( 1280, 720 )
|
||||
|
||||
[node name="Entries" type="Control" parent="."]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 720.0
|
||||
rect_min_size = Vector2( 1280, 720 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="EntryPanel" type="PanelContainer" parent="Entries" instance=ExtResource( 3 )]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
mouse_filter = 1
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[connection signal="mouse_entered" from="Entries/EntryPanel" to="Entries/EntryPanel" method="_on_EntryPanel_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="Entries/EntryPanel" to="Entries/EntryPanel" method="_on_EntryPanel_mouse_exited"]
|
Reference in New Issue
Block a user