diff --git a/Scenes/Styles/BrowserText.tres b/Scenes/Styles/BrowserText.tres index 4f7fe68..bb4b543 100644 --- a/Scenes/Styles/BrowserText.tres +++ b/Scenes/Styles/BrowserText.tres @@ -210,6 +210,7 @@ PopupMenu/icons/unchecked_disabled = ExtResource("12_0an8v") PopupMenu/styles/hover = SubResource("StyleBoxFlat_luhv8") PopupMenu/styles/panel = SubResource("StyleBoxFlat_ya683") PopupPanel/styles/panel = SubResource("StyleBoxFlat_06us3") +RichTextLabel/colors/default_color = Color(0, 0, 0, 1) RichTextLabel/colors/font_selected_color = Color(1, 1, 1, 1) RichTextLabel/colors/selection_color = Color(0.313726, 0.403922, 0.8, 1) RichTextLabel/fonts/bold_font = SubResource("SystemFont_jecr6") diff --git a/Scenes/Tags/li.tscn b/Scenes/Tags/li.tscn new file mode 100644 index 0000000..4602565 --- /dev/null +++ b/Scenes/Tags/li.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=3 format=3 uid="uid://bli1234568aa"] + +[ext_resource type="Script" uid="uid://ps8duq0aw3tu" path="res://Scripts/Tags/li.gd" id="1_li"] +[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"] + +[node name="LI" type="VBoxContainer"] +anchors_preset = 10 +anchor_right = 1.0 +grow_horizontal = 2 +script = ExtResource("1_li") + +[node name="RichTextLabel" type="RichTextLabel" parent="."] +layout_mode = 2 +size_flags_horizontal = 3 +focus_mode = 2 +mouse_default_cursor_shape = 1 +theme = ExtResource("2_theme") +theme_override_colors/default_color = Color(0, 0, 0, 1) +bbcode_enabled = true +text = "Placeholder" +fit_content = true +selection_enabled = true diff --git a/Scenes/Tags/ol.tscn b/Scenes/Tags/ol.tscn new file mode 100644 index 0000000..f5269f6 --- /dev/null +++ b/Scenes/Tags/ol.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://bol1234568aa"] + +[ext_resource type="Script" uid="uid://bbkebg4aihve3" path="res://Scripts/Tags/ol.gd" id="1_ol"] + +[node name="OL" type="VBoxContainer"] +anchors_preset = 10 +anchor_right = 1.0 +grow_horizontal = 2 +theme_override_constants/separation = 2 +script = ExtResource("1_ol") diff --git a/Scenes/Tags/ul.tscn b/Scenes/Tags/ul.tscn new file mode 100644 index 0000000..896ce40 --- /dev/null +++ b/Scenes/Tags/ul.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://bul1234568aa"] + +[ext_resource type="Script" uid="uid://cu1g4a1tv6ngw" path="res://Scripts/Tags/ul.gd" id="1_ul"] + +[node name="UL" type="VBoxContainer"] +anchors_preset = 10 +anchor_right = 1.0 +grow_horizontal = 2 +theme_override_constants/separation = 2 +script = ExtResource("1_ul") diff --git a/Scripts/Tags/li.gd b/Scripts/Tags/li.gd new file mode 100644 index 0000000..2c87493 --- /dev/null +++ b/Scripts/Tags/li.gd @@ -0,0 +1,6 @@ +extends Control + +func init(element: HTMLParser.HTMLElement) -> void: + # This is mainly for cases where
  • appears outside of