TextSprite
< Modding
Modding/TextSprite
Work in Progress
This page is currently WORK IN PROGRESS. Some things may be missing.
Feel free to contribute and don't worry about perfection - other editors can make corrections if necessary. Just get creating!
Code location (what's this?):
Cosmoteer.Data.TextSprite
Stores information about a single text sprite.
Not a component, this class is used to embellish text with visuals.
Must be added to gui/text_sprites.rules
too with an Action.
Name | Type | Required? | Default value | Description |
---|---|---|---|---|
Sprite | ISprite | Yes | - | The file for the visual |
ProportionalSize | bool | - | - | Whether to use the original size or not |
Examples
Cat image
The code for this :
dahell
{
Texture
{
File = "TextSprites/dahell.png"
MipLevels = 2
SampleMode = Linear
}
Size = [1, 1]
ProportionalSize = true
}