/
crypt
/
NumbersPlay
Обзор
Документация
Войти
/
crypt
/
NumbersPlay
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Assets/PluginYourGames/Scripts/EditorScr/Editor/FastButton.cs
32 строки
767 B
Crypt
start
16 ноя 2025, 14:28
16 ноя 2025, 14:28
1482007
Код
Авторство
О чём код?
using UnityEngine; namespace YG.EditorScr { public class FastButton { public static bool Standart(string label) { return GUILayout.Button(label, YGEditorStyles.button); } public static bool Stringy(string label) { int width = label.Length * 8 + 30; return GUILayout.Button(label, YGEditorStyles.button, GUILayout.Width(width)); } public static bool Lang(string labelEN, string labelRU, bool stringy = true) { string label; #if RU_YG2 label = labelRU; #else label = labelEN; #endif if (stringy) return Stringy(label); else return Standart(label); } } }