Add event flags
This commit is contained in:
@@ -80,9 +80,9 @@ script = ExtResource("5_cg1ph")
|
||||
|
||||
[node name="EventFlagModify" type="Node" parent="Events/TestConversation"]
|
||||
script = ExtResource("12_ncdgy")
|
||||
action = 2
|
||||
action = 4
|
||||
event = 1
|
||||
eventFlag = 1
|
||||
eventFlag = 1539
|
||||
metadata/_custom_type_script = "uid://0ygswaohp7kj"
|
||||
|
||||
[node name="Text 0" type="Node" parent="Events/TestConversation"]
|
||||
|
@@ -1,10 +1,11 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://b5bwpsh0gcicf"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b5bwpsh0gcicf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dahhuhiu8u88b" path="res://scripts/Singleton/UI.gd" id="1_g3au4"]
|
||||
[ext_resource type="PackedScene" uid="uid://verg13jtqwvh" path="res://scenes/UI/DebugMenu.tscn" id="2_is0g4"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfioi52hjn2kf" path="res://scenes/UI/QuestMenu.tscn" id="2_mpokx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkx3l0kckf4a8" path="res://scenes/UI/VNTextbox.tscn" id="3_btpxp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dl8iqhrpsplmk" path="res://scenes/UI/Inventory/FullInventoryMenu.tscn" id="5_6dyff"]
|
||||
[ext_resource type="PackedScene" uid="uid://b6s1xdcfcp0xx" path="res://scenes/UI/EventFlagMenu.tscn" id="5_12prj"]
|
||||
|
||||
[node name="UI" type="Control"]
|
||||
layout_mode = 3
|
||||
@@ -30,6 +31,9 @@ anchors_preset = 0
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
|
||||
[node name="EventFlagMenu" parent="." instance=ExtResource("5_12prj")]
|
||||
layout_mode = 1
|
||||
|
||||
[node name="DebugMenu" parent="." instance=ExtResource("2_is0g4")]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
|
73
scenes/UI/EventFlagMenu.tscn
Normal file
73
scenes/UI/EventFlagMenu.tscn
Normal file
@@ -0,0 +1,73 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b6s1xdcfcp0xx"]
|
||||
|
||||
[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")]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_nnw5f")
|
||||
flagList = NodePath("HBoxContainer/FlagList")
|
||||
grid = NodePath("HBoxContainer/Control")
|
||||
metadata/_custom_type_script = "uid://b4a3ne2vn36mt"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="FlagList" type="ItemList" parent="HBoxContainer"]
|
||||
clip_contents = false
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
auto_width = true
|
||||
item_count = 2
|
||||
item_0/text = "Item 0"
|
||||
item_1/text = "Item 1"
|
||||
|
||||
[node name="Control" type="GridContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
columns = 6
|
||||
|
||||
[node name="Flag0" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag1" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag2" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag3" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag4" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag5" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag6" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag7" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
||||
|
||||
[node name="Flag8" type="CheckBox" parent="HBoxContainer/Control"]
|
||||
layout_mode = 2
|
||||
text = "Flag 0"
|
Reference in New Issue
Block a user