# Position Subtitle to Dialog

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

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

# Arguments

  • int<dialog> — Dialog

Returns — void

native void DialogSetSubtitlePositionOverride(int dialog);

Category: Dialog / Dialog Tools

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10567

    gf_ZPlanetPanelCreate();
    gf_ZPlanetPanelUpdate();
    DialogSetSubtitlePositionOverride(gv_zPlanetPanel_DialogSubtitle);
    gf_ZPlanetPanelShowHide(true);
    TransmissionClearAll();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10649

void gf_ZPlanetPanelClose () {
    // Implementation
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    gf_ZPlanetPanelShowHide(false);
    libCamp_gf_HideStoryUI(true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:10567

    gf_ZPlanetPanelCreate();
    gf_ZPlanetPanelUpdate();
    DialogSetSubtitlePositionOverride(gv_zPlanetPanel_DialogSubtitle);
    gf_ZPlanetPanelShowHide(true);
    TransmissionClearAll();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:10649

void gf_ZPlanetPanelClose () {
    // Implementation
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    gf_ZPlanetPanelShowHide(false);
    libCamp_gf_HideStoryUI(true, false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5768

            DialogSetVisible(libCamp_gv_tS_RoomChangeDialog, PlayerGroupAll(), true);
            DialogSetVisible(libCamp_gv_tS_RoomChangeDialogSubtitle, PlayerGroupAll(), false);
            DialogSetSubtitlePositionOverride(libCamp_gv_tS_RoomChangeDialogSubtitle);
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5775

        DialogSetVisible(libCamp_gv_tS_RoomChangeDialog, PlayerGroupAll(), false);
        DialogSetVisible(libCamp_gv_tS_RoomChangeDialogSubtitle, PlayerGroupAll(), false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
    }
}

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

    lib281DEC45_gf_ZSS_AmbientSceneShowForConvo();
    lib281DEC45_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Cinematic, 0.5);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    DialogClearSubtitlePositionOverrideControl();
}

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

    lib281DEC45_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Game, 1.5);
    SoundSetReverb("Off", 1.0, true, true);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
}

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

        lib281DEC45_gf_ShowHideAllAmbientScenes(true);
        DialogClearSubtitlePositionOverride();
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        DialogSetSubtitlePositionOverrideControl(lib281DEC45_gv_zSS_UIMainSetSubtitleAnchor);
        lib281DEC45_gf_ToggleInteractives(true);

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        lib281DEC45_gf_ZSS_UITravelDisplay();
    }

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        lib281DEC45_gf_ZSS_UIMissionDisplay();
    }

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        lib281DEC45_gf_ZSS_UIKerriganShow();
    }

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        lib281DEC45_gf_ZSS_UIArchivesArmyShow();
    }

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        UIClearBattleNetButtonOffset(PlayerGroupAll());
        lib281DEC45_gf_ZSS_DebugStoryCheatDisplay();

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        UIClearBattleNetButtonOffset(PlayerGroupAll());
        lib281DEC45_gf_ZSS_DebugSceneOpen();

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

        lib281DEC45_gf_ToggleInteractives(false);
        lib281DEC45_gf_ShowHideStoryUI(false);
        DialogSetSubtitlePositionOverride(c_invalidDialogId);
        UIClearBattleNetButtonOffset(PlayerGroupAll());
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:1836

    libVCST_gf_PS_AmbientSceneShowForConvo();
    libVCST_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Cinematic, 0.5);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    DialogClearSubtitlePositionOverrideControl();
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:1845

    libVCST_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Game, 1.5);
    SoundSetReverb("Off", 1.0, true, true);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    libVCST_gf_PS_AmbientSetIsInConvoState(false);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6121

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    libVCST_gf_PS_HideAllBackgrounds();
    libVCUI_gf_PU_StarmapDisplay();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6144

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    if ((libVoiC_gf_StoryInSimulation() == true)) {
        libVCUI_gf_PU_MissionDisplay(libVoiC_gf_PC_StorySimulationMission());

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6194

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryDialogue, 100.0, 0.0);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryVoice, 100.0, 0.0);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6218

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryDialogue, 100.0, 0.0);
    SoundChannelSetVolume(PlayerGroupAll(), c_soundCategoryVoice, 100.0, 0.0);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6242

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    UIClearBattleNetButtonOffset(PlayerGroupAll());
    libVCST_gf_PS_DebugStoryCheatDisplay();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6265

    libVCST_gf_ToggleInteractives(false);
    libVCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    UIClearBattleNetButtonOffset(PlayerGroupAll());
    return true;

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:1645

    libNCST_gf_NS_AmbientSceneShowForConvo();
    libNCST_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Cinematic, 0.5);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    DialogClearSubtitlePositionOverrideControl();
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:1653

    libNCST_gf_SetAllSoundChannelVolumesStory(libNtve_ge_VolumeChannelMode_Game, 1.5);
    SoundSetReverb("Off", 1.0, true, true);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    libNCST_gf_NS_AmbientSetIsInConvoState(false);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:5122

    libNCST_gf_ToggleInteractives(false);
    libNCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    UIClearBattleNetButtonOffset(PlayerGroupAll());
    libNCST_gf_NS_DebugStoryCheatDisplay();

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:5145

    libNCST_gf_ToggleInteractives(false);
    libNCST_gf_ShowHideStoryUI(false);
    DialogSetSubtitlePositionOverride(c_invalidDialogId);
    UIClearBattleNetButtonOffset(PlayerGroupAll());
    return true;