# Set Next Loading Screen
Grammar — Set the next loading screen image to image and text to title, subtitle, body, and help
Flags —Native
|Action
Creates the next loading screen if transitioning to a new map from the current one.
# Arguments
string
<filepath> — Imagetext
— Titletext
— Subtitletext
— Bodytext
— Helpbool
— Wait For Input
Returns — void
native void UISetNextLoadingScreen(
string imagePath,
text title,
text subtitle,
text body,
text help,
bool waitForInput,
);
# 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:8403
}
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);
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8412
}
else {
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:8466
lv_image = libCamp_gf_TS_BackToStoryModeLoadingImage(lv_image);
TriggerDebugOutput(1, (StringExternal("Param/Value/lib_Camp_85AB6480") + StringToText(lv_image)), false);
UISetNextLoadingScreen(lv_image, StringToText(""), StringToText(""), StringToText(""), StringExternal("Param/Value/lib_Camp_CFB915EF"), false);
UISetNextLoadingScreenImageScale(c_scaleAspect);
UISetNextLoadingScreenTextPosition(c_anchorTopLeft, 40, 60, 1100, 400);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13210
if ((lp_restart == true)) {
if ((lp_nextMap == "ZLab1")) {
UISetNextLoadingScreen(libSwaC_gf_StoryMapLoadingScreenImage("ZLab1"), StringToText(""), StringToText(""), StringToText(""), StringExternal(CatalogFieldValueGet(c_gameCatalogMap, lp_nextMap, "LoadingHelpRestart", c_playerAny)), lv_waitForKey);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13233
}
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:6885
}
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:3039
}
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:6360
}
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));