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
package net.uniqraft.api; | |
public final class StringTools { | |
public static String replaceAll(String text, String replace, String replacement) { | |
if (replace == replacement) | |
return text; | |
String currentText = null; | |
String newText = text; | |
do { |
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 System; | |
using UnityEngine; | |
public abstract class BaseBehaviour : MonoBehaviour | |
{ | |
public T RequireComponent<T>(Action<T> a) where T : Component | |
{ | |
T component = gameObject.GetComponent<T>(); | |
if (component == null) | |
{ |
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 UnityEngine.UI; | |
[RequireComponent(typeof(RectTransform), typeof(LayoutElement))] | |
[ExecuteInEditMode] | |
public class LayoutElementFitParent : MonoBehaviour | |
{ | |
[SerializeField] private float aspectRatio = 1; | |
[SerializeField] private bool updateMin = false; | |
[SerializeField] private bool updatePreferred = false; |
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
:root { | |
--background-color: var(--sand2); | |
--color-primary: var(--sand12); | |
--search-result-title: var(--color-primary); | |
--search-result-title-hover: var(--color-primary); | |
--result-item-title-border_hover: var(--color-primary); | |
--domain-rank-icon-color-normal: var(--sand7); | |
--search-result-date-bg: var(--sand3); | |
--search-result-content-text: var(--sand11); | |
--inline-domain-tag-bg: var(--sand3); |
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 static async Task TransmitAudioData(byte[] audioData, VoiceTransmitSink sink) | |
{ | |
var startInfo = new ProcessStartInfo("ffmpeg") | |
{ | |
RedirectStandardInput = true, | |
RedirectStandardOutput = true, | |
RedirectStandardError = true, | |
UseShellExecute = false, | |
Arguments = string.Join(" ", [ | |
"-loglevel panic", |