gdscript
[gd_scene load_steps=8 format=3 uid="uid://c8y6tqxr7q5vj"]
[ext_resource type="Script" path="res://scripts/twitter_ui.gd" id="1_j4r2s"]
[ext_resource type="Texture2D" uid="uid://bqn3j5x8yh6ov" path="res://assets/profile_default.png" id="2_kl3mp"]
[ext_resource type="Texture2D" uid="uid://c6yvlpjxg1ywn" path="res://assets/like_icon.png" id="3_qw2xr"]
[ext_resource type="Texture2D" uid="uid://dqjnpvs4yt7ov" path="res://assets/retweet_icon.png" id="4_8yfpd"]
[ext_resource type="Texture2D" uid="uid://bkjhg5yvmn4wd" path="res://assets/comment_icon.png" id="5_uxvqe"]
[ext_resource type="Texture2D" uid="uid://c2yvlpjxg1ywn" path="res://assets/share_icon.png" id="6_r2xvs"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_j8e2p"]
bg_color = Color(0.12549, 0.12549, 0.12549, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[node name="TwitterUI" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_j4r2s")
[node name="Background" type="ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.0784314, 0.0784314, 0.0784314, 1)
[node name="MainContainer" type="VBoxContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 0
[node name="Header" type="Panel"]
custom_minimum_size = Vector2(0, 60)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_j8e2p")
[node name="HBoxContainer" type="HBoxContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="Logo" type="Label"]
layout_mode = 2
theme_override_colors/font_color = Color(0.0980392, 0.631373, 0.952941, 1)
theme_override_font_sizes/font_size = 24
text = "Twitter"
horizontal_alignment = 1
vertical_alignment = 1
[node name="ScrollContainer" type="ScrollContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="TweetList" type="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 1
[node name="Tweet" type="Panel"]
custom_minimum_size = Vector2(0, 150)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_j8e2p")
[node name="MarginContainer" type="MarginContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="VBoxContainer" type="VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="UserInfo" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 10
[node name="ProfilePic" type="TextureRect"]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
texture = ExtResource("2_kl3mp")
expand_mode = 1
stretch_mode = 5
[node name="UserDetails" type="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Username" type="Label"]
layout_mode = 2
text = "@username"
vertical_alignment = 1
[node name="DisplayName" type="Label"]
layout_mode = 2
theme_override_colors/font_color = Color(0.752941, 0.752941, 0.752941, 1)
theme_override_font_sizes/font_size = 12
text = "Display Name"
vertical_alignment = 1
[node name="TweetContent" type="Label"]
layout_mode = 2
text = "This is a sample tweet content. It can contain multiple lines of text and will expand as needed to fit the content."
autowrap_mode = 3
[node name="ActionButtons" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 30
alignment = 1
[node name="Comment" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5
[node name="Icon" type="TextureRect"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
texture = ExtResource("5_uxvqe")
expand_mode = 1
stretch_mode = 5
[node name="Count" type="Label"]
layout_mode = 2
theme_override_colors/font_color = Color(0.752941, 0.752941, 0.752941, 1)
theme_override_font_sizes/font_size = 14
text = "5"
vertical_alignment = 1
[node name="Retweet" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5
[node name="Icon" type="TextureRect"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
texture = ExtResource("4_8yfpd")
expand_mode = 1
stretch_mode = 5
[node name="Count" type="Label"]
layout_mode = 2
theme_override_colors/font_color = Color(0.752941, 0.752941, 0.752941, 1)
theme_override_font_sizes/font_size = 14
text = "12"
vertical_alignment = 1
[node name="Like" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5
[node name="Icon" type="TextureRect"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
texture = ExtResource("3_qw2xr")
expand_mode = 1
stretch_mode = 5
[node name="Count" type="Label"]
layout_mode = 2
theme_override_colors/font_color = Color(0.752941, 0.752941, 0.752941, 1)
theme_override_font_sizes/font_size = 14
text = "42"
vertical_alignment = 1
[node name="Share" type="HBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 5
[node name="Icon" type="TextureRect"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
texture = ExtResource("6_r2xvs")
expand_mode = 1
stretch_mode = 5
[node name="BottomNavBar" type="Panel"]
custom_minimum_size = Vector2(0, 60)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_j8e2p")
[node name="HBoxContainer" type="HBoxContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="HomeButton" type="Button"]
layout_mode = 2
size_flags_horizontal = 3
text = "Home"
flat = true
[node name="SearchButton" type="Button"]
layout_mode = 2
size_flags_horizontal = 3
text = "Search"
flat = true
[node name="NotificationsButton" type="Button"]
layout_mode = 2
size_flags_horizontal = 3
text = "Notifications"
flat = true
[node name="MessagesButton" type="Button"]
layout_mode = 2
size_flags_horizontal = 3
text = "Messages"
flat = true
[node name="NewTweetButton" type="Button"]
custom_minimum_size = Vector2(60, 60)
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -80.0
offset_top = -80.0
offset_right = -20.0
offset_bottom = -20.0
grow_horizontal = 0
grow_vertical = 0
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_color = Color(1, 1, 1, 1)
theme_override_colors/font_focus_color = Color(1, 1, 1, 1)
theme_override_colors/font_hover_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/font_disabled_color = Color(1, 1, 1, 1)
theme_override_colors/icon_normal_color = Color(1, 1, 1, 1)
theme_override_colors/icon_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/icon_hover_color = Color(1, 1, 1, 1)
theme_override_colors/icon_hover_pressed_color = Color(1, 1, 1, 1)
theme_override_colors/icon_focus_color = Color(1, 1, 1, 1)
theme_override_colors/icon_disabled_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 24
text = "+"