# Set Dialog Size

Grammar — Set size of dialog to (width, height)
FlagsNative | Action

Sets the width and height of a dialog.

# Arguments

  • int [ dialog ] — Dialog
  • int — Width
  • int — Height

Returns — void

native void DialogSetSize(
	int dialog,
	int width,
	int height,
);

Category: Dialog / Dialog Size And Position

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4781
DialogSetSize(gv_roomCheatDialog, gv_roomCheatSizeX, gv_roomCheatSizeY)
// L4857
DialogSetSize(gv_roomCameraDialog, gv_roomCameraSizeX, gv_roomCameraSizeY)
// L10000
DialogSetSize(gv_armoryGradientDialog, lv_gradientWidth, 1200)
// L19482
DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)))
// L4781
DialogSetSize(gv_roomCheatDialog, gv_roomCheatSizeX, gv_roomCheatSizeY)
// L4857
DialogSetSize(gv_roomCameraDialog, gv_roomCameraSizeX, gv_roomCameraSizeY)
// L10000
DialogSetSize(gv_armoryGradientDialog, lv_gradientWidth, 1200)
// L19482
DialogSetSize(gv_debugDialogForSizePos, StringToInt(StringWord(EventChatMessage(false), 2)), StringToInt(StringWord(EventChatMessage(false), 3)))

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L1867
DialogSetSize(lp_dialog, FixedToInt(lv_w), FixedToInt(lv_h))
// L5807
DialogSetSize(libCamp_gv_tS_RoomChangeDialog, lv_sizeX, lv_sizeY)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L15194
DialogSetSize(DialogLastCreated(), 1150, (lv_y + 150))

# campaigns/void.sc2campaign

MapScript.galaxy

// L2000
DialogSetSize(gv_movingPlatform.lv_dialog, 480, 120)
// L2000
DialogSetSize(gv_movingPlatform.lv_dialog, 480, 120)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L216
DialogSetSize(DialogLastCreated(), 1150, (lv_y + 150))

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L6186
DialogSetSize(libVCMI_gv_pM_GameCheat_Dialog, libVCMI_gv_pM_GameCheat_DialogWidth, libVCMI_gv_pM_GameCheat_DialogHeight)
// L6227
DialogSetSize(libVCMI_gv_pM_GameCheat_Dialog, 50, 50)
// L6232
DialogSetSize(libVCMI_gv_pM_GameCheat_Dialog, libVCMI_gv_pM_GameCheat_DialogWidth, libVCMI_gv_pM_GameCheat_DialogHeight)
// L6439
DialogSetSize(libVCMI_gv_pM_MissionCheat_Dialog, (DialogControlGetWidth(libVCMI_gv_pM_MissionCheat_Panel[lv_panelIndex], 1) + 0), DialogGetHeight(libVCMI_gv_pM_MissionCheat_Dialog))
// L6447
DialogSetSize(libVCMI_gv_pM_MissionCheat_Dialog, DialogGetWidth(libVCMI_gv_pM_MissionCheat_Dialog), (lv_cheatUIHeight + 75))

# mods/challenges.sc2mod

LibChal.galaxy

// L662
DialogSetSize(libChal_gv_cHL_VictoryPanelDlg, libChal_gv_cHLC_VICTORYPANEL_WIDTH, lv_height)
// L1226
DialogSetSize(libChal_gv_cHL_DefeatPanelDlg, libChal_gv_cHLC_DEFEATPANEL_WIDTH, lv_height)
// L1729
DialogSetSize(libChal_gv_cHL_WSPanelDlg, libChal_gv_cHLC_WSPANEL_WIDTH, lv_height)

# mods/core.sc2mod

NativeLib.galaxy

// L3134
DialogSetSize(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_width, lp_height)
// L3242
DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height)
// L3316
DialogSetSize(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_width, lp_height)
// L2612
DialogSetSize(libNtve_gv_screenButtonDialogs[lp_screenButtonID], lp_width, lp_height)
// L2720
DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height)
// L2794
DialogSetSize(libNtve_gv_screenLabelDialogs[lp_screenLabelID], lp_width, lp_height)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5128
DialogSetSize(libNCMI_gv_NM_GameCheat_Dialog, libNCMI_gv_NM_GameCheat_DialogWidth, libNCMI_gv_NM_GameCheat_DialogHeight)
// L5166
DialogSetSize(libNCMI_gv_NM_GameCheat_Dialog, 50, 50)
// L5171
DialogSetSize(libNCMI_gv_NM_GameCheat_Dialog, libNCMI_gv_NM_GameCheat_DialogWidth, libNCMI_gv_NM_GameCheat_DialogHeight)
// L5379
DialogSetSize(libNCMI_gv_NM_MissionCheat_Dialog, (DialogControlGetWidth(libNCMI_gv_NM_MissionCheat_Panel[lv_panelIndex], 1) + 0), DialogGetHeight(libNCMI_gv_NM_MissionCheat_Dialog))
// L5387
DialogSetSize(libNCMI_gv_NM_MissionCheat_Dialog, DialogGetWidth(libNCMI_gv_NM_MissionCheat_Dialog), (lv_cheatUIHeight + 75))

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L306
DialogSetSize(libNovC_gv_nC_DebugCampaignTechUpgradesDialog, 1350, (lv_y + 250))
// L555
DialogSetSize(DialogLastCreated(), 1250, (lv_y + 150))