# Set Maximum Size Of Text Tag
Grammar — Set the maximum size of textTag to width width and height height (in percent of screen size)
Flags —Native
|Action
Sets the maximum size of the specified text tag.
# Arguments
int
<preset::TextTag> — Text Tagfixed
— Widthfixed
— Height
Returns — void
native void TextTagSetMaxSize(
int inTag,
fixed inWidth,
fixed inHeight,
);
# 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:2879
auto2FB17D52_val = lp_jukeboxID;
if (auto2FB17D52_val == gv_marSaraJukeboxID) {
TextTagSetMaxSize(TextTagLastCreated(), 17.0, 400.0);
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2885
}
else if (auto2FB17D52_val == gv_cantinaJukeboxID) {
TextTagSetMaxSize(TextTagLastCreated(), 19.0, 400.0);
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2879
auto2FB17D52_val = lp_jukeboxID;
if (auto2FB17D52_val == gv_marSaraJukeboxID) {
TextTagSetMaxSize(TextTagLastCreated(), 17.0, 400.0);
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2885
}
else if (auto2FB17D52_val == gv_cantinaJukeboxID) {
TextTagSetMaxSize(TextTagLastCreated(), 19.0, 400.0);
TextTagSetAlignment(TextTagLastCreated(), c_alignCenter, c_alignTop);
TextTagSetTextAlignment(TextTagLastCreated(), c_alignLeft, c_alignTop);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1558
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]);
TextTagSetTextShadow(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], false);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:11895
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));
TextTagSetTextShadow(lv_p_TextTag, false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3162
TextExpressionSetToken("Param/Expression/3A41E3EC", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/3A41E3EC"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3182
TextExpressionSetToken("Param/Expression/D523ADC7", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/D523ADC7"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3202
TextExpressionSetToken("Param/Expression/1581BE99", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/1581BE99"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3222
TextExpressionSetToken("Param/Expression/14AA26BE", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/14AA26BE"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova03.sc2map/MapScript.galaxy:3242
TextExpressionSetToken("Param/Expression/5363380A", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/5363380A"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:3162
TextExpressionSetToken("Param/Expression/3A41E3EC", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/3A41E3EC"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:3182
TextExpressionSetToken("Param/Expression/D523ADC7", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/D523ADC7"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:3202
TextExpressionSetToken("Param/Expression/1581BE99", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/1581BE99"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:3222
TextExpressionSetToken("Param/Expression/14AA26BE", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/14AA26BE"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova03.sc2map — MapScript.galaxy:3242
TextExpressionSetToken("Param/Expression/5363380A", "C", IntToText(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_garrisonUnitMax));
TextTagCreate(TextExpressionAssemble("Param/Expression/5363380A"), 24, PointWithOffset(UnitGetPosition(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit), 0.0, -1.5), 0.0, true, false, PlayerGroupAll());
TextTagSetMaxSize(TextTagLastCreated(), 100.0, 2.0);
libHots_gf_StoreTextTagForUnit(gv_s1_GarrisonSpots[gv_s1_GarrisonSpotsCount].lv_beaconUnit, 1, TextTagLastCreated());
TextTagShow(TextTagLastCreated(), PlayerGroupAll(), false);