AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.NO_INLINE_COLOR

Variable  -  Const

Type

const int

Description

Indicates that text inline color changes should be ignored when printing with RB.Print.

Normally text color can be changed inline by using color escape sequences such as "#FF0000Red#00FF00Green". This flag indicates that the color escape sequences should be ignored. This can be useful in some situations such as when printing a drop shadow for text.

Example

void Render()
{
    var text = "You are @FF0000DEAD";

    // Print drop shadow first
    RB.Print(new Vector2i(101101), Color.black, RB.NO_INLINE_COLOR, text);

    // Print foreground text
    RB.Print(new Vector2i(100100), Color.white, text);
}

See Also

RB.Print

See Docs

Features - Inline String Coloring