# Set Dialog Item Maximum Value
Grammar — Set dialogItem maximum value to maxValue|Min Value for players
Flags —Action
Sets the maximum value for a dialog item.
# Arguments
int
[ control ] — Dialog Itemfixed
— MaxValueplayergroup
— Players
Returns — void
void libNtve_gf_SetDialogItemMaximumValue(
int lp_dialogItem,
fixed lp_maxValue,
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
// 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
// L1284
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), (libGame_gv_capturePoints[libGame_gv_capturePointCurrentCount].lv_maximumPoints * 2.0), PlayerGroupAll())
# mods/heroesdata.stormmod
// L9646
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxPlayers, PlayerGroupAll())
// L9652
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxLevel, PlayerGroupAll())
# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod
// L3099
libNtve_gf_SetDialogItemMaximumValue(libMLCP_gv_mMSkyTemplePanelIcons[lv_itTemplIndex].lv_shrineProgress, libMLCP_gv_mMSkyTempleTempleStageDuration_C, PlayerGroupAll())
# mods/starcoop/starcoop.sc2mod
// 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
// 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())