TextSprite

From Cosmoteer Wiki
< ModdingModding/TextSprite
Jump to navigation Jump to search


CalloutIconWarning.png
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.

Parameters (Complete list)
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

example

The code for this :

dahell
{
    Texture
    {
        File = "TextSprites/dahell.png"
        MipLevels = 2
        SampleMode = Linear
    }
    Size = [1, 1]
    ProportionalSize = true
}

See also