16 lines
519 B
C#
16 lines
519 B
C#
using UnityEngine;
|
|
|
|
// Atrybut, który bêdzie u¿ywany do oznaczania nag³ówków z t³em
|
|
public class HeaderWithBackgroundAttribute : PropertyAttribute
|
|
{
|
|
public string HeaderText; // Tekst nag³ówka
|
|
public Color BackgroundColor; // Kolor t³a
|
|
|
|
// Konstruktor, który ustawia tekst i kolor t³a
|
|
public HeaderWithBackgroundAttribute(string headerText, float r, float g, float b)
|
|
{
|
|
HeaderText = headerText;
|
|
BackgroundColor = new Color(r, g, b, 1f); // Kolor z pe³n¹ przezroczystoœci¹
|
|
}
|
|
}
|