# Set Dialog Item Current Value
Grammar — Set dialogItem current value to currentValue|Value for players
Flags —Action
Sets the current value for a dialog item.
# Arguments
int
[ control ] — Dialog Itemfixed
— Current Valueplayergroup
— Players
Returns — void
void libNtve_gf_SetDialogItemCurrentValue(
int lp_dialogItem,
fixed lp_currentValue,
playergroup lp_players,
);
# Related
Category: Dialog / Dialog Item Values
- [F] —
void
— Set Dialog Item Current Value — ( libNtve_gf_SetDialogItemCurrentValue ) - [F] —
void
— Set Dialog Item Minimum Value — ( libNtve_gf_SetDialogItemMinimumValue ) - [F] —
void
— Set Dialog Item Maximum Value — ( libNtve_gf_SetDialogItemMaximumValue ) - [F] —
void
— Set Dialog Item Checked — ( libNtve_gf_SetDialogItemChecked ) - [F] —
void
— Set Dialog Item Edit Value — ( libNtve_gf_SetDialogItemEditorValue ) - [F] —
fixed
— Dialog Item Current Value — ( libNtve_gf_DialogItemValue ) - [F] —
fixed
— Dialog Item Maximum Value — ( libNtve_gf_DialogItemMaximumValue ) - [F] —
fixed
— Dialog Item Minimum Value — ( libNtve_gf_DialogItemMinimumValue ) - [F] —
bool
— Dialog Item Is Checked — ( libNtve_gf_DialogItemIsChecked ) - [F] —
string
— Dialog Item Edit Value — ( libNtve_gf_DialogItemEditValue ) - [F] —
void
— Add List Item — ( DialogControlAddItem ) - [F] —
void
— Select List Item — ( DialogControlSelectItem ) - [F] —
void
— Clear List Selection — ( DialogControlClearSelectedItem ) - [F] —
int
— Selected List Item — ( DialogControlGetSelectedItem ) - [F] —
int
— Count Of List Items — ( DialogControlGetItemCount ) - [F] —
void
— Remove List Item — ( DialogControlRemoveItem ) - [F] —
void
— Remove All List Items — ( DialogControlRemoveAllItems ) - [F] —
void
— Add Graph Data Point — ( DialogControlAddDataPoint ) - [F] —
void
— Remove All Graph Data Points — ( DialogControlRemoveAllDataPoints ) - [F] —
void
— Set Graph Data Color — ( DialogControlSetDataColor ) - [F] —
void
— Set Graph Data Name — ( DialogControlSetDataName ) - [F] —
void
— Set Graph Minimum X Visible — ( DialogControlSetMinXVisible ) - [F] —
fixed
— Get Graph Minimum X Value — ( DialogControlGetMinXValue ) - [F] —
void
— Set Graph Maximum X Visible — ( DialogControlSetMaxXVisible ) - [F] —
fixed
— Get Graph Maximum X Value — ( DialogControlGetMaxXValue ) - [F] —
void
— Set Graph Minimum Y Visible — ( DialogControlSetMinYVisible ) - [F] —
fixed
— Get Graph Minimum Y Value — ( DialogControlGetMinYValue ) - [F] —
void
— Set Graph Maximum Y Visible — ( DialogControlSetMaxYVisible ) - [F] —
fixed
— Get Graph Maximum Y Value — ( DialogControlGetMaxYValue )
# Examples
# mods/heroes.stormmod
// 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
// 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
// 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
// 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
// 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
// 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
// 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
// L2122
libNtve_gf_SetDialogItemCurrentValue(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, lp_progress, PlayerGroupAll())
# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod
// 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
// L138
libNtve_gf_SetDialogItemCurrentValue(libHALA_gv_alarakUI.lv_sadismProgressBar, FixedToInt(lv_sadismValue), libCore_gv_playerGroupFromPlayer[lp_player])
# mods/heromods/amazon.stormmod
// 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
// 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
// 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
// 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
// L1088
libNtve_gf_SetDialogItemCurrentValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, lp_difficultyLevel, PlayerGroupAll())