# Set Dialog Item Camera

Grammar — Set dialogItem Camera to camera for players
FlagsAction

Sets a Dialog Item’s Camera. Currently supported for types Portrait and Unit Model.

# Arguments

  • int<control> — Dialog Item
  • string — Camera
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemCamera(
	int lp_dialogItem,
	string lp_camera,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9488

            libNtve_gf_SetDialogItemUnitLink(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libSwaC_gf_ZS_StoryArmyUnitUnitType(lv_indexArmyUnit), PlayerGroupAll());
        }
        libNtve_gf_SetDialogItemCamera(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libSwaC_gf_ZS_ArmyUnitBonusMissionCamera(lv_indexArmyUnit), PlayerGroupAll());
        libNtve_gf_SetDialogItemText(libSwaC_gv_zS_ArmyCustomMissionUnitFrameLabel[lv_index], libSwaC_gf_StoryArmyUnitArmyName(lv_indexArmyUnit), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libSwaC_gf_ZS_ArmyUnitPlanetPanelCamera(lv_indexArmyUnit), PlayerGroupAll());

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9490

        libNtve_gf_SetDialogItemCamera(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libSwaC_gf_ZS_ArmyUnitBonusMissionCamera(lv_indexArmyUnit), PlayerGroupAll());
        libNtve_gf_SetDialogItemText(libSwaC_gv_zS_ArmyCustomMissionUnitFrameLabel[lv_index], libSwaC_gf_StoryArmyUnitArmyName(lv_indexArmyUnit), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(libSwaC_gv_zS_ArmyCustomMissionUnits[lv_index], libSwaC_gf_ZS_ArmyUnitPlanetPanelCamera(lv_indexArmyUnit), PlayerGroupAll());
        TextExpressionSetToken("Param/Expression/lib_SwaC_7FD2F0AE", "A", libSwaC_gf_StoryArmyUnitName(lv_indexArmyUnit));
        TextExpressionSetToken("Param/Expression/lib_SwaC_7FD2F0AE", "B", libSwaC_gf_ZS_ArmyUnitTooltip2(lv_indexArmyUnit));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1469

                lv_unitFrameIndex += 1;
                libNtve_gf_SetDialogItemUnitLink(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], (CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap), "Unit", c_playerAny)), PlayerGroupAll());
                libNtve_gf_SetDialogItemCamera(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], libSwaC_gf_StoryArmyCategoryPlanetCamera(libSwaC_gf_MissionArmyCategoryUnlocked(lv_indexMap)), PlayerGroupAll());
                libNtve_gf_SetDialogItemTeamColor(lib281DEC45_gv_zSS_UITravelRewardUnit[lv_unitFrameIndex], libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor()), PlayerGroupAll());
                DialogControlSetVisible(lib281DEC45_gv_zSS_UITravelRewardUnitPanel[lv_unitFrameIndex], PlayerGroupAll(), true);

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1643

        DialogControlSetVisible(lib281DEC45_gv_zSS_MissionTechnologyTitle, PlayerGroupAll(), true);
        libNtve_gf_SetDialogItemUnitLink(lib281DEC45_gv_zSS_MissionUnit, (CatalogFieldValueGet(c_gameCatalogArmyCategory, libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission), "Unit", c_playerAny)), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(lib281DEC45_gv_zSS_MissionUnit, libSwaC_gf_StoryArmyCategoryPlanetCamera(libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission)), PlayerGroupAll());
        libNtve_gf_SetDialogItemTeamColor(lib281DEC45_gv_zSS_MissionUnit, libNtve_gf_ConvertPlayerColorToColor(libSwaC_gf_CampaignKerriganZergPlayerColor()), PlayerGroupAll());
        TextExpressionSetToken("Param/Expression/lib_281DEC45_0E2BCC46", "A", libSwaC_gf_StoryArmyCategoryName(libSwaC_gf_MissionArmyCategoryUnlocked(lib281DEC45_gv_zSS_NextMission)));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1988

        DialogControlSetVisible(libVCUI_gv_pU_MissionRewardUnitName, PlayerGroupAll(), true);
        libNtve_gf_SetDialogItemUnitLink(libVCUI_gv_pU_MissionRewardUnitModel, libVoiC_gf_PC_ArmyCategoryUnitType(lv_rewardCategory), PlayerGroupAll());
        libNtve_gf_SetDialogItemCamera(libVCUI_gv_pU_MissionRewardUnitModel, libVoiC_gf_PC_ArmyCategoryPlanetCamera(lv_rewardCategory), PlayerGroupAll());
        libNtve_gf_SetDialogItemTeamColor(libVCUI_gv_pU_MissionRewardUnitModel, libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor()), PlayerGroupAll());
        TextExpressionSetToken("Param/Expression/lib_VCUI_225AD1C1", "A", libVoiC_gf_PC_ArmyCategoryName(lv_rewardCategory));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:1999

            DialogControlSetVisible(libVCUI_gv_pU_MissionRewardUnitName2, PlayerGroupAll(), true);
            libNtve_gf_SetDialogItemUnitLink(libVCUI_gv_pU_MissionRewardUnitModel2, "ShieldBattery", PlayerGroupAll());
            libNtve_gf_SetDialogItemCamera(libVCUI_gv_pU_MissionRewardUnitModel2, libVoiC_gf_PC_ArmyCategoryPlanetCamera("ShieldBattery"), PlayerGroupAll());
            libNtve_gf_SetDialogItemTeamColor(libVCUI_gv_pU_MissionRewardUnitModel2, libNtve_gf_ConvertPlayerColorToColor(libVCMI_gf_CampaignPlayerColor()), PlayerGroupAll());
            TextExpressionSetToken("Param/Expression/lib_VCUI_2A34C43A", "A", libVoiC_gf_PC_ArmyCategoryName("ShieldBattery"));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:3080

            if ((libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission) != null)) {
                libNtve_gf_SetDialogItemUnitLink(libVCUI_gv_pU_StarmapUnitModels[lv_index], libVoiC_gf_PC_ArmyCategoryUnitType(libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission)), PlayerGroupAll());
                libNtve_gf_SetDialogItemCamera(libVCUI_gv_pU_StarmapUnitModels[lv_index], libVoiC_gf_PC_ArmyCategoryPlanetCamera(libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission)), PlayerGroupAll());
                TextExpressionSetToken("Param/Expression/lib_VCUI_560481B1", "Name", UnitTypeGetName(libVoiC_gf_PC_ArmyCategoryUnitType(libVoiC_gf_MissionArmyCategoryUnlocked(lv_indexMission))));
                libNtve_gf_SetDialogItemText(libVCUI_gv_pU_StarmapUnitLabel[lv_index], TextExpressionAssemble("Param/Expression/lib_VCUI_560481B1"), PlayerGroupAll());

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:3089

        if (lv_player < 0) { break; }
        libNtve_gf_SetDialogItemTeamColor(libWCdr_gv_gameUI.lv_hero_Portrait, libNtve_gf_ConvertPlayerColorToColor(PlayerGetColorIndex(lv_player, false)), PlayerGroupSingle(lv_player));
        libNtve_gf_SetDialogItemCamera(libWCdr_gv_gameUI.lv_hero_Portrait, "Camera01", PlayerGroupAll());
    }
    return true;