# Set Background Offset Of Text Tag

Grammar — Set the background offset of textTag to (horizontal, vertical), in percent of screen size
FlagsNative | Action

Sets the offset of the background of the text tag.

# Arguments

  • int<preset::TextTag> — Text Tag
  • fixed — Horizontal
  • fixed — Vertical

Returns — void

native void TextTagSetBackgroundOffset(
	int inTag,
	fixed inX,
	fixed inY,
);

Category: Text Tag / Formatting

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2876

    TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.8, 0.0);
    TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\white.dds", false);
    TextTagSetBackgroundOffset(TextTagLastCreated(), 0.0, 0.25);
    auto2FB17D52_val = lp_jukeboxID;
    if (auto2FB17D52_val == gv_marSaraJukeboxID) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2876

    TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.8, 0.0);
    TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\white.dds", false);
    TextTagSetBackgroundOffset(TextTagLastCreated(), 0.0, 0.25);
    auto2FB17D52_val = lp_jukeboxID;
    if (auto2FB17D52_val == gv_marSaraJukeboxID) {