Ajout de l'addon twitch

This commit is contained in:
2026-06-23 23:28:12 +02:00
parent a7dcd6d725
commit 24d19310b5
47 changed files with 1892 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
@tool
extends EditorPlugin
var dock
var chat_dock
func _enter_tree() -> void:
add_custom_type("VerySimpleTwitchChat", "Node", preload("twitch_chat.gd"), preload("icon.png"))
add_custom_type("VerySimpleTwitchAPI", "Node", preload("twitch_api.gd"), preload("icon.png"))
add_autoload_singleton("VerySimpleTwitch", "twitch_node.gd")
VSTSettings.add_settings()
#Bottom setup dock
dock = preload("res://addons/very-simple-twitch/dock/vst-dock.tscn").instantiate()
add_control_to_bottom_panel(dock, "Very Simple Twitch")
#Chat dock
chat_dock = preload("res://addons/very-simple-twitch/chat/vst_chat_dock.tscn").instantiate()
add_control_to_dock(EditorPlugin.DOCK_SLOT_RIGHT_UL, chat_dock)
func _exit_tree() -> void:
remove_custom_type("VerySimpleTwitchChat")
remove_custom_type("VerySimpleTwitchAPI")
VSTSettings.remove_settings()
remove_autoload_singleton("VerySimpleTwitch")
remove_control_from_bottom_panel(dock)
dock.free()
remove_control_from_docks(chat_dock)
chat_dock.free()