parent
a1e2094a32
commit
d858823692
@ -0,0 +1,14 @@
|
||||
extends AcceptDialog
|
||||
|
||||
|
||||
func _ready():
|
||||
show_if_should()
|
||||
|
||||
|
||||
func show_if_should():
|
||||
if not App.get_providers():
|
||||
call_deferred("popup")
|
||||
|
||||
|
||||
func _on_NoProviderPopup_confirmed():
|
||||
App.go_to_settings()
|
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gui/popups/NoProviderPopup.gd" type="Script" id=1]
|
||||
|
||||
[node name="NoProviderPopup" type="AcceptDialog"]
|
||||
margin_right = 263.0
|
||||
margin_bottom = 136.0
|
||||
popup_exclusive = true
|
||||
window_title = "Wait!"
|
||||
dialog_text = "No vote provider is enabled.
|
||||
Your community won't be able to vote!
|
||||
|
||||
Let's go enable one in the Settings!
|
||||
I will come with you.
|
||||
|
||||
We're all in this together.
|
||||
|
||||
-- The Popup Painter
|
||||
"
|
||||
script = ExtResource( 1 )
|
||||
[connection signal="confirmed" from="." to="." method="_on_NoProviderPopup_confirmed"]
|
@ -0,0 +1,13 @@
|
||||
extends AcceptDialog
|
||||
|
||||
|
||||
func show_if_should():
|
||||
for provider in App.get_providers():
|
||||
if provider is MajorityJudgmentTwitchChatProvider:
|
||||
var config = provider.get_oauth_config()
|
||||
if not config["channel"]:
|
||||
popup_centered()
|
||||
|
||||
|
||||
func _on_NoTwitchSettingsPopup_confirmed():
|
||||
App.go_to_twitch_settings()
|
@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://gui/popups/NoTwitchSettingsPopup.gd" type="Script" id=1]
|
||||
|
||||
[node name="NoTwitchSettingsPopup" type="AcceptDialog"]
|
||||
visible = true
|
||||
margin_right = 83.0
|
||||
margin_bottom = 58.0
|
||||
popup_exclusive = true
|
||||
dialog_text = "Well done!
|
||||
|
||||
The thing is, to be able to read a Twitch Chat,
|
||||
we need to know which Twitch Chat to read.
|
||||
There's lots of them, as you may know.
|
||||
|
||||
Also, the bouncer of Twitch requires credentials
|
||||
to enter the premises (but the dress code is lax)
|
||||
|
||||
Let's review together what's needed!
|
||||
|
||||
-- The Popup Paintress"
|
||||
script = ExtResource( 1 )
|
||||
[connection signal="confirmed" from="." to="." method="_on_NoTwitchSettingsPopup_confirmed"]
|
Loading…
Reference in new issue