# Set Dialog Item Current Value

Grammar — Set dialogItem current value to currentValue|Value for players
FlagsAction

Sets the current value for a dialog item.

# Arguments

  • int [ control ] — Dialog Item
  • fixed — Current Value
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemCurrentValue(
	int lp_dialogItem,
	fixed lp_currentValue,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Values

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L647
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_levelSlider, lv_level, PlayerGroupAll())
// L922
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_gameSpeedSlider, gf_GameSpeedIndex(lv_speed), PlayerGroupAll())
// L647
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_levelSlider, lv_level, PlayerGroupAll())
// L922
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_gameSpeedSlider, gf_GameSpeedIndex(lv_speed), PlayerGroupAll())

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L1100
libNtve_gf_SetDialogItemCurrentValue(libAMVS_gv_trGr_UI.lv_timerProgressBar, ((TimerGetRemaining(lp_timer) / (TimerGetRemaining(lp_timer) + TimerGetElapsed(lp_timer))) * 100.0), PlayerGroupAll())

# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod

LibMDoE.galaxy

// L1666
libNtve_gf_SetDialogItemCurrentValue(libMDoE_gv_mDoeUITopPanel.lv_boatProgressBar[lp_team], libMDoE_gv_mDoE_Boat[lp_team].lv_progress, PlayerGroupAll())

# mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod

LibMHPP.galaxy

// L1499
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[1], lv_distance1, PlayerGroupAll())
// L1500
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[2], lv_distance1, PlayerGroupAll())
// L1501
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[3], lv_distance1, PlayerGroupAll())
// L1507
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[2], lv_distance2, PlayerGroupAll())
// L1508
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[3], lv_distance2, PlayerGroupAll())
// L1514
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mapMechanic_ProgressBarMarkerBars[3], lv_distance3, PlayerGroupAll())
// L1533
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_mHPP_UI_PayloadProgressBar2, (libMHPP_gv_payload.lv_totalProgress*100), PlayerGroupAll())
// L1552
libNtve_gf_SetDialogItemCurrentValue(libMHPP_gv_mHPPUI.lv_topPanel_OvertimeProgressBar, (TimerGetRemaining(libMHPP_gv_payload.lv_overtimeTimer) / libMHPP_gv_payload.lv_overtimeTime), PlayerGroupAll())

# mods/heroesdata.stormmod

GameLib.galaxy

// L1285
libNtve_gf_SetDialogItemCurrentValue(DialogControlLastCreated(), 0.0, PlayerGroupAll())
// L13947
libNtve_gf_SetDialogItemCurrentValue(libGame_gv_capturePoints[lv_capturePointIndex].lv_captureProgressBar, (libGame_gv_capturePoints[lv_capturePointIndex].lv_captureCounter + libGame_gv_capturePoints[lv_capturePointIndex].lv_maximumPoints), PlayerGroupAll())

# mods/heroesdata.stormmod

UILib.galaxy

// L1640
libNtve_gf_SetDialogItemCurrentValue(libUIUI_gv_deathRecap_Panel.lv_highestDamagersProgressBars[lv_itHighestDamager], (IntToFixed(libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_highestDamagers[lv_itHighestDamager].lv_amount) / IntToFixed(lv_totalDamage) * 100), libCore_gv_playerGroupFromPlayer[lp_deadPlayer])
// L6711
libNtve_gf_SetDialogItemCurrentValue(libUIUI_gv_uIPartyFrame.lv_heroHeroicTalentProgressBar[lv_playerRosterSlot], 0.0, libGame_gf_AlliedPlayerGroupOfPlayer(lv_playerIndex))
// L6714
libNtve_gf_SetDialogItemCurrentValue(libUIUI_gv_uIPartyFrame.lv_heroHeroicTalentProgressBar[lv_playerRosterSlot], (100.0 * (lv_heroicCoolupCharges / lv_heroicCoolupChargesMax)), libGame_gf_AlliedPlayerGroupOfPlayer(lv_playerIndex))
// L11245
libNtve_gf_SetDialogItemCurrentValue(libUIUI_gv_uIDebugPanel.lv_playerSlider, IntToFixed(lv_itPlayer), libCore_gv_playerGroupFromPlayer[lv_itPlayer])

# mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmod

LibMMAP.galaxy

