# Set Background Border Size Of Text Tag
Grammar — Set the background border size of textTag to (horizontal, vertical), in percent of screen size
Flags —Native
|Action
Sets the size of the background of the text tag.
# Arguments
int
<preset::TextTag> — Text Tagfixed
— Horizontalfixed
— Vertical
Returns — void
native void TextTagSetBackgroundBorderSize(
int inTag,
fixed inX,
fixed inY,
);
# 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/traynor02.sc2map/MapScript.galaxy:1102
gv_supplyHelperTXT = TextTagLastCreated();
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1293
TextTagCreate(StringExternal("Param/Value/A0322401"), 18, PointFromId(688), 1.0, true, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:669
TextTagCreate(StringExternal("Param/Value/DC706388"), 18, UnitGetPosition(gv_bunkerBridgeEast), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:675
TextTagCreate(StringExternal("Param/Value/DD630F5C"), 18, UnitGetPosition(gv_bunkerBridgeWest), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:681
TextTagCreate(StringExternal("Param/Value/24851E7E"), 18, UnitGetPosition(gv_bunkerBaseEast), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:687
TextTagCreate(StringExternal("Param/Value/43FACC21"), 18, UnitGetPosition(gv_bunkerBaseWest), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2874
TextTagCreate((TextReplaceWord(StringExternal("Param/Value/2519AF5D"), StringExternal("Param/Value/D67E2367"), lv_author, c_stringReplaceAll, c_stringCase) + TextReplaceWord(StringExternal("Param/Value/344F6720"), StringExternal("Param/Value/A281DAD4"), lv_title, c_stringReplaceAll, c_stringCase)), 32, UnitGetPosition(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center)), 0.0, false, false, PlayerGroupAll());
gv_jukeboxTrackTitle = TextTagLastCreated();
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.8, 0.0);
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\white.dds", false);
TextTagSetBackgroundOffset(TextTagLastCreated(), 0.0, 0.25);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9559
TextTagCreate(lp_text, 18, UnitGetPosition(lp_unit), 0.0, true, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.0, 0.0);
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY);
TextTagShowBackground(TextTagLastCreated(), true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:30080
TextTagCreate(ConversationDataStateText("StoryText|StoryText01", "Text"), 32, UnitGetPosition(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center)), 0.0, true, false, PlayerGroupAll());
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);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:406
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:370
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:416
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2map — MapScript.galaxy:1102
gv_supplyHelperTXT = TextTagLastCreated();
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2map — MapScript.galaxy:1293
TextTagCreate(StringExternal("Param/Value/A0322401"), 18, PointFromId(688), 1.0, true, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:669
TextTagCreate(StringExternal("Param/Value/DC706388"), 18, UnitGetPosition(gv_bunkerBridgeEast), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:675
TextTagCreate(StringExternal("Param/Value/DD630F5C"), 18, UnitGetPosition(gv_bunkerBridgeWest), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:681
TextTagCreate(StringExternal("Param/Value/24851E7E"), 18, UnitGetPosition(gv_bunkerBaseEast), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2map — MapScript.galaxy:687
TextTagCreate(StringExternal("Param/Value/43FACC21"), 18, UnitGetPosition(gv_bunkerBaseWest), 2.5, false, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\ui_mission_frame_massege.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 1.0, 1.0);
TextTagShowBackground(TextTagLastCreated(), true);
TextTagSetTime(TextTagLastCreated(), c_textTagTimeDuration, c_textTagTimePermanent);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2874
TextTagCreate((TextReplaceWord(StringExternal("Param/Value/2519AF5D"), StringExternal("Param/Value/D67E2367"), lv_author, c_stringReplaceAll, c_stringCase) + TextReplaceWord(StringExternal("Param/Value/344F6720"), StringExternal("Param/Value/A281DAD4"), lv_title, c_stringReplaceAll, c_stringCase)), 32, UnitGetPosition(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center)), 0.0, false, false, PlayerGroupAll());
gv_jukeboxTrackTitle = TextTagLastCreated();
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.8, 0.0);
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\white.dds", false);
TextTagSetBackgroundOffset(TextTagLastCreated(), 0.0, 0.25);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:9559
TextTagCreate(lp_text, 18, UnitGetPosition(lp_unit), 0.0, true, false, PlayerGroupAll());
TextTagSetBackgroundImage(TextTagLastCreated(), "Assets\\Textures\\blank.dds", true);
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 0.0, 0.0);
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY);
TextTagShowBackground(TextTagLastCreated(), true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:30080
TextTagCreate(ConversationDataStateText("StoryText|StoryText01", "Text"), 32, UnitGetPosition(gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center)), 0.0, true, false, PlayerGroupAll());
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);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2map — MapScript.galaxy:406
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:370
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:416
TextTagCreate(lp_roundText, 60, CameraGetTarget(gv_pLAYER_USER), 2.0, true, false, PlayerGroupAll());
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 94.90, 94.90));
TextTagSetBackgroundBorderSize(TextTagLastCreated(), 2.0, 2.0);
Wait(3.0, c_timeGame);
TextTagDestroy(TextTagLastCreated());
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:1563
TextTagSetTime(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], c_textTagTimeDuration, 360000.0);
TextTagShowBackground(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], true);
TextTagSetBackgroundBorderSize(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], 1.0, 1.0);
TextTagSetColor(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], c_textTagColorBackground, libCamp_gv__CB_Line_BGColor[lv_lineIndex]);
TextTagSetBackgroundImage(libCamp_gv__CB_Current_ChatBubble[lp_playerIndex], "Assets/Textures/border-tooltip-game.dds", true);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:11900
TextTagSetTime(lv_p_TextTag, c_textTagTimeDuration, 360000.0);
TextTagShowBackground(lv_p_TextTag, true);
TextTagSetBackgroundBorderSize(lv_p_TextTag, 1.0, 1.0);
TextTagSetColor(lv_p_TextTag, c_textTagColorBackground, Color(100,100,100));
TextTagSetBackgroundImage(lv_p_TextTag, "Assets/Textures/border-tooltip-game.dds", true);