This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Godot; | |
using System.Collections.Generic; | |
public partial class SoundManager : Node | |
{ | |
private const int MaxSimultaneousSounds = 32; | |
private const int SuppressSoundTimeMs = 100; | |
private readonly List<AudioStreamPlayer2D> _inactiveAudioPlayers = new(); | |
private readonly List<AudioStreamPlayer2D> _activeAudioPlayers = new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Godot; | |
using System; | |
public partial class Camera : Camera2D | |
{ | |
public enum ShakeStrengthType | |
{ | |
Low, | |
Medium, | |
High |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class_name TileMapEditor extends TileMap | |
enum InputState { | |
NONE, | |
PLACE, | |
REMOVE, | |
PAN | |
} | |
var input_state: InputState = InputState.NONE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^space:: | |
oCB := ClipboardAll | |
Clipboard = | |
Send ^c | |
ClipWait,1 | |
beforeText := "BEFORE_TEXT_HERE" | |
afterText := "AFTER_TEXT_HERE" | |
Clipboard := beforeText . Clipboard . afterText | |
Send ^v | |
Clipboard := oCB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Godot; | |
[Tool, GlobalClass] | |
public partial class AutoCollisionShape3D : CollisionShape3D | |
{ | |
[Export] | |
public MeshInstance3D MeshInstance; | |
[ExportGroup("Editor Auto Sync")] | |
[Export] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>This is the title of the webpage!</title> | |
</head> | |
<body> | |
<p> | |
This is an example paragraph.<br /> | |
Anything in the <strong>body</strong> tag will appear on the page.<br /> | |
Just like this <strong>p</strong> tag and its contents. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if targetEnvironment(macCatalyst) | |
import Foundation | |
let src = CGEventSource(stateID: CGEventSourceStateID.hidSystemState) | |
let loc = CGEventTapLocation.cghidEventTap | |
public class KeyboardManager { | |
enum KeyError: Error { | |
case KeyNotFound | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UITextDocumentProxy+Additions.swift | |
// | |
// | |
// Created by Shilo White on 6/5/22. | |
// | |
#if canImport(UIKit) | |
import Foundation | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function test() | |
end | |
typeof( (test()) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local holsteredTools = {} | |
local function HolsterTools(attachment) | |
local player = script.Parent.Parent.Parent | |
if not player:IsA("Player") then return end | |
local character = player.Character | |
if not character then return end | |
local tool = character:FindFirstChild(script.Parent.Name) |