Initial Commit

Initial commit of Code Base.
This commit is contained in:
Mario Steele 2025-06-12 14:31:14 -05:00
parent 293b1213e1
commit c11a4ebbc2
653 changed files with 36893 additions and 1 deletions

View file

@ -0,0 +1,22 @@
using Godot;
namespace PokePurple.Library.Singletons;
public class GifManager
{
private static GifManager? _instance;
public static GifManager Instance => _instance ?? (_instance = new GifManager());
private Node _gifManager;
public GifManager()
{
_gifManager = ((SceneTree)Engine.GetMainLoop()).GetRoot().GetNode("GifManager");
}
public AnimatedTexture AnimatedTextureFromBuffer(byte[] data, int max_frames = 0) => _gifManager.Call("animated_texture_from_buffer", data, max_frames).As<AnimatedTexture>();
public AnimatedTexture AnimatedTextureFromFile(string file, int max_frames = 0) => _gifManager.Call("animated_texture_from_file", file, max_frames).As<AnimatedTexture>();
public SpriteFrames SpriteFramesFromBuffer(byte[] data, int max_frames = 0) => _gifManager.Call("sprite_frames_from_buffer", data, max_frames).As<SpriteFrames>();
public SpriteFrames SpriteFramesFromFile(string file, int max_frames = 0) => _gifManager.Call("sprite_frames_from_file", file, max_frames).As<SpriteFrames>();
}

View file

@ -0,0 +1 @@
uid://dphxqo51pj8i7

View file

@ -0,0 +1,12 @@
using Godot;
using System;
using Godot.Sharp.Extras;
public partial class Globals : Node
{
[NodePath] private Node _twitchService;
public override void _Ready()
{
this.OnReady();
}
}

View file

@ -0,0 +1 @@
uid://6nrfqrw53c1s

View file

@ -0,0 +1,47 @@
[gd_scene load_steps=12 format=3 uid="uid://b8whblp2hgrp"]
[ext_resource type="Script" uid="uid://6nrfqrw53c1s" path="res://Library/Singletons/Globals.cs" id="1_gsl6h"]
[ext_resource type="Script" uid="uid://i8st3lv0lidh" path="res://addons/twitcher/twitch_service.gd" id="1_ocehi"]
[ext_resource type="Script" uid="uid://dcrliedgr6eol" path="res://addons/twitcher/lib/oOuch/crypto_key_provider.gd" id="2_gsl6h"]
[ext_resource type="Script" uid="uid://00xbijwpi8xa" path="res://addons/twitcher/lib/oOuch/oauth_setting.gd" id="3_amvha"]
[ext_resource type="Script" uid="uid://b3n3et8mebjcc" path="res://addons/twitcher/auth/twitch_oauth_scopes.gd" id="4_fcooh"]
[ext_resource type="Resource" uid="uid://c4scwuk8q0r40" path="res://addons/twitcher/lib/oOuch/default_key_provider.tres" id="5_65rqk"]
[ext_resource type="Script" uid="uid://b52xp7c23ucfk" path="res://addons/twitcher/lib/oOuch/oauth_token.gd" id="6_lppa0"]
[sub_resource type="Resource" id="Resource_54bgt"]
script = ExtResource("2_gsl6h")
encrpytion_secret_location = "user://encryption_key.cfg"
[sub_resource type="Resource" id="Resource_km1mv"]
script = ExtResource("3_amvha")
redirect_url = "http://localhost:7170"
well_known_url = ""
token_url = "https://id.twitch.tv/oauth2/token"
authorization_url = "https://id.twitch.tv/oauth2/authorize"
device_authorization_url = "https://id.twitch.tv/oauth2/device"
cache_file = "user://auth.conf"
client_id = "xqh437vs83im368db89iwflm130ufb"
authorization_flow = 0
_encryption_key_provider = SubResource("Resource_54bgt")
client_secret = "D8bwpU1vz2zu6P9l0D3ktvctJMCuFspuG//RPTsyP8w="
[sub_resource type="Resource" id="Resource_to4h6"]
script = ExtResource("4_fcooh")
used_scopes = Array[StringName]([&"moderation:read", &"user:bot", &"user:read:chat", &"user:write:chat", &"chat:edit", &"chat:read"])
metadata/_custom_type_script = "uid://b3n3et8mebjcc"
[sub_resource type="Resource" id="Resource_3e7ys"]
script = ExtResource("6_lppa0")
_crypto_key_provider = ExtResource("5_65rqk")
_identifier = "EditorToken"
_cache_path = "user://auth.conf"
[node name="Globals" type="Node"]
script = ExtResource("1_gsl6h")
[node name="TwitchService" type="Node" parent="."]
script = ExtResource("1_ocehi")
oauth_setting = SubResource("Resource_km1mv")
scopes = SubResource("Resource_to4h6")
token = SubResource("Resource_3e7ys")
metadata/_custom_type_script = "uid://i8st3lv0lidh"