From 2fd69068cd0965d1786310045d1a75dbcf0f6b96 Mon Sep 17 00:00:00 2001 From: Face <69168154+face-hh@users.noreply.github.com> Date: Wed, 30 Jul 2025 21:06:40 +0300 Subject: [PATCH] remove redundant dedicated h1-h6 & pre .gd & .tscn --- Scenes/Tags/h1.tscn | 22 ---------------------- Scenes/Tags/h2.tscn | 22 ---------------------- Scenes/Tags/h3.tscn | 22 ---------------------- Scenes/Tags/h4.tscn | 22 ---------------------- Scenes/Tags/h5.tscn | 22 ---------------------- Scenes/Tags/h6.tscn | 22 ---------------------- Scenes/Tags/pre.tscn | 22 ---------------------- Scripts/Tags/h1.gd | 6 ------ Scripts/Tags/h1.gd.uid | 1 - Scripts/Tags/h2.gd | 6 ------ Scripts/Tags/h2.gd.uid | 1 - Scripts/Tags/h3.gd | 6 ------ Scripts/Tags/h3.gd.uid | 1 - Scripts/Tags/h4.gd | 6 ------ Scripts/Tags/h4.gd.uid | 1 - Scripts/Tags/h5.gd | 6 ------ Scripts/Tags/h5.gd.uid | 1 - Scripts/Tags/h6.gd | 6 ------ Scripts/Tags/h6.gd.uid | 1 - Scripts/Tags/pre.gd | 5 ----- Scripts/Tags/pre.gd.uid | 1 - Scripts/main.gd | 14 +++++++------- 22 files changed, 7 insertions(+), 209 deletions(-) delete mode 100644 Scenes/Tags/h1.tscn delete mode 100644 Scenes/Tags/h2.tscn delete mode 100644 Scenes/Tags/h3.tscn delete mode 100644 Scenes/Tags/h4.tscn delete mode 100644 Scenes/Tags/h5.tscn delete mode 100644 Scenes/Tags/h6.tscn delete mode 100644 Scenes/Tags/pre.tscn delete mode 100644 Scripts/Tags/h1.gd delete mode 100644 Scripts/Tags/h1.gd.uid delete mode 100644 Scripts/Tags/h2.gd delete mode 100644 Scripts/Tags/h2.gd.uid delete mode 100644 Scripts/Tags/h3.gd delete mode 100644 Scripts/Tags/h3.gd.uid delete mode 100644 Scripts/Tags/h4.gd delete mode 100644 Scripts/Tags/h4.gd.uid delete mode 100644 Scripts/Tags/h5.gd delete mode 100644 Scripts/Tags/h5.gd.uid delete mode 100644 Scripts/Tags/h6.gd delete mode 100644 Scripts/Tags/h6.gd.uid delete mode 100644 Scripts/Tags/pre.gd delete mode 100644 Scripts/Tags/pre.gd.uid diff --git a/Scenes/Tags/h1.tscn b/Scenes/Tags/h1.tscn deleted file mode 100644 index 8a22d73..0000000 --- a/Scenes/Tags/h1.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://gta3tqpcfrpf"] - -[ext_resource type="Script" uid="uid://fxad8ggthycp" path="res://Scripts/Tags/h1.gd" id="1_d7u74"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_3j5k0"] - -[node name="H1" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_d7u74") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_3j5k0") -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/h2.tscn b/Scenes/Tags/h2.tscn deleted file mode 100644 index ed22c91..0000000 --- a/Scenes/Tags/h2.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://cgsn36srgjt8"] - -[ext_resource type="Script" uid="uid://bdq7nrg2l36nh" path="res://Scripts/Tags/h2.gd" id="1_vk1fi"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_q3fx7"] - -[node name="H2" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_vk1fi") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_q3fx7") -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/h3.tscn b/Scenes/Tags/h3.tscn deleted file mode 100644 index fb5eeb7..0000000 --- a/Scenes/Tags/h3.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://di6midc3a0ddy"] - -[ext_resource type="Script" uid="uid://cnlm4o4aul6um" path="res://Scripts/Tags/h3.gd" id="1_chgqi"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_qca7w"] - -[node name="H3" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_chgqi") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_qca7w") -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/h4.tscn b/Scenes/Tags/h4.tscn deleted file mode 100644 index e09950d..0000000 --- a/Scenes/Tags/h4.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://di4rd8y76rwrq"] - -[ext_resource type="Script" uid="uid://j68a278yusxa" path="res://Scripts/Tags/h4.gd" id="1_jrcwo"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_t8dmp"] - -[node name="H4" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_jrcwo") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_t8dmp") -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/h5.tscn b/Scenes/Tags/h5.tscn deleted file mode 100644 index 05a041e..0000000 --- a/Scenes/Tags/h5.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://2rirrb0genlv"] - -[ext_resource type="Script" uid="uid://648taty6aixn" path="res://Scripts/Tags/h5.gd" id="1_02y7j"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_msjhe"] - -[node name="H5" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_02y7j") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_msjhe") -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/h6.tscn b/Scenes/Tags/h6.tscn deleted file mode 100644 index 8e0f145..0000000 --- a/Scenes/Tags/h6.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://bc0gy4dxuaaii"] - -[ext_resource type="Script" uid="uid://tv6sv6og67q6" path="res://Scripts/Tags/h6.gd" id="1_eqyqa"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_4427h"] - -[node name="H6" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -script = ExtResource("1_eqyqa") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme = ExtResource("2_4427h") -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/pre.tscn b/Scenes/Tags/pre.tscn deleted file mode 100644 index d352134..0000000 --- a/Scenes/Tags/pre.tscn +++ /dev/null @@ -1,22 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://byt2tvxanciuk"] - -[ext_resource type="Script" uid="uid://8mam5rvtx72x" path="res://Scripts/Tags/pre.gd" id="1_7hb8m"] -[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="1_xp1ft"] - -[node name="PRE" type="VBoxContainer"] -anchors_preset = 10 -anchor_right = 1.0 -grow_horizontal = 2 -theme = ExtResource("1_xp1ft") -script = ExtResource("1_7hb8m") - -[node name="RichTextLabel" type="RichTextLabel" parent="."] -layout_mode = 2 -size_flags_horizontal = 3 -focus_mode = 2 -mouse_default_cursor_shape = 1 -theme_override_colors/default_color = Color(0, 0, 0, 1) -bbcode_enabled = true -text = "What the sigma" -fit_content = true -selection_enabled = true diff --git a/Scripts/Tags/h1.gd b/Scripts/Tags/h1.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h1.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h1.gd.uid b/Scripts/Tags/h1.gd.uid deleted file mode 100644 index 2a0146b..0000000 --- a/Scripts/Tags/h1.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://fxad8ggthycp diff --git a/Scripts/Tags/h2.gd b/Scripts/Tags/h2.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h2.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h2.gd.uid b/Scripts/Tags/h2.gd.uid deleted file mode 100644 index 743064c..0000000 --- a/Scripts/Tags/h2.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://bdq7nrg2l36nh diff --git a/Scripts/Tags/h3.gd b/Scripts/Tags/h3.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h3.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h3.gd.uid b/Scripts/Tags/h3.gd.uid deleted file mode 100644 index 187c821..0000000 --- a/Scripts/Tags/h3.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://cnlm4o4aul6um diff --git a/Scripts/Tags/h4.gd b/Scripts/Tags/h4.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h4.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h4.gd.uid b/Scripts/Tags/h4.gd.uid deleted file mode 100644 index f59a644..0000000 --- a/Scripts/Tags/h4.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://j68a278yusxa diff --git a/Scripts/Tags/h5.gd b/Scripts/Tags/h5.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h5.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h5.gd.uid b/Scripts/Tags/h5.gd.uid deleted file mode 100644 index 0210d51..0000000 --- a/Scripts/Tags/h5.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://648taty6aixn diff --git a/Scripts/Tags/h6.gd b/Scripts/Tags/h6.gd deleted file mode 100644 index 36cfe15..0000000 --- a/Scripts/Tags/h6.gd +++ /dev/null @@ -1,6 +0,0 @@ -extends Control - -@onready var rich_text_label: RichTextLabel = $RichTextLabel - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/h6.gd.uid b/Scripts/Tags/h6.gd.uid deleted file mode 100644 index 7822b1d..0000000 --- a/Scripts/Tags/h6.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://tv6sv6og67q6 diff --git a/Scripts/Tags/pre.gd b/Scripts/Tags/pre.gd deleted file mode 100644 index 2b6562a..0000000 --- a/Scripts/Tags/pre.gd +++ /dev/null @@ -1,5 +0,0 @@ -class_name Pre -extends VBoxContainer - -func init(_element: HTMLParser.HTMLElement) -> void: - pass diff --git a/Scripts/Tags/pre.gd.uid b/Scripts/Tags/pre.gd.uid deleted file mode 100644 index da86787..0000000 --- a/Scripts/Tags/pre.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://8mam5rvtx72x diff --git a/Scripts/main.gd b/Scripts/main.gd index 869cf5e..5595e69 100644 --- a/Scripts/main.gd +++ b/Scripts/main.gd @@ -10,15 +10,15 @@ const AUTO_SIZING_FLEX_CONTAINER = preload("res://Scripts/AutoSizingFlexContaine const P = preload("res://Scenes/Tags/p.tscn") const IMG = preload("res://Scenes/Tags/img.tscn") const SEPARATOR = preload("res://Scenes/Tags/separator.tscn") -const PRE = preload("res://Scenes/Tags/pre.tscn") +const PRE = P const BR = preload("res://Scenes/Tags/br.tscn") const SPAN = preload("res://Scenes/Tags/span.tscn") -const H1 = preload("res://Scenes/Tags/h1.tscn") -const H2 = preload("res://Scenes/Tags/h2.tscn") -const H3 = preload("res://Scenes/Tags/h3.tscn") -const H4 = preload("res://Scenes/Tags/h4.tscn") -const H5 = preload("res://Scenes/Tags/h5.tscn") -const H6 = preload("res://Scenes/Tags/h6.tscn") +const H1 = P +const H2 = P +const H3 = P +const H4 = P +const H5 = P +const H6 = P const FORM = preload("res://Scenes/Tags/form.tscn") const INPUT = preload("res://Scenes/Tags/input.tscn") const BUTTON = preload("res://Scenes/Tags/button.tscn")