classList:add, classList:remove, classList:toggle, style handling
This commit is contained in:
@@ -3,22 +3,16 @@
|
||||
[ext_resource type="Script" uid="uid://cks35eudcm1wj" path="res://Scripts/Tags/button.gd" id="1_button"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
|
||||
|
||||
[node name="Button" type="Control"]
|
||||
custom_minimum_size = Vector2(64, 30)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 64.0
|
||||
offset_bottom = 30.0
|
||||
[node name="Button" type="HBoxContainer"]
|
||||
offset_right = 54.0
|
||||
offset_bottom = 23.0
|
||||
script = ExtResource("1_button")
|
||||
|
||||
[node name="ButtonNode" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(64, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
custom_minimum_size = Vector2(64, 30)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 4
|
||||
mouse_default_cursor_shape = 2
|
||||
theme = ExtResource("2_theme")
|
||||
text = "Button"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bopt1234568aa"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bopt1234568aa"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c66r24cncb1dp" path="res://Scripts/Tags/option.gd" id="1_tq7db"]
|
||||
[ext_resource type="Theme" uid="uid://bn6rbmdy60lhr" path="res://Scenes/Styles/BrowserText.tres" id="2_theme"]
|
||||
|
||||
[node name="option" type="Control"]
|
||||
@@ -7,6 +8,7 @@ layout_mode = 3
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
script = ExtResource("1_tq7db")
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
Reference in New Issue
Block a user