# Set Maximum Size Of Text Tag

Grammar — Set the maximum size of textTag to width width and height height (in percent of screen size)
FlagsNative | Action

Sets the maximum size of the specified text tag.

# Arguments

  • int<preset::TextTag> — Text Tag
  • fixed — Width
  • fixed — Height

Returns — void

native void TextTagSetMaxSize(
	int inTag,
	fixed inWidth,
	fixed inHeight,
);

Category: Text Tag / Formatting

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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);