Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.Game.GUI.TextPanel.MySerializableSprite

Morten Aune Lyrstad edited this page Apr 16, 2022 · 9 revisions

IndexNamespace Index

MySerializableSprite Struct

public struct MySerializableSprite

Namespace: VRage.Game.GUI.TextPanel
Assembly: VRage.Game.dll

Fields

TextAlignment Alignment

Alignment for the text and sprites.

uint? Color

Color mask to be used when rendering this layer. If not set, white will be used

string Data

Data to be rendered, depending on what the layer type is. This can be text or a texture path

string FontId

In case we are rendering text, what font to use.

int Index

SerializableVector2? Position

Render position for this layer. If not set, it will be placed in the center

float RotationOrScale

Rotation of sprite in radians. Used as scale for text.

SerializableVector2? Size

Render size for this layer. If not set, it will be sized to take up the whole texture

SpriteType Type

Type of the render layer

Clone this wiki locally