38 lines
No EOL
1.3 KiB
C#
38 lines
No EOL
1.3 KiB
C#
using UnityEngine;
|
||
|
||
[CreateAssetMenu(fileName = "ShopVisualConfig", menuName = "Shop/Visual Config")]
|
||
public class ShopVisualConfig : ScriptableObject
|
||
{
|
||
[Header("Currency Colors")]
|
||
public Color goldColor = new Color(1f, 0.84f, 0f);
|
||
public Color ironColor = Color.white;
|
||
public Color insufficientFundsColor = Color.red;
|
||
public Color giftColor = Color.green;
|
||
|
||
[Header("Price State Colors")]
|
||
public Color discountBackgroundColor = new Color32(70, 45, 120, 255);
|
||
public Color freeItemColor = Color.cyan;
|
||
public Color discountedPriceColor = Color.yellow;
|
||
|
||
[Header("Special Visuals")]
|
||
// ВОТ ЭТОЙ СТРОЧКИ У ТЕБЯ НЕ ХВАТАЛО:
|
||
public Color giftBackgroundColor = new Color32(255, 0, 69, 255);
|
||
|
||
[Header("Custom Tag Colors")]
|
||
public Color yellowTag = Color.yellow;
|
||
public Color blueTag = Color.blue;
|
||
public Color redTag = Color.red;
|
||
public Color orangeTag = new Color(1f, 0.65f, 0f);
|
||
|
||
[Header("Iron Outline Settings")]
|
||
public Color ironOutlineColor = Color.black;
|
||
public float ironOutlineWidth = 0.2f;
|
||
|
||
[Header("Animations")]
|
||
public float pulseSpeed = 2f;
|
||
public float pulseAmount = 0.05f;
|
||
public float shakeDuration = 0.4f;
|
||
public float shakeIntensity = 5f;
|
||
|
||
public string GetHex(Color color) => $"#{ColorUtility.ToHtmlStringRGB(color)}";
|
||
} |