# Set Next Loading Screen Text Position
Grammar — Move the next loading screen’s Text to (offsetX, offsetY) relative to anchor of screen with width width and height height
Flags —Native
|Action
Adjusts the text position of the next loading screen if transitioning to a new map from the current one.
# Arguments
int
<preset::Anchor> — Anchorint
— OffsetXint
— OffsetYint
— Widthint
— Height
Returns — void
native void UISetNextLoadingScreenTextPosition(
int anchor,
int offsetX,
int offsetY,
int width,
int height,
);
# Related
Category: UI / Transitions
- Set Next Movie —
void
— MoviePlayAfterGame - Set Next Loading Screen —
void
— UISetNextLoadingScreen - Set Next Loading Screen Image Scale —
void
— UISetNextLoadingScreenImageScale - Set Next Loading Screen Text Position —
void
— UISetNextLoadingScreenTextPosition - Set Restart Loading Screen Tip —
void
— UISetRestartLoadingScreen - Game Credits Finished —
void
— TriggerAddEventGameCreditsFinished
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8405
UISetNextLoadingScreen("Assets\\Textures\\loading-lostviking.dds", StringToText(""), (StringExternal("Param/Value/lib_Camp_D1F4D6A7") + StringExternal("Param/Value/lib_Camp_3AB64EDD") + StringExternal("Param/Value/lib_Camp_8172429D")), StringToText(""), StringExternal("Param/Value/lib_Camp_5B28E86A"), true);
UISetNextLoadingScreenImageScale(c_scaleAspect);
UISetNextLoadingScreenTextPosition(c_anchorTop, 0, 250, 750, 400);
}
else {
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8414
UISetNextLoadingScreen(lv_image, lv_title, lv_subTitle, StringToText(""), lv_help, true);
UISetNextLoadingScreenImageScale(c_scaleAspect);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, 50, 250, 750, 400);
}
}
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8468
UISetNextLoadingScreen(lv_image, StringToText(""), StringToText(""), StringToText(""), StringExternal("Param/Value/lib_Camp_CFB915EF"), false);
UISetNextLoadingScreenImageScale(c_scaleAspect);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, 40, 60, 1100, 400);
libCamp_gf_TS_SaveAllTransitionData(false, false, (lp_resultFromVictory == c_gameOverDefeat));
lv_mapID = libCamp_ge_MapID_MapTStory01;
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13234
UISetNextLoadingScreen(lv_image, lv_title, lv_subtitle, lv_body, libSwaC_gf_StoryMapHelp(lp_nextMap), lv_waitForKey);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, lv_offsetX, lv_offsetY, CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny), CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:6886
UISetNextLoadingScreen(lv_image, StringToText(""), lv_subtitle, lv_body, libVoiC_gf_PC_CampaignMapHelp(lp_nextMap), lv_waitForKey);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, lv_offsetX, lv_offsetY, CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny), CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny));
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:3040
UISetNextLoadingScreen(lv_image, StringToText(""), lv_subtitle, lv_body, libComC_gf_CC_MapHelp(lp_nextMap), lv_waitForKey);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, lv_offsetX, lv_offsetY, CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny), CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny));
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6362
UISetNextLoadingScreen(lv_image, lv_title, lv_subtitle, lv_body, libA3DDD02B_gf_StoryMapHelp(lp_nextMap), lv_waitForKey);
if ((lp_nextMap == "VoidPrologue01")) {
UISetNextLoadingScreenTextPosition(c_anchorTop, lv_offsetX, lv_offsetY, CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny), CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny));
}
else {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:6365
}
else {
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, lv_offsetX, lv_offsetY, CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextWidth", c_playerAny), CatalogFieldValueGetAsInt(c_gameCatalogMap, (lp_nextMap), "LoadingTextHeight", c_playerAny));
}
}