Cleaned and improved some event stuff
This commit is contained in:
@@ -2,15 +2,18 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://b4a3ne2vn36mt" path="res://scripts/UI/EventFlagMenu.gd" id="1_nnw5f"]
|
||||
|
||||
[node name="EventFlagsMenu" type="Panel" node_paths=PackedStringArray("flagList", "grid")]
|
||||
[node name="EventFlagsMenu" type="Panel" node_paths=PackedStringArray("flagList", "grid", "btnClose")]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource("1_nnw5f")
|
||||
flagList = NodePath("HBoxContainer/FlagList")
|
||||
grid = NodePath("HBoxContainer/Control")
|
||||
grid = NodePath("HBoxContainer/VBoxContainer/Control")
|
||||
btnClose = NodePath("HBoxContainer/VBoxContainer/HBoxContainer/Button")
|
||||
metadata/_custom_type_script = "uid://b4a3ne2vn36mt"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
@@ -31,43 +34,56 @@ item_count = 2
|
||||
item_0/text = "Item 0"
|
||||
item_1/text = "Item 1"
|
||||
|
||||
[node name="Control" type="GridContainer" parent="HBoxContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
|
||||
clip_contents = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
columns = 6
|
||||
|
||||
[node name="Flag0" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 2
|
||||
|
||||
[node name="Button" type="Button" parent="HBoxContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "close"
|
||||
|
||||
[node name="Control" type="GridContainer" parent="HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
columns = 5
|
||||
|
||||
[node name="Flag0" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag1" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag1" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag2" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag2" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag3" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag3" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag4" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag4" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag5" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag5" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag6" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag6" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag7" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag7" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag8" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
[node name="Flag8" type="CheckBox" parent="HBoxContainer/VBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
@@ -1,14 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bkx3l0kckf4a8"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bkx3l0kckf4a8"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dm7ee4aqjr2dl" path="res://ui/UI Theme.tres" id="1_wx4lp"]
|
||||
[ext_resource type="Script" uid="uid://ck62jug2gl4wk" path="res://scripts/UI/VNTextbox.gd" id="2_uo1gm"]
|
||||
[ext_resource type="Script" uid="uid://cq6bvma0kk6tg" path="res://scripts/UI/AdvancedRichText.gd" id="3_j0315"]
|
||||
|
||||
[node name="VNTextbox" type="PanelContainer"]
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -50.0
|
||||
offset_top = -58.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("1_wx4lp")
|
||||
@@ -17,12 +18,22 @@ script = ExtResource("2_uo1gm")
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_wx4lp")
|
||||
theme_override_constants/margin_left = 4
|
||||
theme_override_constants/margin_top = 4
|
||||
theme_override_constants/margin_right = 4
|
||||
theme_override_constants/margin_bottom = 4
|
||||
|
||||
[node name="Label" type="RichTextLabel" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("1_wx4lp")
|
||||
bbcode_enabled = true
|
||||
text = "test
|
||||
test
|
||||
test
|
||||
test"
|
||||
text = "Text
|
||||
Text
|
||||
Text
|
||||
Text"
|
||||
script = ExtResource("3_j0315")
|
||||
advancedText = "Text
|
||||
Text
|
||||
Text
|
||||
Text"
|
||||
metadata/_custom_type_script = "uid://cq6bvma0kk6tg"
|
||||
|
Reference in New Issue
Block a user