mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-04 14:49:41 +01:00
17 lines
347 B
GDScript
17 lines
347 B
GDScript
extends Control
|
|
|
|
func _ready():
|
|
if OS.get_name() == "HTML5":
|
|
$VBoxContainer/Signaling.hide()
|
|
|
|
|
|
func _on_listen_toggled(button_pressed):
|
|
if button_pressed:
|
|
$Server.listen(int($VBoxContainer/Signaling/Port.value))
|
|
else:
|
|
$Server.stop()
|
|
|
|
|
|
func _on_LinkButton_pressed():
|
|
OS.shell_open("https://github.com/godotengine/webrtc-native/releases")
|