This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
VRage.Game.GUI.TextPanel.MySprite
Morten Aune Lyrstad edited this page Apr 16, 2022
·
21 revisions
← Index ← Namespace Index
public struct MySprite: IEquatable<MySprite>
Namespace: VRage.Game.GUI.TextPanel
Assembly: VRage.Game.dll
Implements:
Member | Description |
---|---|
[TextAlignment Alignment](VRage.Game.GUI.TextPanel.MySprite.Alignment) | Alignment for the text and sprites. |
[Color? Color](VRage.Game.GUI.TextPanel.MySprite.Color) | Color mask to be used when rendering this layer. If not set, white will be used |
[string Data](VRage.Game.GUI.TextPanel.MySprite.Data) | Data to be rendered, depending on what the layer type is. This can be text or a texture path |
[string FontId](VRage.Game.GUI.TextPanel.MySprite.FontId) | In case we are rendering text, what font to use. |
[Vector2? Position](VRage.Game.GUI.TextPanel.MySprite.Position) | Render position for this layer. If not set, it will be placed in the center |
[float RotationOrScale](VRage.Game.GUI.TextPanel.MySprite.RotationOrScale) | Rotation of sprite in radians. Used as scale for text. |
[Vector2? Size](VRage.Game.GUI.TextPanel.MySprite.Size) | Render size for this layer. If not set, it will be sized to take up the whole texture |
[SpriteType Type](VRage.Game.GUI.TextPanel.MySprite.Type) | Type of the render layer |
Member | Description |
---|---|
[MySprite([SpriteType], [string], [Vector2?], [Vector2?], [Color?], [string], [TextAlignment], [float])](VRage.Game.GUI.TextPanel.MySprite..ctor) |
Member | Description |
---|---|
[static MySprite CreateClearClipRect()](VRage.Game.GUI.TextPanel.MySprite.CreateClearClipRect) | |
[static MySprite CreateClipRect(Rectangle)](VRage.Game.GUI.TextPanel.MySprite.CreateClipRect) | |
[static MySprite CreateSprite(string, Vector2, Vector2)](VRage.Game.GUI.TextPanel.MySprite.CreateSprite) | |
[static MySprite CreateText(string, string, Color, [float], [TextAlignment])](VRage.Game.GUI.TextPanel.MySprite.CreateText) | |
[bool Equals(MySprite)](VRage.Game.GUI.TextPanel.MySprite.Equals) | |
[bool Equals(object)](VRage.Game.GUI.TextPanel.MySprite.Equals) | |
[int GetHashCode()](VRage.Game.GUI.TextPanel.MySprite.GetHashCode) |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!