# Set Dialog Item Maximum Value

Grammar — Set dialogItem maximum value to maxValue|Min Value for players
FlagsAction

Sets the maximum value for a dialog item.

# Arguments

  • int [ control ] — Dialog Item
  • fixed — MaxValue
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemMaximumValue(
	int lp_dialogItem,
	fixed lp_maxValue,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Values

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L2773
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_heroMaxLevel_C, PlayerGroupAll())
// L2817
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_gameMaxSpeed_C, PlayerGroupAll())
// L2773
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_heroMaxLevel_C, PlayerGroupAll())
// L2817
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_gameMaxSpeed_C, PlayerGroupAll())

# mods/heroesdata.stormmod

GameLib.galaxy

// L1284
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), (libGame_gv_capturePoints[libGame_gv_capturePointCurrentCount].lv_maximumPoints * 2.0), PlayerGroupAll())

# mods/heroesdata.stormmod

UILib.galaxy

// L9646
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxPlayers, PlayerGroupAll())
// L9652
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxLevel, PlayerGroupAll())

# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod

LibMLCP.galaxy

// L3099
libNtve_gf_SetDialogItemMaximumValue(libMLCP_gv_mMSkyTemplePanelIcons[lv_itTemplIndex].lv_shrineProgress, libMLCP_gv_mMSkyTempleTempleStageDuration_C, PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5432
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_GPEnergyBar[lp_mengskPlayer], UnitGetPropertyFixed(libCOMI_gv_cM_GlobalCasterUnit[lp_mengskPlayer], c_unitPropEnergyMax, c_unitPropCurrent), PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L605
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, lv_maxPoints, PlayerGroupAll())
// L612
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, lv_maxPoints, PlayerGroupAll())
// L619
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 4.0, PlayerGroupAll())
// L626
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 4.0, PlayerGroupAll())
// L5340
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_TychusSquadAvailabilityProgressBars[lp_squadIndex], lp_duration, PlayerGroupAll())