Updated Floating Menu
Updated Floating Menu to handle Settins Icon, Added WebCam Toggle button to OBS.
This commit is contained in:
parent
e9859e3842
commit
05c67aa19e
2 changed files with 35 additions and 6 deletions
|
|
@ -4,6 +4,8 @@ class_name GDFloatingMenu
|
|||
const COL_ON := Color.LIGHT_GREEN
|
||||
const COL_OFF := Color.LIGHT_SALMON
|
||||
|
||||
const SETTINGS_PANEL = preload("res://UI/settings_panel.tscn")
|
||||
|
||||
# Indicators
|
||||
@onready var indicators: Control = %indicators
|
||||
@onready var ind_stream: TextureRect = %ind_stream
|
||||
|
|
@ -94,6 +96,13 @@ func calculate_anchored_pos() -> void:
|
|||
|
||||
#region Hnadle Button Functions
|
||||
func _connect_signals() -> void:
|
||||
btn_end.pressed.connect(func(): get_tree().quit())
|
||||
pass
|
||||
btn_end.properly_pressed.connect(func(): get_tree().quit())
|
||||
btn_settings.properly_pressed.connect(_handle_settings)
|
||||
|
||||
|
||||
func _handle_settings() -> void:
|
||||
var pnl := SETTINGS_PANEL.instantiate()
|
||||
Globals.disable_mouse_passthrough()
|
||||
get_tree().root.add_child(pnl)
|
||||
pnl.show()
|
||||
#endregion
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://c4k4skgijfubi" path="res://UI/assets/font_awesome/stopwatch.svg" id="11_ohje3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bw4n42uub1rlj" path="res://UI/assets/bootstrap/person-bounding-box.png" id="12_05x4r"]
|
||||
[ext_resource type="Texture2D" uid="uid://2fmj2y31d8gh" path="res://UI/assets/bootstrap/chat-fill.svg" id="13_2lv5e"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnwnao243j1jb" path="res://UI/assets/font_awesome/camera.svg" id="13_64x86"]
|
||||
[ext_resource type="Texture2D" uid="uid://byn16ueoaws0c" path="res://UI/assets/font_awesome/users-rectangle.svg" id="14_64x86"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjkwqaf31p1w0" path="res://UI/assets/font_awesome/gear.svg" id="15_ud5hd"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4httqv81w0nn" path="res://UI/assets/font_awesome/circle-xmark.svg" id="16_i4a5v"]
|
||||
|
|
@ -78,6 +79,7 @@ icon_alignment = 1
|
|||
expand_icon = true
|
||||
script = ExtResource("1_eeo1l")
|
||||
expand_on_hover = false
|
||||
fold_on_child_button_pressed = false
|
||||
is_radial = true
|
||||
anim_delay = 0.02
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
|
@ -146,9 +148,9 @@ visible = false
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "OBS"
|
||||
icon = ExtResource("8_k8nf3")
|
||||
script = ExtResource("8_ttodq")
|
||||
expand_on_hover = false
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
|
|
@ -157,8 +159,10 @@ unique_name_in_owner = true
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Run OBS"
|
||||
icon = ExtResource("10_liuj8")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_step_away" type="Button" parent="btn_obs" unique_id=1452458544]
|
||||
|
|
@ -166,8 +170,10 @@ unique_name_in_owner = true
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "BRB Screen"
|
||||
icon = ExtResource("11_ohje3")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_tuber" type="Button" parent="btn_obs" unique_id=118706136]
|
||||
|
|
@ -175,8 +181,21 @@ unique_name_in_owner = true
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Launch VTuber"
|
||||
icon = ExtResource("12_05x4r")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_camera" type="Button" parent="btn_obs" unique_id=1965662343]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Toggle Camera"
|
||||
icon = ExtResource("13_64x86")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_chat" type="Button" parent="." unique_id=1509888398]
|
||||
|
|
@ -185,9 +204,9 @@ visible = false
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Twitch Chat"
|
||||
icon = ExtResource("13_2lv5e")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_user_list" type="Button" parent="." unique_id=655134427]
|
||||
|
|
@ -196,9 +215,9 @@ visible = false
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "User List"
|
||||
icon = ExtResource("14_64x86")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_settings" type="Button" parent="." unique_id=992431192]
|
||||
|
|
@ -207,9 +226,9 @@ visible = false
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Settings"
|
||||
icon = ExtResource("15_ud5hd")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
metadata/_custom_type_script = "uid://8715vyt7prmd"
|
||||
|
||||
[node name="btn_end" type="Button" parent="." unique_id=59540475]
|
||||
|
|
@ -218,6 +237,7 @@ visible = false
|
|||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
tooltip_text = "Quit Overlay"
|
||||
icon = ExtResource("16_i4a5v")
|
||||
script = ExtResource("8_ttodq")
|
||||
fold_on_child_button_pressed = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue