# Set Alignment Of Text Tag

Grammar — Set the alignment of textTag to horizontal horizontally and vertical vertically
FlagsNative | Action

Sets the horizontal and vertical position of a text tag over its origin. This also sets the text alignment within the tag.

# Arguments

Returns — void

native void TextTagSetAlignment(
	int inTag,
	int inHoriz,
	int inVert,
);

Category: Text Tag / Formatting

# Examples

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

    if (auto2FB17D52_val == gv_marSaraJukeboxID) {
        TextTagSetMaxSize(TextTagLastCreated(), 17.0, 400.0);
        TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
        TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
        TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 127, -290);

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

    else if (auto2FB17D52_val == gv_cantinaJukeboxID) {
        TextTagSetMaxSize(TextTagLastCreated(), 19.0, 400.0);
        TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
        TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
        TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 25, -8);

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

    gv_briefingTHorner02Text = TextTagLastCreated();
    TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.0, 0.0);
    TextTagSetAlignment(TextTagLastCreated(), c_alignLeft, c_alignBottom);
    TextTagAttachToUnitPoint(TextTagLastCreated(), gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "Ref_StatusBar", 0, -60);
    TextTagShowBackground(TextTagLastCreated(), false);

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

    if (auto2FB17D52_val == gv_marSaraJukeboxID) {
        TextTagSetMaxSize(TextTagLastCreated(), 17.0, 400.0);
        TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
        TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
        TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 127, -290);

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

    else if (auto2FB17D52_val == gv_cantinaJukeboxID) {
        TextTagSetMaxSize(TextTagLastCreated(), 19.0, 400.0);
        TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
        TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
        TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 25, -8);

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

    gv_briefingTHorner02Text = TextTagLastCreated();
    TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.0, 0.0);
    TextTagSetAlignment(TextTagLastCreated(), c_alignLeft, c_alignBottom);
    TextTagAttachToUnitPoint(TextTagLastCreated(), gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "Ref_StatusBar", 0, -60);
    TextTagShowBackground(TextTagLastCreated(), false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:1557

    libCamp_gv__CB_Current_ChatBubble[lp_playerIndex] = TextTagLastCreated();
    TextTagAttachToUnit(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], libCamp_gv__CB_Unit[lp_unitIndex], 2.5);
    TextTagSetAlignment(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], c_alignCenter, c_alignBottom);
    TextTagSetMaxSize(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], 25.0, 40.0);
    TextTagSetColor(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], c_textTagColorText, libCamp_gv__CB_Line_TextColor[lv_lineIndex]);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:11894

    lv_p_TextTag = libCamp_gv__CB_TP_TEXTTAG;
    TextTagAttachToUnit(lv_p_TextTag, lv_p_Unit, 2.5);
    TextTagSetAlignment(lv_p_TextTag, c_alignCenter, c_alignBottom);
    TextTagSetMaxSize(lv_p_TextTag, 25.0, 40.0);
    TextTagSetColor(lv_p_TextTag, c_textTagColorText, Color(0,0,0));