init
This commit is contained in:
48
Scenes/UI/ChatHUD.tscn
Normal file
48
Scenes/UI/ChatHUD.tscn
Normal file
@@ -0,0 +1,48 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bdghsiesgwwho"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dia2n8udb7xxq" path="res://Scripts/UI/ChatHUD.gd" id="1_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_modern"]
|
||||
bg_color = Color(0.0784314, 0.0784314, 0.0784314, 0.6)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
expand_margin_left = 2.0
|
||||
expand_margin_top = 2.0
|
||||
expand_margin_right = 2.0
|
||||
expand_margin_bottom = 2.0
|
||||
|
||||
[node name="ChatHUD" type="CanvasLayer"]
|
||||
script = ExtResource("1_script")
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
custom_minimum_size = Vector2(180, 70)
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 10.0
|
||||
offset_top = -80.0
|
||||
offset_right = 190.0
|
||||
offset_bottom = -10.0
|
||||
grow_vertical = 0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_modern")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_font_sizes/normal_font_size = 10
|
||||
bbcode_enabled = true
|
||||
text = "[color=#888]Welcome to WhaleTown![/color]
|
||||
"
|
||||
scroll_following = true
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 10
|
||||
placeholder_text = "Press Enter to chat..."
|
||||
flat = true
|
||||
Reference in New Issue
Block a user