# Set Dialog Item Tiled

Grammar — Set dialogItem Tiled flag to tiled for players
FlagsAction

This is for images that are using the border image type. If tiled is set to true, the sides of the image will be repeated to fill the desired height/width. Otherwise they will be stretched.

# Arguments

  • int<control> — Dialog Item
  • bool — Tiled
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemImageType2(
	int lp_dialogItem,
	bool lp_tiled,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3462

        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeNormal, PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), false, PlayerGroupAll());
        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10394

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 2000, 150);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_planetpanel_zeratul_frame_bottom.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10446

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 17, 30);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_planetpanel_zeratul_arrow.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(21.96, 70.20, 24.71), PlayerGroupAll());
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3462

        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeNormal, PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), false, PlayerGroupAll());
        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:10394

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 2000, 150);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_planetpanel_zeratul_frame_bottom.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorCenter, 0, 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:10446

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 17, 30);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_planetpanel_zeratul_arrow.dds", PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(21.96, 70.20, 24.71), PlayerGroupAll());
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5680

        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeBorder, PlayerGroupAll());
        libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_roomselectionframe.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogCreate(1600, 400, c_anchorBottom, 0, 70, false);
        libCamp_gv_tS_RoomChangeDialogSubtitle = DialogLastCreated();

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13482

        libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\white32.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(0,0,0), PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 400, 50);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13515

        libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\white32.dds", PlayerGroupAll());
        libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(0,0,0), PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 400, 50);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, 0, 0);

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:337

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANELTOPBORDER_WIDTH, libChal_gv_cHLC_VICTORYPANELTOPBORDER_HEIGHT);
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        auto6378191D_val = lv_race;
        if (auto6378191D_val == "Terr") {

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:353

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libChal_gv_cHL_VictoryPanelBorder = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANEL_WIDTH, 100);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeHorizontalBorder, PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:371

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libChal_gv_cHL_VictoryPanelBlackMask = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANEL_WIDTH, 11);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeHorizontalBorder, PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:378

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libChal_gv_cHL_VictoryPanelGradient = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANEL_WIDTH, 11);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeHorizontalBorder, PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:396

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libChal_gv_cHL_VictoryPanelInnerLine = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANEL_WIDTH, 11);
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeHorizontalBorder, PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:414

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_VICTORYPANELSPLIT_WIDTH, libChal_gv_cHLC_VICTORYPANELSPLIT_HEIGHT);
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeEndCap, PlayerGroupAll());
        auto913794DC_val = lv_race;

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:488

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libChal_gv_cHL_VictoryPanelScoreBG = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeEndCap, PlayerGroupAll());
        libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_battlenet_challenge_frame_total.dds", PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:511

        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
        libChal_gv_cHL_VictoryPanelScoreLabel = DialogControlLastCreated();
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        auto1AD394E3_val = lv_race;
        if (auto1AD394E3_val == "Terr") {

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:992

        DialogSetImageVisible(DialogLastCreated(), false);
        DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_DEFEATPANELTOPBORDER_WIDTH, libChal_gv_cHLC_DEFEATPANELTOPBORDER_HEIGHT);
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:994

        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), libChal_gv_cHLC_DEFEATPANELTOPBORDER_WIDTH, libChal_gv_cHLC_DEFEATPANELTOPBORDER_HEIGHT);
        libNtve_gf_SetDialogItemImageType2(DialogControlLastCreated(), true, PlayerGroupAll());
        auto3D785BDF_val = lv_race;
        if (auto3D785BDF_val == "Terr") {

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

    libNtve_gf_SetDialogItemImage(lv_dialogitem, lp_image, PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType(lv_dialogitem, lp_imageType, PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(lv_dialogitem, lp_tiled, PlayerGroupAll());
    libNtve_gf_SetDialogItemColor(lv_dialogitem, lp_tintColor, PlayerGroupAll());
    libNtve_gf_SetDialogItemBlendMode(lv_dialogitem, lp_blendMode, PlayerGroupAll());

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

    libNtve_gf_SetDialogItemImage(lv_dialogitem, lp_image, PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType(lv_dialogitem, lp_imageType, PlayerGroupAll());
    libNtve_gf_SetDialogItemImageType2(lv_dialogitem, lp_tiled, PlayerGroupAll());
    libNtve_gf_SetDialogItemColor(lv_dialogitem, lp_tintColor, PlayerGroupAll());
    libNtve_gf_SetDialogItemBlendMode(lv_dialogitem, lp_blendMode, PlayerGroupAll());