# Set Edge Image Of Text Tag

Grammar — Set the edge image of textTag for edge edge to path|Image Path using X offset of xOffset and Y offset of yOffset.
FlagsNative | Action

Sets the image attached to the edge of the background image of this text tag.

# Arguments

  • int<preset::TextTag> — Text Tag
  • int<preset::TextTagEdge> — Edge
  • string<filepath> — Image
  • int — X Offset
  • int — Y Offset

Returns — void

native void TextTagSetEdgeImage(
	int inTag,
	int inEdge,
	string inPath,
	int inXOffset,
	int inYOffset,
);

Category: Text Tag / Formatting

# Examples

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

    TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY);
    TextTagShowBackground(TextTagLastCreated(), true);
    TextTagSetEdgeImage(TextTagLastCreated(), lp_edge, lp_edgeImage, lp_edgeOffsetX, lp_edgeOffsetY);
    TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
    gv_hotspots_FlashingTextTagCount += 1;

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

    TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY);
    TextTagShowBackground(TextTagLastCreated(), true);
    TextTagSetEdgeImage(TextTagLastCreated(), lp_edge, lp_edgeImage, lp_edgeOffsetX, lp_edgeOffsetY);
    TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
    gv_hotspots_FlashingTextTagCount += 1;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:714

        TextTagSetVelocity(TextTagLastCreated(), 0.7, 90.0);
        TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_short.dds", 0, -15);
        TextTagShowBackground(TextTagLastCreated(), true);
        TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, 3.0);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:714

        TextTagSetVelocity(TextTagLastCreated(), 0.7, 90.0);
        TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_short.dds", 0, -15);
        TextTagShowBackground(TextTagLastCreated(), true);
        TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, 3.0);

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4016

    TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
    if ((lp_resourceType == libSwaC_ge_CacheResourceType_CustomResource)) {
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_short.dds", 0, -15);
    }
    else {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4019

    }
    else {
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_reg.dds", 0, -15);
    }
    TextTagShowBackground(TextTagLastCreated(), true);

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:2805

    TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
    if ((lp_resourceType == libA3DDD02B_ge_CacheResourceType_CustomResource)) {
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_short.dds", 0, -15);
    }
    else {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:2808

    }
    else {
        TextTagSetEdgeImage(TextTagLastCreated(), c_textTagEdgeBottom, "Assets\\Textures\\ui_hots_frame_objectives_bonus_popup_reg.dds", 0, -15);
    }
    TextTagShowBackground(TextTagLastCreated(), true);