# Set Dialog Item Rotation

Grammar — Set dialogItem rotation to rotation for players
FlagsAction

Rotates a dialog item.

# Arguments

  • int<control> — Dialog Item
  • int — Rotation
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemRotation(
	int lp_dialogItem,
	int lp_rotation,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Size And Position

# Examples

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

    lv_arrowLeft = libNtve_gf_ScreenImageDialogItem(6);
    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());

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

    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());

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

    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {

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

    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {
        libNtve_gf_SetDialogItemImage(lv_arrowRight, "Assets\\Textures\\tutorialarrow04.dds", PlayerGroupAll());

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

    lv_arrowLeft = libNtve_gf_ScreenImageDialogItem(6);
    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());

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

    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());

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

    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {

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

    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {
        libNtve_gf_SetDialogItemImage(lv_arrowRight, "Assets\\Textures\\tutorialarrow04.dds", PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4678

    lv_arrowLeft = libNtve_gf_ScreenImageDialogItem(6);
    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4679

    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4680

    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:4681

    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {
        libNtve_gf_SetDialogItemImage(lv_arrowRight, "Assets\\Textures\\tutorialarrow00.dds", PlayerGroupAll());

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1357

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 38, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_leftIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_leftIcon, 180, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 100, 23, StringExternal("Param/Value/00C778D9"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1368

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 109, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_downIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_downIcon, 90, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 170, 23, StringExternal("Param/Value/390F85F3"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1376

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 180, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_upIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_upIcon, 270, PlayerGroupAll());
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 241, 23, StringExternal("Param/Value/B8916A75"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");
    gv_movingPlatform.lv_rightButton = DialogControlLastCreated();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1386

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 250, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_rightIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_rightIcon, 0, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_rightIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 310, 23, StringExternal("Param/Value/62E288E2"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4678

    lv_arrowLeft = libNtve_gf_ScreenImageDialogItem(6);
    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4679

    lv_arrowUp = libNtve_gf_ScreenImageDialogItem(7);
    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4680

    libNtve_gf_SetDialogItemRotation(lv_arrowRight, 0, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:4681

    libNtve_gf_SetDialogItemRotation(lv_arrowDown, 90, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowLeft, 180, PlayerGroupAll());
    libNtve_gf_SetDialogItemRotation(lv_arrowUp, 270, PlayerGroupAll());
    while (true) {
        libNtve_gf_SetDialogItemImage(lv_arrowRight, "Assets\\Textures\\tutorialarrow00.dds", PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:1357

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 38, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_leftIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_leftIcon, 180, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 100, 23, StringExternal("Param/Value/00C778D9"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:1368

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 109, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_downIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_downIcon, 90, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 170, 23, StringExternal("Param/Value/390F85F3"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:1376

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 180, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_upIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_upIcon, 270, PlayerGroupAll());
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 241, 23, StringExternal("Param/Value/B8916A75"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");
    gv_movingPlatform.lv_rightButton = DialogControlLastCreated();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:1386

    libNtve_gf_CreateDialogItemImage(gv_movingPlatform.lv_dialog, 60, 60, c_anchorTopLeft, 250, 33, StringToText(""), "Assets\\Textures\\aicommand_scout1.dds", c_triggerImageTypeNormal, false, Color(100,100,100), c_triggerBlendModeAdd);
    gv_movingPlatform.lv_rightIcon = DialogControlLastCreated();
    libNtve_gf_SetDialogItemRotation(gv_movingPlatform.lv_rightIcon, 0, PlayerGroupAll());
    DialogControlFadeTransparency(gv_movingPlatform.lv_rightIcon, PlayerGroupAll(), 0.0, 50.0);
    libNtve_gf_CreateDialogItemButton(gv_movingPlatform.lv_dialog, 80, 80, c_anchorTopLeft, 310, 23, StringExternal("Param/Value/62E288E2"), StringToText(""), "Assets\\Textures\\ui_research_button_protoss_normaloverpressedover.dds");

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

    libNtve_gf_SetDialogItemBlendMode(libNtve_gv_screenImageDialogImages[lp_screenImageID], lp_blendMode, PlayerGroupAll());
    DialogControlSetSize(libNtve_gv_screenImageDialogImages[lp_screenImageID], PlayerGroupAll(), lp_width, lp_height);
    libNtve_gf_SetDialogItemRotation(libNtve_gv_screenImageDialogImages[lp_screenImageID], 0, PlayerGroupAll());
    DialogControlSetPosition(libNtve_gv_screenImageDialogImages[lp_screenImageID], PlayerGroupAll(), c_anchorCenter, 0, 0);
    libNtve_gv_screenImagePulsing[lp_screenImageID] = false;

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

    libNtve_gf_SetDialogItemBlendMode(libNtve_gv_screenImageDialogImages[lp_screenImageID], lp_blendMode, PlayerGroupAll());
    DialogControlSetSize(libNtve_gv_screenImageDialogImages[lp_screenImageID], PlayerGroupAll(), lp_width, lp_height);
    libNtve_gf_SetDialogItemRotation(libNtve_gv_screenImageDialogImages[lp_screenImageID], 0, PlayerGroupAll());
    DialogControlSetPosition(libNtve_gv_screenImageDialogImages[lp_screenImageID], PlayerGroupAll(), c_anchorCenter, 0, 0);
    libNtve_gv_screenImagePulsing[lp_screenImageID] = false;