# Move Dialog

Grammar — Move dialog to (offsetX, offsetY) relative to anchor of screen
FlagsNative | Action

Moves a dialog to the specified anchor, with the specified offsets.

# Arguments

  • int<dialog> — Dialog
  • int<preset::Anchor> — Anchor
  • int — OffsetX
  • int — OffsetY

Returns — void

native void DialogSetPosition(
	int dialog,
	int anchor,
	int offsetX,
	int offsetY,
);

Category: Dialog / Dialog Size And Position

# Examples

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

    gv_tBDWindowExitCallback = lp_exitCallback;
    DialogCreate(800, 600, c_anchorCenter, 0, 0, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    gv_tBDWindowDialog = DialogLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);

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

    gf_RoomCheatUpdateButton(gv_roomCheatButtonCancel, true);
    gv_roomCheatSizeY = (gv_roomCheatSizeY + 35);
    DialogSetPosition(gv_roomCheatDialog, c_anchorCenter, (0 - (gv_roomCheatSizeX / 2)), (0 - (gv_roomCheatSizeY / 2)));
    DialogSetSize(gv_roomCheatDialog, gv_roomCheatSizeX, gv_roomCheatSizeY);
}

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

    gf_RoomCameraUpdateButton(gv_roomCameraButtonCancel, true);
    gv_roomCameraSizeY = (gv_roomCameraSizeY + 35);
    DialogSetPosition(gv_roomCameraDialog, c_anchorCenter, (0 - (gv_roomCameraSizeX / 2)), (0 - (gv_roomCameraSizeY / 2)));
    DialogSetSize(gv_roomCameraDialog, gv_roomCameraSizeX, gv_roomCameraSizeY);
}

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

    DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
    if ((lv_gradientDirection == 0.0)) {
        DialogSetPosition(gv_armoryGradientDialog, c_anchorLeft, 0, 0);
        libNtve_gf_SetDialogItemImage(gv_armoryGradientDialogImage, "Assets\\Textures\\ui_armory_gradient_left.dds", PlayerGroupAll());
    }

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

    }
    else {
        DialogSetPosition(gv_armoryGradientDialog, c_anchorRight, 0, 0);
        libNtve_gf_SetDialogItemImage(gv_armoryGradientDialogImage, "Assets\\Textures\\ui_armory_gradient_right.dds", PlayerGroupAll());
    }

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

    TriggerEnable(TriggerGetCurrent(), false);
    DialogCreate(700, 1100, c_anchorCenter, -390, -550, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    gv_debugSceneDialog = DialogLastCreated();
    gf_DebugSceneAddRow(libCamp_ge_SceneID_ScenePreRenderedBetterMarine, StringToText(""), StringToText(""), gt_Rendered01OldRivals, gt_Rendered01OldRivals);

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

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1256

    libNtve_gf_DisplayScreenButton(gv_replay_Transmission_ButtonID_Tutorial, TextCase(StringExternal("Param/Value/B72655EF"), true), 180, 55, c_anchorLeft, 82, 125, gt_ClickReplayTransmissionButton);
    gv_replay_Transmission_Dialog_Tutorial = libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Tutorial);
    DialogSetPosition(libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Tutorial), c_anchorLeft, 55, 155);
    gf_FormatReplayTransmissionButton(gv_replay_Transmission_ButtonID_Tutorial);
    DialogSetVisible(gv_replay_Transmission_Dialog_Tutorial, PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1268

    libNtve_gf_DisplayScreenButton(gv_replay_Transmission_ButtonID_Main, TextCase(StringExternal("Param/Value/15DA9B3E"), true), 180, 55, c_anchorLeft, 432, 150, gt_ClickReplayTransmissionButton);
    gv_replay_Transmission_Dialog_Main = libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Main);
    DialogSetPosition(libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Main), c_anchorCenter, -334, 80);
    gf_FormatReplayTransmissionButton(gv_replay_Transmission_ButtonID_Main);
    DialogSetVisible(gv_replay_Transmission_Dialog_Main, PlayerGroupAll(), false);

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

    gv_tBDWindowExitCallback = lp_exitCallback;
    DialogCreate(800, 600, c_anchorCenter, 0, 0, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    gv_tBDWindowDialog = DialogLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);

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

    gf_RoomCheatUpdateButton(gv_roomCheatButtonCancel, true);
    gv_roomCheatSizeY = (gv_roomCheatSizeY + 35);
    DialogSetPosition(gv_roomCheatDialog, c_anchorCenter, (0 - (gv_roomCheatSizeX / 2)), (0 - (gv_roomCheatSizeY / 2)));
    DialogSetSize(gv_roomCheatDialog, gv_roomCheatSizeX, gv_roomCheatSizeY);
}

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

    gf_RoomCameraUpdateButton(gv_roomCameraButtonCancel, true);
    gv_roomCameraSizeY = (gv_roomCameraSizeY + 35);
    DialogSetPosition(gv_roomCameraDialog, c_anchorCenter, (0 - (gv_roomCameraSizeX / 2)), (0 - (gv_roomCameraSizeY / 2)));
    DialogSetSize(gv_roomCameraDialog, gv_roomCameraSizeX, gv_roomCameraSizeY);
}

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

    DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
    if ((lv_gradientDirection == 0.0)) {
        DialogSetPosition(gv_armoryGradientDialog, c_anchorLeft, 0, 0);
        libNtve_gf_SetDialogItemImage(gv_armoryGradientDialogImage, "Assets\\Textures\\ui_armory_gradient_left.dds", PlayerGroupAll());
    }

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

    }
    else {
        DialogSetPosition(gv_armoryGradientDialog, c_anchorRight, 0, 0);
        libNtve_gf_SetDialogItemImage(gv_armoryGradientDialogImage, "Assets\\Textures\\ui_armory_gradient_right.dds", PlayerGroupAll());
    }

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

    TriggerEnable(TriggerGetCurrent(), false);
    DialogCreate(700, 1100, c_anchorCenter, -390, -550, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    gv_debugSceneDialog = DialogLastCreated();
    gf_DebugSceneAddRow(libCamp_ge_SceneID_ScenePreRenderedBetterMarine, StringToText(""), StringToText(""), gt_Rendered01OldRivals, gt_Rendered01OldRivals);

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

    }

    DialogSetPosition(gv_debugDialogForSizePos, c_anchorTopLeft, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)));
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1256

    libNtve_gf_DisplayScreenButton(gv_replay_Transmission_ButtonID_Tutorial, TextCase(StringExternal("Param/Value/B72655EF"), true), 180, 55, c_anchorLeft, 82, 125, gt_ClickReplayTransmissionButton);
    gv_replay_Transmission_Dialog_Tutorial = libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Tutorial);
    DialogSetPosition(libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Tutorial), c_anchorLeft, 55, 155);
    gf_FormatReplayTransmissionButton(gv_replay_Transmission_ButtonID_Tutorial);
    DialogSetVisible(gv_replay_Transmission_Dialog_Tutorial, PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1268

    libNtve_gf_DisplayScreenButton(gv_replay_Transmission_ButtonID_Main, TextCase(StringExternal("Param/Value/15DA9B3E"), true), 180, 55, c_anchorLeft, 432, 150, gt_ClickReplayTransmissionButton);
    gv_replay_Transmission_Dialog_Main = libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Main);
    DialogSetPosition(libNtve_gf_ScreenButtonDialog(gv_replay_Transmission_ButtonID_Main), c_anchorCenter, -334, 80);
    gf_FormatReplayTransmissionButton(gv_replay_Transmission_ButtonID_Main);
    DialogSetVisible(gv_replay_Transmission_Dialog_Main, PlayerGroupAll(), false);

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

    lv_x = libCamp_gf_GD_GridToInteger(lp_offsetX, libCamp_ge_GRIDDLG_HV_Horizontal, libCamp_ge_GRIDDLG_HV2_NoneClient);
    lv_y = libCamp_gf_GD_GridToInteger(lp_offsetY, libCamp_ge_GRIDDLG_HV_Vertical, libCamp_ge_GRIDDLG_HV2_NoneClient);
    DialogSetPosition(lp_dialog, lp_anchor, lv_x, lv_y);
}

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

        DialogSetSize(libCamp_gv_tS_RoomChangeDialog, lv_sizeX, lv_sizeY);
        DialogControlSetSize(libCamp_gv_tS_RoomChangeDialogBorder, PlayerGroupAll(), lv_sizeX, lv_sizeY);
        DialogSetPosition(libCamp_gv_tS_RoomChangeDialog, c_anchorBottom, 0, 0);
    }

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


    DialogCreate(1500, 1100, c_anchorCenter, 0, 0, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    libCamp_gv_tS_DebugProgressDialog = DialogLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);

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

    // Implementation
    DialogCreate(900, 600, c_anchorCenter, 0, 0, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    libCamp_gv_tS_DebugBuyTechDialog = DialogLastCreated();
    libCamp_gf_TS_DebugBuyTechAddPositionedDialogControl(c_triggerControlTypeLabel, c_anchorTopLeft, 250, 60, 500, 50, StringExternal("Param/Value/lib_Camp_B384F9B3"));

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

    // Implementation
    DialogCreate(800, 400, c_anchorCenter, 0, 0, true);
    DialogSetPosition(DialogLastCreated(), c_anchorCenter, 0, 0);
    libCamp_gv_tS_DebugBuyTechDialog = DialogLastCreated();
    libCamp_gf_TS_DebugBuyTechAddPositionedDialogControl(c_triggerControlTypeLabel, c_anchorTopLeft, 300, 60, 500, 50, StringExternal("Param/Value/lib_Camp_B5287B7F"));

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

        libSwaC_gv_zS_VictoryStatDlg = DialogLastCreated();
        DialogSetImageVisible(DialogLastCreated(), false);
        DialogSetPosition(DialogLastCreated(), c_anchorTop, 0, 0);
        DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "VictoryPanel/VictoryPanelMainPanelTemplate");
        lv_panel = DialogControlLastCreated();

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3135


    DialogSetSize(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_anchor, lp_offsetX, lp_offsetY);
    if ((libNtve_gv_screenButtons[lp_screenButtonID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenButtonDialogs[lp_screenButtonID], c_triggerControlTypeButton);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3243

    DialogSetImageVisible(libNtve_gv_screenImageDialogs[lp_screenImageID], false);
    DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_anchor, lp_offsetX, lp_offsetY);
    DialogSetTransparency(libNtve_gv_screenImageDialogs[lp_screenImageID], 0.0);
    if ((libNtve_gv_screenImageDialogImages[lp_screenImageID] == c_invalidDialogControlId)) {

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3317

    DialogSetImageVisible(libNtve_gv_screenLabelDialogs[lp_screenLabelID], false);
    DialogSetSize(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_anchor, lp_offsetX, lp_offsetY);
    if ((libNtve_gv_screenLabelDialogLabels[lp_screenLabelID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenLabelDialogs[lp_screenLabelID], c_triggerControlTypeLabel);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4913

    }

    DialogSetPosition(libNtve_gv__BB_Dialog[lp_bossBarID], lp_anchor, lp_offsetX, lp_offsetY);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2613


    DialogSetSize(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_anchor, lp_offsetX, lp_offsetY);
    if ((libNtve_gv_screenButtons[lp_screenButtonID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenButtonDialogs[lp_screenButtonID], c_triggerControlTypeButton);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2721

    DialogSetImageVisible(libNtve_gv_screenImageDialogs[lp_screenImageID], false);
    DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_anchor, lp_offsetX, lp_offsetY);
    DialogSetTransparency(libNtve_gv_screenImageDialogs[lp_screenImageID], 0.0);
    if ((libNtve_gv_screenImageDialogImages[lp_screenImageID] == c_invalidDialogControlId)) {

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2795

    DialogSetImageVisible(libNtve_gv_screenLabelDialogs[lp_screenLabelID], false);
    DialogSetSize(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_anchor, lp_offsetX, lp_offsetY);
    if ((libNtve_gv_screenLabelDialogLabels[lp_screenLabelID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenLabelDialogs[lp_screenLabelID], c_triggerControlTypeLabel);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4158

    }

    DialogSetPosition(libNtve_gv__BB_Dialog[lp_bossBarID], lp_anchor, lp_offsetX, lp_offsetY);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:278

    }
    else {
        DialogSetPosition(libStEx_gv_sE_VOMsgDialog, c_anchorBottom, 0, 150);
    }
    if ((libStEx_gv_sE_VOMsgPanel != c_invalidDialogControlId)) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:338

    libStEx_gf_DisplayVOMessage(lp_msg, lp_duration, lp_writeOut);
    if ((libStEx_gv_sE_VOMsgDialog != c_invalidDialogId)) {
        DialogSetPosition(libStEx_gv_sE_VOMsgDialog, c_anchorTop, 0, 75);
    }

mods/liberty.sc2modbase.sc2data/TriggerLibs/LibertyLib.galaxy:387

            if (lv_computerPlayer < 0) { break; }
            if ((PlayerGroupHasPlayer(libLbty_gv_meleeSurrender_PlayersAnswered[lv_humanPlayer], lv_computerPlayer) == false)) {
                DialogSetPosition(libLbty_gv_meleeSurrender_Dialog[lv_computerPlayer], c_anchorTopRight, 10, lv_y);
                lv_y += 200;
            }

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

        libA3DDD02B_gv_pP_VictoryStatDlg = DialogLastCreated();
        DialogSetImageVisible(DialogLastCreated(), false);
        DialogSetPosition(DialogLastCreated(), c_anchorTop, 0, 0);
        DialogControlCreateFromTemplate(DialogLastCreated(), c_triggerControlTypePanel, "VictoryPanel/VictoryPanelMainPanelTemplate");
        lv_panel = DialogControlLastCreated();