twitch addon
This commit is contained in:
parent
2cd7af98a1
commit
07de7179c9
254 changed files with 18420 additions and 1 deletions
36
addons/very-simple-twitch/vst.gd
Normal file
36
addons/very-simple-twitch/vst.gd
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue