46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
using UnityEngine;
|
|
|
|
namespace DevourClient.Settings
|
|
{
|
|
public class Settings
|
|
{
|
|
public static bool menu_enable = false;
|
|
public static float width = Screen.width / 2f;
|
|
public static float height = Screen.height / 2f;
|
|
public static float x = 0;
|
|
public static float y = 0;
|
|
public static Color flashlight_color = new Color(1.00f, 1.00f, 1.00f, 1);
|
|
public static Color player_esp_color = new Color(0.00f, 1.00f, 0.00f, 1);
|
|
public static Color azazel_esp_color = new Color(1.00f, 0.00f, 0.00f, 1);
|
|
public static float speed = 1f;
|
|
// public const string message_to_spam = " ";
|
|
public static KeyCode flyKey = KeyCode.None;
|
|
public static Vector2 itemsScrollPosition = Vector2.zero;
|
|
public static Vector2 rituelObjectsScrollPosition = Vector2.zero;
|
|
public static Vector2 stuffsScrollPosition = Vector2.zero;
|
|
|
|
// Error message box settings
|
|
public static bool showErrorMessage = false;
|
|
public static string errorMessage = "";
|
|
public static float errorMessageDisplayTime = 0f;
|
|
public static float errorMessageMaxDisplayTime = 4f; // Maximum display time for error messages (in seconds)
|
|
|
|
public static KeyCode GetKey()
|
|
{
|
|
Thread.Sleep(50); //TOFIX tried using anyKeydown, no success
|
|
foreach (KeyCode vkey in System.Enum.GetValues(typeof(KeyCode)))
|
|
{
|
|
if (Input.GetKey(vkey))
|
|
{
|
|
if (vkey != KeyCode.Delete)
|
|
{
|
|
return vkey;
|
|
}
|
|
}
|
|
}
|
|
|
|
return KeyCode.None;
|
|
}
|
|
}
|
|
}
|