# Set Dialog Background
Grammar — Set the background image of dialog to image
Flags —Native
|Action
Sets the background image of a dialog.
# Arguments
int
<dialog> — Dialogstring
<filepath> — Image
Returns — void
native void DialogSetImage(int dialog, string image);
# Related
Category: Dialog / Dialog Item Tools
- Dialog Item Send Animation Event 2 —
void
— DialogControlSetAnimationState - Position Subtitle to Dialog Item —
void
— DialogSetSubtitlePositionOverrideControl - Clear Subtitle Position Dialog Item —
void
— DialogClearSubtitlePositionOverrideControl - Destroy All Dialog Items —
void
— DialogControlDestroyAll - Dialog Containing Dialog Item —
int
<dialog> — DialogControlGetDialog - Dialog Item Type —
int
<preset::ControlType> — DialogControlGetType - Set Dialog Item Color —
void
— libNtve_gf_SetDialogItemColor - Set Dialog Item Style —
void
— libNtve_gf_SetDialogItemStyle - Set Dialog Item Text Writeout —
void
— libNtve_gf_SetDialogItemTextWriteout - Set Dialog Item Text Writeout Duration —
void
— libNtve_gf_SetDialogItemTextWriteoutDuration - Set Dialog Item Tooltip —
void
— libNtve_gf_SetDialogItemTooltip - Dialog Item Color —
color
— libNtve_gf_DialogItemColor - Dialog Item Style —
string
<fontstyle> — libNtve_gf_DialogItemStyle - Dialog Item Tooltip —
text
— libNtve_gf_DialogItemTooltip - Destroy Dialog Item —
void
— DialogControlDestroy - Set Dialog Item Image —
void
— libNtve_gf_SetDialogItemImage - Set Dialog Item Hover Image —
void
— libNtve_gf_SetDialogItemImage2 - Set Dialog Item Image Type —
void
— libNtve_gf_SetDialogItemImageType - Set Dialog Item Blend Mode —
void
— libNtve_gf_SetDialogItemBlendMode - Set Dialog Item Tiled —
void
— libNtve_gf_SetDialogItemImageType2 - Set Dialog Background —
void
— DialogSetImage - Dialog Item Image —
string
— libNtve_gf_DialogItemImage - Dialog Item Image Type —
int
<preset::ImageType> — libNtve_gf_DialogItemImageType - Fade Dialog Item Transparency —
void
— DialogControlFadeTransparency - Set Dialog Item Flash —
void
— libNtve_gf_SetDialogItemFlash - Set Dialog Item Cutscene —
void
— libNtve_gf_SetDialogItemCutscene - Dialog Item Invoke As Text —
void
— DialogControlInvokeAsText - Dialog Item Invoke As String —
void
— DialogControlInvokeAsString - Dialog Item Send Animation Event —
void
— DialogControlSendAnimationEvent - Dialog Item Set Animation Speed —
void
— DialogControlSetAnimationSpeed - Dialog Item Set Animation Time —
void
— DialogControlSetAnimationTime - Dialog Item Advance Animation —
void
— DialogControlAdvanceAnimation - Dialog Item Force Transition —
void
— DialogControlForceTransition - Dialog Item Request Focus —
void
— DialogControlRequestFocus - Set Dialog Item Achievement —
void
— libNtve_gf_SetDialogItemAchievement - Set Dialog Item Render Priority —
void
— libNtve_gf_SetDialogItemRenderPriority - Set Dialog Item Click On Down —
void
— libNtve_gf_SetDialogItemClickOnDown - Set Dialog Item Toggled —
void
— libNtve_gf_SetDialogItemToggled - Set Dialog Item Movie —
void
— libNtve_gf_SetDialogItemMovie - Set Dialog Item Desaturated —
void
— libNtve_gf_SetDialogItemDesaturated - Set Dialog Item Desaturation Color —
void
— libNtve_gf_SetDialogItemDesaturationColor - Set Dialog Item Custom Tooltip —
void
— libNtve_gf_SetDialogItemCustomTooltip - Set Dialog Item Unit —
void
— libNtve_gf_SetDialogItemUnit - Set Dialog Item Model —
void
— libNtve_gf_SetDialogItemModel - Set Dialog Item Animation —
void
— libNtve_gf_SetDialogItemAnimation - Set Dialog Item Camera —
void
— libNtve_gf_SetDialogItemCamera - Set Dialog Item Border Visible —
void
— libNtve_gf_SetDialogItemBorderVisible - Set Dialog Item Border Image —
void
— libNtve_gf_SetDialogItemBorderImage - Set Dialog Item Background Visible —
void
— libNtve_gf_SetDialogItemBackgroundVisible - Set Dialog Item Use Transition —
void
— libNtve_gf_SetDialogItemUseTransition - Set Dialog Item Muted —
void
— libNtve_gf_SetDialogItemMuted - Set Dialog Item Paused —
void
— libNtve_gf_SetDialogItemPaused - Set Dialog Item Accept Mouse —
void
— libNtve_gf_SetDialogItemAcceptMouse - Set Dialog Item Tint Color —
void
— libNtve_gf_SetDialogItemTintColor - Set Dialog Item Team Color —
void
— libNtve_gf_SetDialogItemTeamColor - Set Dialog Item Light —
void
— libNtve_gf_SetDialogItemLight - Set Dialog Item Transition Model —
void
— libNtve_gf_SetDialogItemTransitionModel - Set Dialog Item Force Visible —
void
— libNtve_gf_SetDialogItemForceVisible - Set Dialog Item Render Type —
void
— libNtve_gf_SetDialogItemRenderType - Set Dialog Item Unit Link —
void
— libNtve_gf_SetDialogItemUnitLink - Set Dialog Item Team Color Index —
void
— libNtve_gf_SetDialogItemTeamColorIndex - Set Dialog Item Animation Duration —
void
— libNtve_gf_SetDialogItemAnimationDuration - Set Dialog Item Animation Time —
void
— libNtve_gf_SetDialogItemAnimationTime - Set Dialog Item Actor —
void
— libNtve_gf_SetDialogItemActor - Set Dialog Item Behavior —
void
— libNtve_gf_SetDialogItemBehavior - Set Dialog Item Hotkey —
void
— libNtve_gf_SetDialogItemHotkey - Set Dialog Item Allowed Mouse Buttons —
void
— libNtve_gf_SetDialogItemAllowedMouseButtons - Set Dialog Item Alpha Mask —
void
— libNtve_gf_SetDialogItemAlphaMask - Set Dialog Item Animation Index —
void
— libNtve_gf_SetDialogItemAnimationIndex - Set Dialog Item Handle —
void
— libNtve_gf_SetDialogItemHandle - Set Dialog Item Border Color —
void
— libNtve_gf_SetDialogItemBorderColor - Set Dialog Item Fill Color —
void
— libNtve_gf_SetDialogItemFillColor - Set Dialog Item Submenu —
void
— libNtve_gf_SetDialogItemSubmenu - Set Dialog Item Unit Group —
void
— libNtve_gf_SetDialogItemUnitGroup - Set Dialog Item PlayerId —
void
— libNtve_gf_SetDialogItemPlayerId - Set Dialog Item Score Value Link —
void
— libNtve_gf_SetDialogItemScoreValueLink - Set Dialog Item State Index —
void
— libNtve_gf_SetDialogItemStateIndex
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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/libertystory.sc2campaign — base.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.sc2campaign — base.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.stormmod — base.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.sc2mod — base.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;