Add style to text boxes
This commit is contained in:
parent
ba5e14a858
commit
20000c1c51
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://7oi3hcf5q4o7"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://7oi3hcf5q4o7"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/UI/textbox.gd" id="1_nbji8"]
|
||||
[ext_resource type="FontFile" uid="uid://bgqotudi6bifk" path="res://UI/Gundam 00 font gaufont.ttf" id="1_p6ypw"]
|
||||
[ext_resource type="Theme" uid="uid://733mwxm2ul3w" path="res://UI/ui_theme.tres" id="2_rsu4n"]
|
||||
[ext_resource type="Texture2D" uid="uid://du2iwu36y3l5p" path="res://Portraits/hiro_default_normal.png" id="3_cbor4"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ydgvr"]
|
||||
|
@ -138,6 +139,8 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
theme = ExtResource("2_rsu4n")
|
||||
theme_type_variation = &"LeftLeaningPanel"
|
||||
|
||||
[node name="PlacementContainer" type="Control" parent="LeftTextbox/ChatboxContainer/Chatbox"]
|
||||
layout_mode = 2
|
||||
|
@ -194,8 +197,7 @@ layout_mode = 3
|
|||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = 720.0
|
||||
offset_right = 1440.0
|
||||
offset_right = 720.0
|
||||
offset_bottom = 480.0
|
||||
grow_horizontal = 0
|
||||
|
||||
|
@ -218,6 +220,8 @@ offset_right = 72.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
theme = ExtResource("2_rsu4n")
|
||||
theme_type_variation = &"RightLeaningPanel"
|
||||
|
||||
[node name="PlacementContainer" type="Control" parent="RightTextbox/ChatboxContainer/Chatbox"]
|
||||
layout_mode = 2
|
||||
|
|
40
UI/ui_theme.tres
Normal file
40
UI/ui_theme.tres
Normal file
|
@ -0,0 +1,40 @@
|
|||
[gd_resource type="Theme" load_steps=4 format=3 uid="uid://733mwxm2ul3w"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bnamv"]
|
||||
bg_color = Color(0, 0, 0, 0.784314)
|
||||
border_width_top = 4
|
||||
border_width_right = 8
|
||||
border_width_bottom = 4
|
||||
border_color = Color(0.470588, 0.470588, 0.470588, 1)
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
anti_aliasing = false
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ifq1k"]
|
||||
bg_color = Color(0, 0, 0, 0.666667)
|
||||
border_width_left = 8
|
||||
border_width_top = 4
|
||||
border_width_right = 8
|
||||
border_width_bottom = 4
|
||||
border_color = Color(0.458824, 0.458824, 0.458824, 1)
|
||||
corner_radius_top_left = 8
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
corner_radius_bottom_left = 8
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bmrb0"]
|
||||
bg_color = Color(0, 0, 0, 0.784314)
|
||||
border_width_left = 8
|
||||
border_width_top = 4
|
||||
border_width_bottom = 4
|
||||
border_color = Color(0.470588, 0.470588, 0.470588, 1)
|
||||
corner_radius_top_left = 8
|
||||
corner_radius_bottom_left = 8
|
||||
anti_aliasing = false
|
||||
|
||||
[resource]
|
||||
LeftLeaningPanel/base_type = &"PanelContainer"
|
||||
LeftLeaningPanel/styles/panel = SubResource("StyleBoxFlat_bnamv")
|
||||
PanelContainer/styles/panel = SubResource("StyleBoxFlat_ifq1k")
|
||||
RightLeaningPanel/base_type = &"PanelContainer"
|
||||
RightLeaningPanel/styles/panel = SubResource("StyleBoxFlat_bmrb0")
|
Loading…
Reference in a new issue