# Position Subtitle to Dialog Item

Grammar — Set the size and position of the subtitle panel to match dialogItem
FlagsNative | Action

Using this function will cause the subtitle panel to use the bounds of the specified dialog item instead of its default size and position.

# Arguments

  • int<control> — Dialog Item

Returns — void

native void DialogSetSubtitlePositionOverrideControl(
	int inControlId,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9466


    // Implementation
    DialogSetSubtitlePositionOverrideControl(libSwaC_gv_zS_ArmyCustomMissionSubtitleAnchor);
    libSwaC_gv_zS_ArmyCustomMissionMap = libSwaC_gf_StoryArmyCategoryEvolutionMission(libSwaC_gv_zS_ArmyCustomMissionCurrentCategory);
    lv_index = 2;

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:11373

    libSwaC_gv_zS_KerriganUIFinalArmor = CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeArmor", 1);
    libSwaC_gf_ZS_KerriganUITierCreate();
    DialogSetSubtitlePositionOverrideControl(libSwaC_gv_zS_KerriganUITierSubTitleAnchor);
    DialogControlSetVisible(libSwaC_gv_zS_KerriganUITierLevelUpFlash, PlayerGroupAll(), false);
    libSwaC_gf_ZS_ShowKerriganUIBackground();

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1159

    }
    lib281DEC45_gf_ZSS_UITravelPreload();
    DialogSetSubtitlePositionOverrideControl(lib281DEC45_gv_zSS_UITravelSubtitleAnchor);
    TriggerEnable(lib281DEC45_gt_ZSS_UITravelLaunchSelected, true);
    TriggerEnable(lib281DEC45_gt_ZSS_UITravelBackSelected, true);

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1680

        DialogControlSetVisible(lib281DEC45_gv_zSS_MissionKerriganButton, PlayerGroupAll(), false);
    }
    DialogSetSubtitlePositionOverrideControl(lib281DEC45_gv_zSS_MissionSubtitleAnchor);
}

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:3160

        DialogClearSubtitlePositionOverride();
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        DialogSetSubtitlePositionOverrideControl(lib281DEC45_gv_zSS_UIMainSetSubtitleAnchor);
        lib281DEC45_gf_ToggleInteractives(true);
        UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeBattleUI, true);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1197

    if ((lp_showHide == true)) {
        TriggerEnable(libVCUI_gt_PU_BottomBarButtonClicked, true);
        DialogSetSubtitlePositionOverrideControl(libVCUI_gv_pU_BottomBarSubtitleAnchor);
    }
    else {

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2056

        DialogControlSetVisible(libVCUI_gv_pU_MissionShipButton, PlayerGroupAll(), false);
    }
    DialogSetSubtitlePositionOverrideControl(libVCUI_gv_pU_MissionSubtitleAnchor);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2573

    libVCUI_gf_PU_SoAUpdateDialog();
    DialogSetVisible(libVCUI_gv_pU_SoADialog, PlayerGroupAll(), true);
    DialogSetSubtitlePositionOverrideControl(libVCUI_gv_pU_SoASubtitleAnchor);
    if ((lp_debugOn == false) && (UserDataGetInt("StoryStates", "Ship UI Visited", "Value", 1) == 0)) {
        TriggerExecute(libVCUI_gt_PU_SoATutorial, true, false);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:2880

    CutsceneShow(libVCUI_gv_pU_StarmapCutscene, true);
    libVCUI_gf_PU_RouteArtanisAnims(libVCUI_gv_pU_StarmapCutscene);
    DialogSetSubtitlePositionOverrideControl(libVCUI_gv_pU_StarmapSubtitlePanel);
    if ((libVCUI_gv_pU_StarmapSelection == 0)) {
        DialogControlFadeTransparency(libVCUI_gv_pU_StarmapPlanetTitleCallout[1], PlayerGroupAll(), 0.0, 100.0);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:344

    if ((lp_showHide == true)) {
        TriggerEnable(libNCUI_gt_NU_BottomBarButtonClicked, true);
        DialogSetSubtitlePositionOverrideControl(libNCUI_gv_nU_BottomBarSubtitleAnchor);
    }
    else {

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:6849

    ConversationDataRegisterUnit("char_RescuedTemplar", null);
    DialogClearSubtitlePositionOverride();
    DialogSetSubtitlePositionOverrideControl(libA3DDD02B_gv_pP_MLSubtitleFrame);
    libNtve_gf_SetDialogItemImage(libA3DDD02B_gv_pP_MLBackgroundImage, libA3DDD02B_gf_PP_MissionLaunchBackground(lp_mission), PlayerGroupAll());
    TriggerEnable(libA3DDD02B_gt_PP_MissionLaunchClicked, true);