add privacy settings to demo menu
This commit is contained in:
parent
d4ababc262
commit
1b58df2cde
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=34 format=3 uid="uid://cd63barv73rfx"]
|
[gd_scene load_steps=36 format=3 uid="uid://cd63barv73rfx"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="1_61qpo"]
|
[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="1_61qpo"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ds1n0xhxqlp4b" path="res://base-environments/youth_room/shaders/universe_noise.png" id="1_t34p3"]
|
[ext_resource type="Texture2D" uid="uid://ds1n0xhxqlp4b" path="res://base-environments/youth_room/shaders/universe_noise.png" id="1_t34p3"]
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
[ext_resource type="Texture2D" uid="uid://b0kuadlp4jw6j" path="res://addons/input_prompts/icons/keyboard/d.png" id="8_kj67n"]
|
[ext_resource type="Texture2D" uid="uid://b0kuadlp4jw6j" path="res://addons/input_prompts/icons/keyboard/d.png" id="8_kj67n"]
|
||||||
[ext_resource type="Texture2D" uid="uid://bwhf0tx67yj7a" path="res://addons/input_prompts/icons/keyboard/s.png" id="9_xo70c"]
|
[ext_resource type="Texture2D" uid="uid://bwhf0tx67yj7a" path="res://addons/input_prompts/icons/keyboard/s.png" id="9_xo70c"]
|
||||||
[ext_resource type="Script" uid="uid://0h0lrkntx0uh" path="res://logic-scenes/main menu/pause_menu.gd" id="10_g425y"]
|
[ext_resource type="Script" uid="uid://0h0lrkntx0uh" path="res://logic-scenes/main menu/pause_menu.gd" id="10_g425y"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://u0bwjr5l6nkh" path="res://logic-scenes/main menu/privacy_settings.tscn" id="10_jirkf"]
|
||||||
[ext_resource type="PackedScene" uid="uid://g2a27jwdapai" path="res://logic-scenes/card_burner/card_burner.tscn" id="10_kj67n"]
|
[ext_resource type="PackedScene" uid="uid://g2a27jwdapai" path="res://logic-scenes/card_burner/card_burner.tscn" id="10_kj67n"]
|
||||||
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="11_kj67n"]
|
[ext_resource type="Script" uid="uid://sa15wakvpj2e" path="res://dev-util/bug_button.gd" id="11_kj67n"]
|
||||||
[ext_resource type="PackedScene" uid="uid://citwb7f4dl3l1" path="res://thank-you.tscn" id="13_xo70c"]
|
[ext_resource type="PackedScene" uid="uid://citwb7f4dl3l1" path="res://thank-you.tscn" id="13_xo70c"]
|
||||||
|
|
@ -24,6 +25,7 @@ var room = preload(\"res://base-environments/youth_room/youth_room.tscn\")
|
||||||
var loaded_room: RoomTemplate
|
var loaded_room: RoomTemplate
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
|
State.take_stage(self)
|
||||||
load_room()
|
load_room()
|
||||||
State.settings_initialised = true
|
State.settings_initialised = true
|
||||||
State.show_content_notes = false
|
State.show_content_notes = false
|
||||||
|
|
@ -188,44 +190,58 @@ fill = 1
|
||||||
fill_from = Vector2(0.538462, 0.491453)
|
fill_from = Vector2(0.538462, 0.491453)
|
||||||
fill_to = Vector2(1.3, -0.3)
|
fill_to = Vector2(1.3, -0.3)
|
||||||
|
|
||||||
[sub_resource type="InputEventKey" id="InputEventKey_xo70c"]
|
[sub_resource type="InputEventKey" id="InputEventKey_jirkf"]
|
||||||
device = -1
|
device = -1
|
||||||
physical_keycode = 87
|
physical_keycode = 87
|
||||||
unicode = 119
|
unicode = 119
|
||||||
|
|
||||||
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_k41g6"]
|
|
||||||
device = -1
|
|
||||||
axis = 1
|
|
||||||
axis_value = -1.0
|
|
||||||
|
|
||||||
[sub_resource type="InputEventKey" id="InputEventKey_jirkf"]
|
|
||||||
device = -1
|
|
||||||
physical_keycode = 65
|
|
||||||
unicode = 97
|
|
||||||
|
|
||||||
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_kt5p7"]
|
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_kt5p7"]
|
||||||
device = -1
|
device = -1
|
||||||
|
axis = 1
|
||||||
axis_value = -1.0
|
axis_value = -1.0
|
||||||
|
|
||||||
[sub_resource type="InputEventKey" id="InputEventKey_mivr6"]
|
[sub_resource type="InputEventKey" id="InputEventKey_mivr6"]
|
||||||
device = -1
|
device = -1
|
||||||
physical_keycode = 68
|
physical_keycode = 65
|
||||||
unicode = 100
|
unicode = 97
|
||||||
|
|
||||||
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_52c3j"]
|
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_52c3j"]
|
||||||
device = -1
|
device = -1
|
||||||
axis_value = 1.0
|
axis_value = -1.0
|
||||||
|
|
||||||
[sub_resource type="InputEventKey" id="InputEventKey_b7q2n"]
|
[sub_resource type="InputEventKey" id="InputEventKey_b7q2n"]
|
||||||
device = -1
|
device = -1
|
||||||
|
physical_keycode = 68
|
||||||
|
unicode = 100
|
||||||
|
|
||||||
|
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_qhf78"]
|
||||||
|
device = -1
|
||||||
|
axis_value = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="InputEventKey" id="InputEventKey_gatj6"]
|
||||||
|
device = -1
|
||||||
physical_keycode = 83
|
physical_keycode = 83
|
||||||
unicode = 115
|
unicode = 115
|
||||||
|
|
||||||
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_qhf78"]
|
[sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_ol51q"]
|
||||||
device = -1
|
device = -1
|
||||||
axis = 1
|
axis = 1
|
||||||
axis_value = 1.0
|
axis_value = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kt5p7"]
|
||||||
|
bg_color = Color(0.0288289, 0.0448641, 0.121276, 1)
|
||||||
|
border_width_left = 10
|
||||||
|
border_width_top = 10
|
||||||
|
border_width_right = 10
|
||||||
|
border_width_bottom = 10
|
||||||
|
border_color = Color(0.0288289, 0.0448641, 0.121276, 1)
|
||||||
|
corner_radius_top_left = 20
|
||||||
|
corner_radius_top_right = 20
|
||||||
|
corner_radius_bottom_right = 20
|
||||||
|
corner_radius_bottom_left = 20
|
||||||
|
expand_margin_left = 20.0
|
||||||
|
expand_margin_right = 20.0
|
||||||
|
|
||||||
[sub_resource type="Shader" id="Shader_gatj6"]
|
[sub_resource type="Shader" id="Shader_gatj6"]
|
||||||
code = "shader_type canvas_item;
|
code = "shader_type canvas_item;
|
||||||
render_mode blend_premul_alpha;
|
render_mode blend_premul_alpha;
|
||||||
|
|
@ -451,6 +467,10 @@ popup/item_0/id = 0
|
||||||
popup/item_1/text = "deutsch"
|
popup/item_1/text = "deutsch"
|
||||||
popup/item_1/id = 1
|
popup/item_1/id = 1
|
||||||
|
|
||||||
|
[node name="Button" type="Button" parent="Menu/VBoxContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
text = "Privacy Info"
|
||||||
|
|
||||||
[node name="Control" type="Control" parent="Menu"]
|
[node name="Control" type="Control" parent="Menu"]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 2
|
anchors_preset = 2
|
||||||
|
|
@ -472,7 +492,7 @@ stretch_mode = 5
|
||||||
script = ExtResource("5_6w5b4")
|
script = ExtResource("5_6w5b4")
|
||||||
action = "player_forwards"
|
action = "player_forwards"
|
||||||
icon = 4
|
icon = 4
|
||||||
events = Array[InputEvent]([SubResource("InputEventKey_xo70c"), SubResource("InputEventJoypadMotion_k41g6")])
|
events = Array[InputEvent]([SubResource("InputEventKey_jirkf"), SubResource("InputEventJoypadMotion_kt5p7")])
|
||||||
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
||||||
|
|
||||||
[node name="ActionPrompt2" type="TextureRect" parent="Menu/Control"]
|
[node name="ActionPrompt2" type="TextureRect" parent="Menu/Control"]
|
||||||
|
|
@ -487,7 +507,7 @@ stretch_mode = 5
|
||||||
script = ExtResource("5_6w5b4")
|
script = ExtResource("5_6w5b4")
|
||||||
action = "player_left"
|
action = "player_left"
|
||||||
icon = 4
|
icon = 4
|
||||||
events = Array[InputEvent]([SubResource("InputEventKey_jirkf"), SubResource("InputEventJoypadMotion_kt5p7")])
|
events = Array[InputEvent]([SubResource("InputEventKey_mivr6"), SubResource("InputEventJoypadMotion_52c3j")])
|
||||||
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
||||||
|
|
||||||
[node name="ActionPrompt4" type="TextureRect" parent="Menu/Control"]
|
[node name="ActionPrompt4" type="TextureRect" parent="Menu/Control"]
|
||||||
|
|
@ -502,7 +522,7 @@ stretch_mode = 5
|
||||||
script = ExtResource("5_6w5b4")
|
script = ExtResource("5_6w5b4")
|
||||||
action = "player_right"
|
action = "player_right"
|
||||||
icon = 4
|
icon = 4
|
||||||
events = Array[InputEvent]([SubResource("InputEventKey_mivr6"), SubResource("InputEventJoypadMotion_52c3j")])
|
events = Array[InputEvent]([SubResource("InputEventKey_b7q2n"), SubResource("InputEventJoypadMotion_qhf78")])
|
||||||
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
||||||
|
|
||||||
[node name="ActionPrompt3" type="TextureRect" parent="Menu/Control"]
|
[node name="ActionPrompt3" type="TextureRect" parent="Menu/Control"]
|
||||||
|
|
@ -517,7 +537,7 @@ stretch_mode = 5
|
||||||
script = ExtResource("5_6w5b4")
|
script = ExtResource("5_6w5b4")
|
||||||
action = "player_backwards"
|
action = "player_backwards"
|
||||||
icon = 4
|
icon = 4
|
||||||
events = Array[InputEvent]([SubResource("InputEventKey_b7q2n"), SubResource("InputEventJoypadMotion_qhf78")])
|
events = Array[InputEvent]([SubResource("InputEventKey_gatj6"), SubResource("InputEventJoypadMotion_ol51q")])
|
||||||
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
metadata/_custom_type_script = "uid://bbs1u7ojno7xo"
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="Menu/Control"]
|
[node name="Label" type="Label" parent="Menu/Control"]
|
||||||
|
|
@ -529,6 +549,25 @@ offset_bottom = -40.0
|
||||||
theme_type_variation = &"HeaderMedium"
|
theme_type_variation = &"HeaderMedium"
|
||||||
text = "Move trough the room"
|
text = "Move trough the room"
|
||||||
|
|
||||||
|
[node name="PrivacyPanel" type="PanelContainer" parent="Menu"]
|
||||||
|
visible = false
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -701.5
|
||||||
|
offset_top = -464.5
|
||||||
|
offset_right = 701.5
|
||||||
|
offset_bottom = 464.5
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_kt5p7")
|
||||||
|
|
||||||
|
[node name="PrivacyAndDataProtection" parent="Menu/PrivacyPanel" instance=ExtResource("10_jirkf")]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="."]
|
[node name="TextureRect" type="TextureRect" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
|
@ -630,3 +669,5 @@ libraries = {
|
||||||
[connection signal="toggled" from="Menu/VBoxContainer/CNBox" to="." method="_on_cn_box_toggled"]
|
[connection signal="toggled" from="Menu/VBoxContainer/CNBox" to="." method="_on_cn_box_toggled"]
|
||||||
[connection signal="toggled" from="Menu/VBoxContainer/MotionBox" to="." method="_on_motion_box_toggled"]
|
[connection signal="toggled" from="Menu/VBoxContainer/MotionBox" to="." method="_on_motion_box_toggled"]
|
||||||
[connection signal="item_selected" from="Menu/VBoxContainer/OptionButton" to="." method="_on_option_button_item_selected"]
|
[connection signal="item_selected" from="Menu/VBoxContainer/OptionButton" to="." method="_on_option_button_item_selected"]
|
||||||
|
[connection signal="pressed" from="Menu/VBoxContainer/Button" to="Menu/PrivacyPanel" method="show"]
|
||||||
|
[connection signal="leave_stage" from="Menu/PrivacyPanel/PrivacyAndDataProtection" to="Menu/PrivacyPanel" method="hide"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue