clicky region to dialog box, also moreo ptions stuff
This commit is contained in:
parent
4eb9a7fae8
commit
7f3a3f2e73
|
@ -47,7 +47,7 @@ anti_aliasing = true
|
||||||
anti_aliasing_size = 1
|
anti_aliasing_size = 1
|
||||||
_sections_unfolded = [ "Border", "Border Width", "Corner Radius", "Expand Margin" ]
|
_sections_unfolded = [ "Border", "Border Width", "Corner Radius", "Expand Margin" ]
|
||||||
|
|
||||||
[node name="options_menu" type="Control" index="0"]
|
[node name="options_menu" type="Control"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
|
|
@ -33,6 +33,7 @@ onready var body_container = get_node("body_container")
|
||||||
onready var body_label = get_node("body_container/bottom_panel/body_margin/body_label")
|
onready var body_label = get_node("body_container/bottom_panel/body_margin/body_label")
|
||||||
|
|
||||||
# clickable regions, for accessibility
|
# clickable regions, for accessibility
|
||||||
|
onready var click_panel = get_node("click_panel")
|
||||||
onready var top_panel = get_node("top_panel")
|
onready var top_panel = get_node("top_panel")
|
||||||
|
|
||||||
onready var audio_player = get_node("audio_player")
|
onready var audio_player = get_node("audio_player")
|
||||||
|
@ -114,6 +115,7 @@ func _ready():
|
||||||
fastforward_button.connect("pressed", self, "set_fastforward_state")
|
fastforward_button.connect("pressed", self, "set_fastforward_state")
|
||||||
|
|
||||||
# clicking to advance
|
# clicking to advance
|
||||||
|
click_panel.connect("gui_input", self, "_on_body_click")
|
||||||
body_container.connect("gui_input", self, "_on_body_click")
|
body_container.connect("gui_input", self, "_on_body_click")
|
||||||
top_panel.connect("gui_input", self, "_on_body_click")
|
top_panel.connect("gui_input", self, "_on_body_click")
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ content_margin_right = -1.0
|
||||||
content_margin_top = -1.0
|
content_margin_top = -1.0
|
||||||
content_margin_bottom = -1.0
|
content_margin_bottom = -1.0
|
||||||
|
|
||||||
[node name="dialog_box" type="Control"]
|
[node name="dialog_box" type="Control" index="0"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -39,7 +39,20 @@ autoplay = false
|
||||||
mix_target = 0
|
mix_target = 0
|
||||||
bus = "Master"
|
bus = "Master"
|
||||||
|
|
||||||
[node name="top_panel" type="HBoxContainer" parent="." index="1"]
|
[node name="click_panel" type="Control" parent="." index="1"]
|
||||||
|
|
||||||
|
anchor_left = 0.0
|
||||||
|
anchor_top = 0.0
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
|
rect_clip_content = false
|
||||||
|
mouse_filter = 0
|
||||||
|
mouse_default_cursor_shape = 0
|
||||||
|
size_flags_horizontal = 1
|
||||||
|
size_flags_vertical = 1
|
||||||
|
|
||||||
|
[node name="top_panel" type="HBoxContainer" parent="." index="2"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
|
@ -162,7 +175,7 @@ size_flags_horizontal = 1
|
||||||
size_flags_vertical = 1
|
size_flags_vertical = 1
|
||||||
_sections_unfolded = [ "Rect" ]
|
_sections_unfolded = [ "Rect" ]
|
||||||
|
|
||||||
[node name="body_container" type="PanelContainer" parent="." index="2"]
|
[node name="body_container" type="PanelContainer" parent="." index="3"]
|
||||||
|
|
||||||
anchor_left = 0.0
|
anchor_left = 0.0
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
|
|
Loading…
Reference in New Issue