# Set Dialog Transparency
Grammar — Set transparency of dialog to transparency%
Flags —Native
|Action
Sets the transparency of the specified dialog.
# Arguments
int
<dialog> — Dialogfixed
— Transparency
Returns — void
native void DialogSetTransparency(
int dialog,
fixed inTransparency,
);
# Related
Category: Dialog / Dialog Tools
- Destroy All Dialogs —
void
— DialogDestroyAll - Destroy Dialog —
void
— DialogDestroy - Position Subtitle to Dialog —
void
— DialogSetSubtitlePositionOverride - Clear Subtitle Position Dialog —
void
— DialogClearSubtitlePositionOverride - Set Dialog Enabled —
void
— DialogSetEnabled - Dialog Is Enabled —
bool
— DialogIsEnabled - Set Dialog Offscreen —
void
— DialogSetOffscreen - Dialog Is Offscreen —
bool
— DialogIsOffscreen - Dialog Is Modal —
bool
— DialogIsModal - Show/Hide Dialog Background —
void
— DialogSetImageVisible - Dialog Background Image Is Visible —
bool
— DialogIsImageVisible - Dialog Background Image —
string
— DialogGetImage - Set Dialog Transparency —
void
— DialogSetTransparency - Dialog Transparency —
fixed
— DialogGetTransparency - Set Dialog RTT Channel —
void
— DialogSetChannel - Dialog Channel —
int
— DialogGetChannel - Set Dialog Render Priority —
void
— DialogSetRenderPriority - Dialog Render Priority —
int
— DialogGetRenderPriority - Set Dialog Observed Type —
void
— DialogSetObservedType
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:5683
DialogCreate(1600, 400, c_anchorBottom, 0, 70, false);
libCamp_gv_tS_RoomChangeDialogSubtitle = DialogLastCreated();
DialogSetTransparency(DialogLastCreated(), 100.0);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:586
if ((lp_showHide == true)) {
DialogSetTransparency(libSwaC_gv_zS_WorldCoverDlg, lp_transparency);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:8296
if ((lp_showHide == true)) {
DialogSetTransparency(libVoiC_gv_pC_WorldCoverDlg, lp_transparency);
}
mods/core.sc2mod — base.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.stormmod — base.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.sc2mod — base.sc2data/LibComC.galaxy:4261
if ((lp_showHide == true)) {
DialogSetTransparency(libComC_gv_cC_WorldCoverDlg, lp_transparency);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:5393
if ((lp_showHide == true)) {
DialogSetTransparency(libCOOC_gv_cC_WorldCoverDlg, lp_transparency);
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:281
if ((lp_showHide == true)) {
DialogSetTransparency(libA3DDD02B_gv_pP_WorldCoverDlg, lp_transparency);
}