// L1078
libNtve_gf_SetDialogItemCurrentValue(libMMAP_gv_aVUI.lv_victoryProgressBar[libMMAP_ge_AVUIProgressBars_Top], libMMAP_gv_aVMechanics[lp_team].lv_victoryProgressPercent, lv_teamPlayerGroup)
// L1079
libNtve_gf_SetDialogItemCurrentValue(libMMAP_gv_aVUI.lv_victoryProgressBar[libMMAP_ge_AVUIProgressBars_Bottom], libMMAP_gv_aVMechanics[lp_team].lv_victoryProgressPercent, lv_enemyTeamPlayerGroup)

# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod

LibMLCP.galaxy

// L2122
libNtve_gf_SetDialogItemCurrentValue(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, lp_progress, PlayerGroupAll())

# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod

LibVLSK.galaxy

// L972
libNtve_gf_SetDialogItemCurrentValue(libVLSK_gv_volskayaUI.lv_mapMechanic_ContestProgressBar, lv_percentProgress, PlayerGroupAll())
// L1160
libNtve_gf_SetDialogItemCurrentValue(libVLSK_gv_volskayaUI.lv_overtimeBar_ProgressBar, (libVLSK_gv_capturePoints[lp_capturePointIndex].lv_overtimeRemaining / libVLSK_gv_capturePointOvertimeTime_C), PlayerGroupAll())
// L2174
libNtve_gf_SetDialogItemCurrentValue(libVLSK_gv_volskayaUI.lv_overtimeBar_ProgressBar, (lv_i / 100.0), PlayerGroupAll())

# mods/heromods/alarak.stormmod

LibHALA.galaxy

// L138
libNtve_gf_SetDialogItemCurrentValue(libHALA_gv_alarakUI.lv_sadismProgressBar, FixedToInt(lv_sadismValue), libCore_gv_playerGroupFromPlayer[lp_player])

# mods/heromods/amazon.stormmod

LibHAMA.galaxy

// L169
libNtve_gf_SetDialogItemCurrentValue(libHAMA_gv_amazonUI.lv_SurgeOfLightProgressBar, FixedToInt((100.0 * (lv_currentCharge / lv_maximumCharge))), libCore_gv_playerGroupFromPlayer[lv_amazonPlayer])
// L202
libNtve_gf_SetDialogItemCurrentValue(libHAMA_gv_amazonUI.lv_SurgeOfLightProgressBar, FixedToInt(0.0), libCore_gv_playerGroupFromPlayer[UnitGetOwner(EventUnit())])

# mods/heromods/samuro.stormmod

LibHSAM.galaxy

// L2093
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth1, 100.0, libCore_gv_playerGroupFromPlayer[UnitGetOwner(EventUnit())])
// L2097
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth2, 100.0, libCore_gv_playerGroupFromPlayer[UnitGetOwner(EventUnit())])
// L2143
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth1, 100.0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer])
// L2147
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth2, 100.0, libCore_gv_playerGroupFromPlayer[lv_itSamuroPlayer])
// L2188
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth1, FixedToInt((100.0 * (lv_itMirrorImageCurrentHealth / lv_itMirrorImageMaxHealth))), libCore_gv_playerGroupFromPlayer[UnitGetOwner(EventUnit())])
// L2194
libNtve_gf_SetDialogItemCurrentValue(libHSAM_gv_samuroUI.lv_samuroControlGroupIconHealth2, FixedToInt((100.0 * (lv_itMirrorImageCurrentHealth / lv_itMirrorImageMaxHealth))), libCore_gv_playerGroupFromPlayer[UnitGetOwner(EventUnit())])

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5433
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_GPEnergyBar[lp_mengskPlayer], UnitGetPropertyFixed(libCOMI_gv_cM_GlobalCasterUnit[lp_mengskPlayer], c_unitPropEnergy, c_unitPropCurrent), PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L606
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 0.0, PlayerGroupAll())
// L613
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 0.0, PlayerGroupAll())
// L620
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1.0, PlayerGroupAll())
// L627
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1.0, PlayerGroupAll())
// L5342
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadAvailabilityProgressBars[lp_squadIndex], lv_timepassed, PlayerGroupAll())
// L5346
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadAvailabilityProgressBars[lp_squadIndex], lp_duration, PlayerGroupAll())
// L8937
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadTrainingProgressBar, 100.0, PlayerGroupAll())
// L9189
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadTrainingProgressBar, (100.0 - UnitGetProgressComplete(libCOUI_gv_cU_TychusSquadBar, 1)), PlayerGroupAll())

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L1088
libNtve_gf_SetDialogItemCurrentValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, lp_difficultyLevel, PlayerGroupAll())