more work on the ui theme and changing the hud
This commit is contained in:
58
UI/chatbox.tscn
Normal file
58
UI/chatbox.tscn
Normal file
@@ -0,0 +1,58 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ddmg342ff2qaq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dmdf7tbvc3bsg" path="res://Scripts/chatbox.gd" id="1_k3g22"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_c3kb6"]
|
||||
bg_color = Color(0.223529, 0.211765, 0.184314, 0.462745)
|
||||
|
||||
[node name="Chatbox" type="Control" node_paths=PackedStringArray("input_line", "textbox", "text_panel", "fade_timer")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_k3g22")
|
||||
input_line = NodePath("VBoxContainer/LineEdit")
|
||||
textbox = NodePath("VBoxContainer/PanelContainer/RichTextLabel")
|
||||
text_panel = NodePath("VBoxContainer/PanelContainer")
|
||||
fade_timer = NodePath("Timer")
|
||||
|
||||
[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
|
||||
mouse_filter = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_c3kb6")
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/PanelContainer"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
clip_contents = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = true
|
||||
scroll_following = true
|
||||
|
||||
[node name="LineEdit" type="LineEdit" parent="VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
context_menu_enabled = false
|
||||
selecting_enabled = false
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 3.5
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
Reference in New Issue
Block a user