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;
///
/// Whether the text is centered or not.
///
public bool Centered;
///
/// 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.
/// Offset x.
/// Offset y.
/// If set to true centered.
/// Background.
/// Font size.
/// Width.
/// Height.
public TextTextureProperties(string text, int offsetX = 0,
int offsetY = 0, bool centered = false,
Color background = new Color(), int fontSize = 32,
int width = 256, int height = 256) {
Text = text;
OffsetX = offsetX;
OffsetY = offsetY;
Centered = centered;
Background = background;
FontSize = fontSize;
Width = width;
Height = height;
}
}
}