# Fade Dialog Item Transparency

Grammar — Fade dialogItem to a transparency of targetTransparency% over a period of time seconds for players
FlagsNative | Action

Changes the transparency of a dialog item over time.

# Arguments

  • int [ control ] — Dialog Item
  • playergroup — Players
  • fixed — Time
  • fixed — Target Transparency

Returns — void

native void DialogControlFadeTransparency(
	int control,
	playergroup players,
	fixed fadeTime,
	fixed inTargetTransparency,
);

Category: Dialog / Dialog Item Tools

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3210
DialogControlFadeTransparency(lv_text, PlayerGroupAll(), lv_dur, 100.0)
// L3250
DialogControlFadeTransparency(gv_levelStartLabelText, PlayerGroupAll(), 3.0, 100.0)
// L3298
DialogControlFadeTransparency(gv_controlTipBG, PlayerGroupAll(), 0.0, 0.0)
// L3299
DialogControlFadeTransparency(gv_controlTipLabel1, PlayerGroupAll(), 0.0, 0.0)
// L3300
DialogControlFadeTransparency(gv_controlTipLabel2, PlayerGroupAll(), 0.0, 0.0)
// L3325
DialogControlFadeTransparency(gv_controlTipBG, PlayerGroupAll(), lv_dur, 100.0)
// L3326
DialogControlFadeTransparency(gv_controlTipLabel1, PlayerGroupAll(), lv_dur, 100.0)
// L3327
DialogControlFadeTransparency(gv_controlTipLabel2, PlayerGroupAll(), lv_dur, 100.0)
// L3921
DialogControlFadeTransparency(gv_fadeImage, PlayerGroupAll(), 0.0, 0.0)
// L3922
DialogControlFadeTransparency(gv_fadeImage, PlayerGroupAll(), lp_duration, 100.0)
// L2330
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L2334
DialogControlFadeTransparency(gv_customFadeImage, PlayerGroupAll(), lp_duration, 0.0)
// L2338
DialogControlFadeTransparency(gv_customFadeImage, PlayerGroupAll(), lp_duration, 100.0)
// L3210
DialogControlFadeTransparency(lv_text, PlayerGroupAll(), lv_dur, 100.0)
// L3250
DialogControlFadeTransparency(gv_levelStartLabelText, PlayerGroupAll(), 3.0, 100.0)
// L3298
DialogControlFadeTransparency(gv_controlTipBG, PlayerGroupAll(), 0.0, 0.0)
// L3299
DialogControlFadeTransparency(gv_controlTipLabel1, PlayerGroupAll(), 0.0, 0.0)
// L3300
DialogControlFadeTransparency(gv_controlTipLabel2, PlayerGroupAll(), 0.0, 0.0)
// L3325
DialogControlFadeTransparency(gv_controlTipBG, PlayerGroupAll(), lv_dur, 100.0)
// L3326
DialogControlFadeTransparency(gv_controlTipLabel1, PlayerGroupAll(), lv_dur, 100.0)
// L3327
DialogControlFadeTransparency(gv_controlTipLabel2, PlayerGroupAll(), lv_dur, 100.0)
// L3921
DialogControlFadeTransparency(gv_fadeImage, PlayerGroupAll(), 0.0, 0.0)
// L3922
DialogControlFadeTransparency(gv_fadeImage, PlayerGroupAll(), lp_duration, 100.0)
// L2330
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L2334
DialogControlFadeTransparency(gv_customFadeImage, PlayerGroupAll(), lp_duration, 0.0)
// L2338
DialogControlFadeTransparency(gv_customFadeImage, PlayerGroupAll(), lp_duration, 100.0)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L5881
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.2, 100.0)
// L5888
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.2, 0.0)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L5499
DialogControlFadeTransparency(gv_nullZoneBarPanel, PlayerGroupAll(), 1.0, 100.0)
// L9869
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 0.0, 100.0)
// L9895
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 3.0, 0.0)
// L9903
DialogControlFadeTransparency(gv_campaignIntroLabel, PlayerGroupAll(), 4.0, 0.0)
// L9925
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 2.0, 100.0)
// L768
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L4122
DialogControlFadeTransparency(gv_hyperionLowHPUIImage, PlayerGroupSingle(gv_pLAYER_01_USER), 0.0, 50.0)
// L4123
DialogControlFadeTransparency(gv_hyperionLowHPUIImage, PlayerGroupSingle(gv_pLAYER_01_USER), 0.625, 100.0)
// L5499
DialogControlFadeTransparency(gv_nullZoneBarPanel, PlayerGroupAll(), 1.0, 100.0)
// L9869
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 0.0, 100.0)
// L9895
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 3.0, 0.0)
// L9903
DialogControlFadeTransparency(gv_campaignIntroLabel, PlayerGroupAll(), 4.0, 0.0)
// L9925
DialogControlFadeTransparency(gv_campaignIntroPanel, PlayerGroupAll(), 2.0, 100.0)
// L768
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L4122
DialogControlFadeTransparency(gv_hyperionLowHPUIImage, PlayerGroupSingle(gv_pLAYER_01_USER), 0.0, 50.0)
// L4123
DialogControlFadeTransparency(gv_hyperionLowHPUIImage, PlayerGroupSingle(gv_pLAYER_01_USER), 0.625, 100.0)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L1428
DialogControlFadeTransparency(libSwaC_gv__FadeImage, PlayerGroupAll(), lp_duration, 100.0)
// L1435
DialogControlFadeTransparency(libSwaC_gv__FadeImage, PlayerGroupAll(), 0.0, 100.0)
// L1437
DialogControlFadeTransparency(libSwaC_gv__FadeImage, PlayerGroupAll(), lp_duration, 0.0)
// L2040
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L2914
DialogControlFadeTransparency(lv_damageBar, PlayerGroupAll(), 1.0, 100.0)
// L3308
DialogControlFadeTransparency(libSwaC_gv_zS_SwarmHeroUIDialogDamageTakenImage[lp_index], PlayerGroupAll(), 1.0, 100.0)
// L4437
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 60.0)
// L9315
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 100.0)
// L9337
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 2.0, 0.0)
// L14643
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 20.0)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L2956
DialogControlFadeTransparency(lib281DEC45_gv_zSS_StoryPanel, PlayerGroupAll(), (lp_time/2), lp_transparency)
// L2962
DialogControlFadeTransparency(lib281DEC45_gv_zSS_Characters[lib281DEC45_gf_ZSS_CharacterIndex(lv_indexCharacter)].lv_callout, PlayerGroupAll(), lp_time, lp_transparency)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1352
DialogControlFadeTransparency(gv_movingPlatform.lv_leftButton, PlayerGroupAll(), 0.0, 50.0)
// L1356
DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0)
// L1363
DialogControlFadeTransparency(gv_movingPlatform.lv_downButton, PlayerGroupAll(), 0.0, 50.0)
// L1367
DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0)
// L1381
DialogControlFadeTransparency(gv_movingPlatform.lv_rightButton, PlayerGroupAll(), 0.0, 50.0)
// L1385
DialogControlFadeTransparency(gv_movingPlatform.lv_rightIcon, PlayerGroupAll(), 0.0, 50.0)
// L1541
DialogControlFadeTransparency(gv_movingPlatform.lv_leftButton, PlayerGroupAll(), 0.0, 50.0)
// L1542
DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0)
// L1545
DialogControlFadeTransparency(gv_movingPlatform.lv_downButton, PlayerGroupAll(), 0.0, 50.0)
// L1546
DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0)
// L1519
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.0, 100.0)
// L1539
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.25, 0.0)
// L1543
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.25, 100.0)
// L1352
DialogControlFadeTransparency(gv_movingPlatform.lv_leftButton, PlayerGroupAll(), 0.0, 50.0)
// L1356
DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0)
// L1363
DialogControlFadeTransparency(gv_movingPlatform.lv_downButton, PlayerGroupAll(), 0.0, 50.0)
// L1367
DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0)
// L1381
DialogControlFadeTransparency(gv_movingPlatform.lv_rightButton, PlayerGroupAll(), 0.0, 50.0)
// L1385
DialogControlFadeTransparency(gv_movingPlatform.lv_rightIcon, PlayerGroupAll(), 0.0, 50.0)
// L1541
DialogControlFadeTransparency(gv_movingPlatform.lv_leftButton, PlayerGroupAll(), 0.0, 50.0)
// L1542
DialogControlFadeTransparency(gv_movingPlatform.lv_leftIcon, PlayerGroupAll(), 0.0, 50.0)
// L1545
DialogControlFadeTransparency(gv_movingPlatform.lv_downButton, PlayerGroupAll(), 0.0, 50.0)
// L1546
DialogControlFadeTransparency(gv_movingPlatform.lv_downIcon, PlayerGroupAll(), 0.0, 50.0)
// L1519
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.0, 100.0)
// L1539
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.25, 0.0)
// L1543
DialogControlFadeTransparency(gv_overloadTempleFlashingButton, PlayerGroupAll(), 0.25, 100.0)

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L143
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 20.0)
// L1627
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 60.0)
// L8319
DialogControlFadeTransparency(libVoiC_gv__FadeImage, PlayerGroupAll(), lp_duration, 100.0)
// L8326
DialogControlFadeTransparency(libVoiC_gv__FadeImage, PlayerGroupAll(), 0.0, 100.0)
// L8328
DialogControlFadeTransparency(libVoiC_gv__FadeImage, PlayerGroupAll(), lp_duration, 0.0)

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L1514
DialogControlFadeTransparency(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lv_indexClickable)].lv_callout, PlayerGroupAll(), lp_time, lp_transparency)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L984
DialogControlFadeTransparency(libVCUI_gv_pU_ArmyPanel, PlayerGroupAll(), 0.0, 100.0)
// L1215
DialogControlFadeTransparency(libVCUI_gv_pU_BottomBarPanel, PlayerGroupAll(), 0.5, 0.0)
// L1219
DialogControlFadeTransparency(libVCUI_gv_pU_BottomBarPanel, PlayerGroupAll(), 0.5, 100.0)
// L2882
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapPlanetTitleCallout[1], PlayerGroupAll(), 0.0, 100.0)
// L2883
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapPlanetTitleName[1], PlayerGroupAll(), 0.0, 100.0)
// L2884
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapPlanetTitleCallout[2], PlayerGroupAll(), 0.0, 100.0)
// L2885
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapPlanetTitleName[2], PlayerGroupAll(), 0.0, 100.0)
// L3233
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapMissionRewards2, PlayerGroupAll(), 0.0, 100.0)
// L3234
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapMissionRewards, PlayerGroupAll(), 0.0, 100.0)
// L3235
DialogControlFadeTransparency(libVCUI_gv_pU_StarmapNewUnitCallout, PlayerGroupAll(), 0.0, 100.0)

# mods/challenges.sc2mod

LibChal.galaxy

// L1583
DialogControlFadeTransparency(DialogControlLastCreated(), PlayerGroupAll(), 0.0, 50.0)

# mods/core.sc2mod

NativeLib.galaxy

// L4753
DialogControlFadeTransparency(DialogControlLastCreated(), libNtve_gv__BB_Players[lp_barID], 0.2, 20.0)