# Set Text Alignment Of Text Tag
Grammar — Set the text alignment of textTag to horizontal horizontally and vertical vertically
Flags —Native
|Action
Sets the alignment of text within the text tag, without changing the tag position. Note that any alignment set using “Set Alignment Of Text Tag” will override this action.
# Arguments
int
<preset::TextTag> — Text Tagint
<preset::AlignmentHorizontal> — Horizontalint
<preset::AlignmentVertical> — Vertical
Returns — void
native void TextTagSetTextAlignment(
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:2881
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:2887
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:2881
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:2887
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);
}