# 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
- [F] —
void
— Set Alignment Of Text Tag — ( TextTagSetAlignment ) - [F] —
void
— Set Text Alignment Of Text Tag — ( TextTagSetTextAlignment ) - [F] —
void
— Set Background Border Size Of Text Tag — ( TextTagSetBackgroundBorderSize ) - [F] —
void
— Set Background Image Of Text Tag — ( TextTagSetBackgroundImage ) - [F] —
void
— Set Background Offset Of Text Tag — ( TextTagSetBackgroundOffset ) - [F] —
void
— Set Edge Image Of Text Tag — ( TextTagSetEdgeImage ) - [F] —
void
— Set Color Of Text Tag — ( TextTagSetColor ) - [F] —
void
— Set Enforce Fog Of War Of Text Tag — ( TextTagFogofWar ) - [F] —
void
— Set Visibility Type Of Text Tag — ( TextTagSetFogVisibility ) - [F] —
void
— Set Faded Transparency Of Text Tag — ( TextTagSetFadedTransparency ) - [F] —
void
— Set Font Size Of Text Tag — ( TextTagSetFontSize ) - [F] —
void
— Set Maximum Size Of Text Tag — ( TextTagSetMaxSize ) - [F] —
void
— Show/Hide Background For Text Tag — ( TextTagShowBackground ) - [F] —
void
— Show/Hide Text Shadow For Text Tag — ( TextTagSetTextShadow )
# Examples
# campaigns/liberty.sc2campaign
// L2880
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop)
// L2886
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop)
// L30081
TextTagSetAlignment(TextTagLastCreated(), c_alignLeft, c_alignBottom)
// L2880
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop)
// L2886
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop)
// L30081
TextTagSetAlignment(TextTagLastCreated(), c_alignLeft, c_alignBottom)
# campaigns/libertystory.sc2campaign
// L1557
TextTagSetAlignment(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], c_alignCenter, c_alignBottom)
// L11894
TextTagSetAlignment(lv_p_TextTag, c_alignCenter, c_alignBottom)