# Set Dialog Transparency

Grammar — Set transparency of dialog to transparency%
FlagsNative | Action

Sets the transparency of the specified dialog.

# Arguments

  • int<dialog> — Dialog
  • fixed — Transparency

Returns — void

native void DialogSetTransparency(
	int dialog,
	fixed inTransparency,
);

Category: Dialog / Dialog Tools

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3581

    gv_bossHPBarDlg = DialogLastCreated();
    DialogSetImageVisible(DialogLastCreated(), false);
    DialogSetTransparency(DialogLastCreated(), 0.0);
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_mission_leaderboard_progressbar_fill.dds", PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3629

    gv_unitHPBarDlg = DialogLastCreated();
    DialogSetImageVisible(DialogLastCreated(), false);
    DialogSetTransparency(DialogLastCreated(), 0.0);
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_mission_leaderboard_progressbar_fill.dds", PlayerGroupAll());

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

    DialogCreate(1400, 400, c_anchorBottom, 0, 400, false);
    gv_zPlanetPanel_DialogSubtitle = DialogLastCreated();
    DialogSetTransparency(DialogLastCreated(), 100.0);
    DialogCreate(1, 1, c_anchorCenter, 0, 0, false);
    gv_zPlanetPanel_DialogControl = DialogLastCreated();

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

    lv_index = 1;
    for ( ; ( (autoBB9F0C83_ai >= 0 && lv_index <= autoBB9F0C83_ae) || (autoBB9F0C83_ai <= 0 && lv_index >= autoBB9F0C83_ae) ) ; lv_index += autoBB9F0C83_ai ) {
        DialogSetTransparency(gv_newItems[lv_newItemIndex].lv_dialog, (lv_transparencyChange * IntToFixed(lv_index)));
        Wait(lv_interval, c_timeReal);
    }

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

        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    }

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

        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:3581

    gv_bossHPBarDlg = DialogLastCreated();
    DialogSetImageVisible(DialogLastCreated(), false);
    DialogSetTransparency(DialogLastCreated(), 0.0);
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_mission_leaderboard_progressbar_fill.dds", PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:3629

    gv_unitHPBarDlg = DialogLastCreated();
    DialogSetImageVisible(DialogLastCreated(), false);
    DialogSetTransparency(DialogLastCreated(), 0.0);
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\ui_mission_leaderboard_progressbar_fill.dds", PlayerGroupAll());

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

    DialogCreate(1400, 400, c_anchorBottom, 0, 400, false);
    gv_zPlanetPanel_DialogSubtitle = DialogLastCreated();
    DialogSetTransparency(DialogLastCreated(), 100.0);
    DialogCreate(1, 1, c_anchorCenter, 0, 0, false);
    gv_zPlanetPanel_DialogControl = DialogLastCreated();

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

    lv_index = 1;
    for ( ; ( (autoBB9F0C83_ai >= 0 && lv_index <= autoBB9F0C83_ae) || (autoBB9F0C83_ai <= 0 && lv_index >= autoBB9F0C83_ae) ) ; lv_index += autoBB9F0C83_ai ) {
        DialogSetTransparency(gv_newItems[lv_newItemIndex].lv_dialog, (lv_transparencyChange * IntToFixed(lv_index)));
        Wait(lv_interval, c_timeReal);
    }

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

        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    }

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

        gv_debugDialogForSizePos = DialogLastCreated();
        DialogSetImage(gv_debugDialogForSizePos, "Assets\\Textures\\yellow.dds");
        DialogSetTransparency(DialogLastCreated(), (100.0 - (IntToFixed(100) / (255.0 * 100.0))));
        DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
    }

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

        DialogCreate(1600, 400, c_anchorBottom, 0, 70, false);
        libCamp_gv_tS_RoomChangeDialogSubtitle = DialogLastCreated();
        DialogSetTransparency(DialogLastCreated(), 100.0);
    }

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


    if ((lp_showHide == true)) {
        DialogSetTransparency(libSwaC_gv_zS_WorldCoverDlg, lp_transparency);
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8296


    if ((lp_showHide == true)) {
        DialogSetTransparency(libVoiC_gv_pC_WorldCoverDlg, lp_transparency);
    }

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

    DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_anchor, lp_offsetX, lp_offsetY);
    DialogSetTransparency(libNtve_gv_screenImageDialogs[lp_screenImageID], 0.0);
    if ((libNtve_gv_screenImageDialogImages[lp_screenImageID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenImageDialogs[lp_screenImageID], c_triggerControlTypeImage);

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

    DialogSetSize(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_width, lp_height);
    DialogSetPosition(libNtve_gv_screenImageDialogs[lp_screenImageID], lp_anchor, lp_offsetX, lp_offsetY);
    DialogSetTransparency(libNtve_gv_screenImageDialogs[lp_screenImageID], 0.0);
    if ((libNtve_gv_screenImageDialogImages[lp_screenImageID] == c_invalidDialogControlId)) {
        DialogControlCreate(libNtve_gv_screenImageDialogs[lp_screenImageID], c_triggerControlTypeImage);

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibComC.galaxy:4261


    if ((lp_showHide == true)) {
        DialogSetTransparency(libComC_gv_cC_WorldCoverDlg, lp_transparency);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:5393


    if ((lp_showHide == true)) {
        DialogSetTransparency(libCOOC_gv_cC_WorldCoverDlg, lp_transparency);
    }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:281


    if ((lp_showHide == true)) {
        DialogSetTransparency(libA3DDD02B_gv_pP_WorldCoverDlg, lp_transparency);
    }