# Set Dialog Background

Grammar — Set the background image of dialog to image
FlagsNative | Action

Sets the background image of a dialog.

# Arguments

  • int<dialog> — Dialog
  • string<filepath> — Image

Returns — void

native void DialogSetImage(int dialog, string image);

Category: Dialog / Dialog Item Tools

# Examples

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

        DialogCreate(500, 400, c_anchorCenter, 0, 0, false);
        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);

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

        DialogCreate(500, 400, c_anchorCenter, 0, 0, false);
        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);

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

        DialogCreate(500, 400, c_anchorCenter, 0, 0, false);
        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);

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

        DialogCreate(500, 400, c_anchorCenter, 0, 0, false);
        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);

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

    DialogCreate(lp_width, lp_height, c_anchorCenter, 0, 0, true);
    libCamp_gv__MsgDlg = DialogLastCreated();
    DialogSetImage(DialogLastCreated(), "Assets\\Textures\\ui_protoss_glass_stroke.dds");
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(6.27, 14.51, 24.71), PlayerGroupAll());

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6395

    DialogCreate(20, 20, c_anchorTopRight, 5, 60, true);
    libVCMI_gv_pM_MissionCheat_Dialog = DialogLastCreated();
    DialogSetImage(libVCMI_gv_pM_MissionCheat_Dialog, lv_boarderImage);
    auto487E3D4B_ae = ((libVCMI_ge_MissionCheatType_User02) - 1);
    lv_panelIndex = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:782

    DialogCreate(300, 860, c_anchorTopRight, 100, 50, true);
    libSprt_gv_qACheatsControlsPanel.lv_mainDialog = DialogLastCreated();
    DialogSetImage(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, "Assets\\Textures\\storm_ui_store_gradientbackground_new.dds");
    libNtve_gf_CreateDialogItemLabel(DialogLastCreated(), 175, 25, c_anchorTop, 50, 0, StringExternal("Param/Value/lib_Sprt_3EA40164"), Color(100,100,100), false, 2.0);
    libNtve_gf_CreateDialogItemButton(DialogLastCreated(), 35, 35, c_anchorTopRight, 5, 5, StringToText(""), StringExternal("Param/Value/lib_Sprt_4377DBE5"), "");

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5331

    DialogCreate(20, 20, c_anchorTopRight, 5, 60, true);
    libNCMI_gv_NM_MissionCheat_Dialog = DialogLastCreated();
    DialogSetImage(libNCMI_gv_NM_MissionCheat_Dialog, lv_boarderImage);
    auto487E3D4B_ae = ((libNCMI_ge_MissionCheatType_User02) - 1);
    auto487E3D4B_ai = 1;