# Set Alignment Of Text Tag
Grammar — Set the alignment of textTag to horizontal horizontally and vertical vertically
Flags —Native
|Action
Sets the horizontal and vertical position of a text tag over its origin. This also sets the text alignment within the tag.
# Arguments
int
<preset::TextTag> — Text Tagint
<preset::AlignmentHorizontal> — Horizontalint
<preset::AlignmentVertical> — Vertical
Returns — void
native void TextTagSetAlignment(
int inTag,
int inHoriz,
int inVert,
);
# Related
Category: Text Tag / Formatting
- Set Alignment Of Text Tag —
void
— TextTagSetAlignment - Set Text Alignment Of Text Tag —
void
— TextTagSetTextAlignment - Set Background Border Size Of Text Tag —
void
— TextTagSetBackgroundBorderSize - Set Background Image Of Text Tag —
void
— TextTagSetBackgroundImage - Set Background Offset Of Text Tag —
void
— TextTagSetBackgroundOffset - Set Edge Image Of Text Tag —
void
— TextTagSetEdgeImage - Set Color Of Text Tag —
void
— TextTagSetColor - Set Enforce Fog Of War Of Text Tag —
void
— TextTagFogofWar - Set Visibility Type Of Text Tag —
void
— TextTagSetFogVisibility - Set Faded Transparency Of Text Tag —
void
— TextTagSetFadedTransparency - Set Font Size Of Text Tag —
void
— TextTagSetFontSize - Set Maximum Size Of Text Tag —
void
— TextTagSetMaxSize - Show/Hide Background For Text Tag —
void
— TextTagShowBackground - Show/Hide Text Shadow For Text Tag —
void
— TextTagSetTextShadow
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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/libertystory.sc2campaign — base.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.sc2campaign — base.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));