# Move Dialog Item

Grammar — Move control|Dialog Item to (offsetX, offsetY) relative to anchor of dialog for players
FlagsNative | Action

Moves the specified dialog item to the specified anchor of its parent dialog, with the specified offsets.

# Arguments

  • int [ control ] — Control
  • playergroup — Players
  • int [ preset::Anchor ] — Anchor
  • int — Offset X
  • int — Offset Y

Returns — void

native void DialogControlSetPosition(
	int control,
	playergroup players,
	int anchor,
	int offsetX,
	int offsetY,
);

Category: Dialog / Dialog Item Size And Position

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3585
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_bossHPBarWidth - gv_bossHPBarInnerWidth) / 2), 0)
// L3592
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_bossHPBarWidth - gv_bossHPBarInnerWidth) / 2), 0)
// L3598
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3606
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3633
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_unitHPBarWidth - gv_unitHPBarInnerWidth) / 2), 0)
// L3640
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_unitHPBarWidth - gv_unitHPBarInnerWidth) / 2), 0)
// L3646
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3654
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3686
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 30, 10)
// L3698
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 300, 10)
// L2614
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 50, 50)
// L2619
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 50)
// L3460
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3464
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L4683
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y)
// L4697
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y)
// L4759
DialogControlSetPosition(lp_button, PlayerGroupAll(), c_anchorTop, 0, gv_roomCheatSizeY)
// L4836
DialogControlSetPosition(lp_button, PlayerGroupAll(), c_anchorTop, 0, gv_roomCameraSizeY)
// L5084
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L5089
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1099
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 10, 30)
// L1101
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 85)
// L3585
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_bossHPBarWidth - gv_bossHPBarInnerWidth) / 2), 0)
// L3592
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_bossHPBarWidth - gv_bossHPBarInnerWidth) / 2), 0)
// L3598
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3606
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3633
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_unitHPBarWidth - gv_unitHPBarInnerWidth) / 2), 0)
// L3640
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, ((gv_unitHPBarWidth - gv_unitHPBarInnerWidth) / 2), 0)
// L3646
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3654
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0)
// L3686
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 30, 10)
// L3698
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 300, 10)
// L2614
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 50, 50)
// L2619
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 50)
// L3460
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3464
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L4683
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y)
// L4697
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y)
// L4759
DialogControlSetPosition(lp_button, PlayerGroupAll(), c_anchorTop, 0, gv_roomCheatSizeY)
// L4836
DialogControlSetPosition(lp_button, PlayerGroupAll(), c_anchorTop, 0, gv_roomCameraSizeY)
// L5084
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L5089
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1099
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 10, 30)
// L1101
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 85)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L1900
DialogControlSetPosition(lp_dialogItem, PlayerGroupAll(), lp_anchor, FixedToInt(lv_x), FixedToInt(lv_y))
// L1956
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 1)
// L1961
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottom, 0, 35)
// L1967
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 45)
// L2035
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L5677
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L5704
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L5803
DialogControlSetPosition(libCamp_gv_tS_RoomChangeButtons[lv_index], PlayerGroupAll(), c_anchorTopLeft, lv_sizeX, 13)
// L8273
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 30)
// L10462
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lv_xX, lv_yY)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L2352
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L2352
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L4427
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L8425
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, 0, 0)
// L8430
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorRight, 0, 0)
// L9313
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottom, 0, 100)
// L11469
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 220, 20)
// L14589
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lv_xX, lv_yY)
// L17860
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L17862
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 220)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L5036
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorLeft, 0, 0)
// L5041
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorRight, 0, 0)
// L7733
DialogControlSetPosition(lib281DEC45_gv_zSS_DebugStoryTypeList, PlayerGroupAll(), c_anchorTopLeft, 50, 50)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1144
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1194
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1244
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1294
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1346
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1397
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1447
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L2094
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1592
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L2335
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3023
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3368
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L729
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1144
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1194
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1244
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1294
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1346
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1397
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1447
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L2094
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L1592
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L2335
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3023
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L3368
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L729
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L902
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lv_xX, lv_yY)
// L1617
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L6429
DialogControlSetPosition(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_ge_MissionCheatType_Stage)], PlayerGroupAll(), c_anchorTopLeft, 3, 3)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L4733
DialogControlSetPosition(libVCST_gv_pS_DebugStorySceneList, PlayerGroupAll(), c_anchorTopLeft, 50, 50)
// L4737
DialogControlSetPosition(libVCST_gv_pS_DebugStoryPreviewList, PlayerGroupAll(), c_anchorTopRight, 50, 50)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L4351
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0)
// L10134
DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, -100, -100)