mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-25 02:56:02 +10:00
InitCommit
update 1.4.2 source code
This commit is contained in:
23
ui_scenes/microphoneSelect/mic_select_button.gd
Normal file
23
ui_scenes/microphoneSelect/mic_select_button.gd
Normal file
@@ -0,0 +1,23 @@
|
||||
extends Control
|
||||
|
||||
var micName = ""
|
||||
|
||||
func _ready():
|
||||
$Label.text = micName
|
||||
|
||||
|
||||
func _on_button_pressed():
|
||||
|
||||
if !get_parent().get_parent().get_parent().visible:
|
||||
return
|
||||
|
||||
AudioServer.input_device = micName
|
||||
Global.deleteAllMics()
|
||||
Global.currentMicrophone = null
|
||||
|
||||
get_parent().get_parent().get_parent().visible = false
|
||||
|
||||
await get_tree().create_timer(1.0).timeout
|
||||
Global.createMicrophone()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user