You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
652 B
30 lines
652 B
extends Control
|
|
|
|
|
|
onready var TwitchCheckButton = find_node("TwitchCheckButton", true)
|
|
|
|
var initializing = true
|
|
func _ready():
|
|
TwitchCheckButton.pressed = Config.get_parameter(
|
|
"provider_MajorityJudgmentTwitchChatProvider_enabled",
|
|
false
|
|
)
|
|
initializing = false
|
|
|
|
|
|
func _on_DoneButton_pressed():
|
|
App.go_to_main_menu()
|
|
|
|
|
|
func _on_TwitchConfigureButton_pressed():
|
|
App.go_to_twitch_settings()
|
|
|
|
|
|
func _on_TwitchCheckButton_toggled(button_pressed):
|
|
Config.set_parameter(
|
|
"provider_MajorityJudgmentTwitchChatProvider_enabled",
|
|
button_pressed
|
|
)
|
|
if button_pressed and not initializing:
|
|
find_node('NoTwitchSettingsPopup', true).show_if_should()
|