using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Cyber.Util {
///
/// Text texture properties. See .
///
[System.Serializable]
public struct TextTextureProperties {
///
/// The text.
///
public string Text;
///
/// The offset on the x-axis in pixels.
///
public int OffsetX;
///
/// The offset on the y-axis in pixels.
///
public int OffsetY;
///
/// The offset on the y-axis in pixels.
///
public Color Background;
///
/// The size of the font.
///
public int FontSize;
///
/// The width of the texture.
///
public int Width;
///
/// The height of the texture.
///
public int Height;
///
/// Creates new properties for a specified kind of text. See
/// for usage.
///
/// Text.
/// Background.
/// Font size.
/// Width.
/// Height.
public TextTextureProperties(string text, int offsetX = 0,
int offsetY = 0, Color background = new Color(),
int fontSize = 32, int width = 256, int height = 256) {
Text = text;
OffsetX = offsetX;
OffsetY = offsetY;
Background = background;
FontSize = fontSize;
Width = width;
Height = height;
}
}
}