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
namespace Sirenix.OdinInspector | |
{ | |
#pragma warning disable | |
using System; | |
using UnityEngine; | |
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)] | |
[System.Diagnostics.Conditional("UNITY_EDITOR")] | |
public class SizedBoxGroupAttribute : PropertyGroupAttribute |
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
#!/bin/env bash | |
# This script is public domain. | |
# If your government doesn't allow that, it doesn't matter. What're they gonna do? Sue me? | |
# Just a useful script for changing the name of your repo. | |
# Variables | |
ROOT_FOLDER=~/ | |
OLD=${1:-main} | |
NEW=${2:-master} |
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
private float HorizontalSpacing => canvasRectWidth * 0.3f; // The horizontal spacing between nodes | |
private float VerticalSpacing => canvasRectHeight + 24; // The vertical spacing between nodes | |
private HashSet<DialogueEntry> visited = new(); | |
private HashSet<DialogueEntry> subtreeVisited = new(); | |
private HashSet<DialogueEntry> subtreeWidthAdded = new(); | |
private Dictionary<DialogueEntry, float> subTreeWidths = new(); | |
private void ArrangeNodes() | |
{ | |
CalculatePositions(currentConversation.dialogueEntries[0], 0, 0); |
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
// ==UserScript== | |
// @name Potato Hider | |
// @description Hides them numbers. | |
// @version 0.6 | |
// @match https://www.twitch.tv/videos* | |
// @match https://www.twitch.tv/*/videos* | |
// @match https://www.twitch.tv/directory/following/videos* | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Lost Ark Fixer | |
// @namespace https://lostarkmap.com/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://lostarkmap.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=lostarkmap.com | |
// @grant GM_addStyle | |
// ==/UserScript== |
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
Shader "Sprites/JitterFreeLit" | |
{ | |
Properties | |
{ | |
_MainTex("Diffuse", 2D) = "white" {} | |
_MaskTex("Mask", 2D) = "white" {} | |
_NormalMap("Normal Map", 2D) = "bump" {} | |
// Legacy properties. They're here so that materials using this shader can gracefully fallback to the legacy sprite shader. | |
[HideInInspector] _Color("Tint", Color) = (1,1,1,1) |
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
public class DialogueParserExample : MonoBehaviour | |
{ | |
public static string FilterText(string text) | |
{ | |
const string genderStartTag = "[g="; | |
const int maxReplacements = 100; | |
if (text.Contains(genderStartTag)) | |
{ |
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 PixelCrushers.DialogueSystem.SuperTextMeshSupport; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SequenceSubtitlePanel : SuperTextMeshSubtitlePanel | |
{ | |
public override void Open() | |
{ |
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
namespace Sirenix.OdinInspector | |
{ | |
#pragma warning disable | |
using System; | |
using UnityEngine; | |
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)] | |
[System.Diagnostics.Conditional("UNITY_EDITOR")] | |
public class SizedFoldoutGroupAttribute : PropertyGroupAttribute |
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
// ==UserScript== | |
// @name YouTube Subscription Redirect | |
// @description Automatically load the videos you actually care about | |
// @namespace B492B7DC-4C33-4E72-8316-49A425788F86 | |
// @version 3.1 | |
// @match *://www.youtube.com/* | |
// @match *://m.youtube.com/* | |
// @match *://youtu.be/* | |
// @run-at document-end | |
// @grant none |
NewerOlder