# 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
- Set Dialog Item Current Value —
void
— libNtve_gf_SetDialogItemCurrentValue - Set Dialog Item Minimum Value —
void
— libNtve_gf_SetDialogItemMinimumValue - Set Dialog Item Maximum Value —
void
— libNtve_gf_SetDialogItemMaximumValue - Set Dialog Item Checked —
void
— libNtve_gf_SetDialogItemChecked - Set Dialog Item Edit Value —
void
— libNtve_gf_SetDialogItemEditorValue - Dialog Item Current Value —
fixed
— libNtve_gf_DialogItemValue - Dialog Item Maximum Value —
fixed
— libNtve_gf_DialogItemMaximumValue - Dialog Item Minimum Value —
fixed
— libNtve_gf_DialogItemMinimumValue - Dialog Item Is Checked —
bool
— libNtve_gf_DialogItemIsChecked - Dialog Item Edit Value —
string
— libNtve_gf_DialogItemEditValue - Add List Item —
void
— DialogControlAddItem - Select List Item —
void
— DialogControlSelectItem - Clear List Selection —
void
— DialogControlClearSelectedItem - Selected List Item —
int
— DialogControlGetSelectedItem - Count Of List Items —
int
— DialogControlGetItemCount - Remove List Item —
void
— DialogControlRemoveItem - Remove All List Items —
void
— DialogControlRemoveAllItems - Add Graph Data Point —
void
— DialogControlAddDataPoint - Remove All Graph Data Points —
void
— DialogControlRemoveAllDataPoints - Set Graph Data Color —
void
— DialogControlSetDataColor - Set Graph Data Name —
void
— DialogControlSetDataName - Set Graph Minimum X Visible —
void
— DialogControlSetMinXVisible - Get Graph Minimum X Value —
fixed
— DialogControlGetMinXValue - Set Graph Maximum X Visible —
void
— DialogControlSetMaxXVisible - Get Graph Maximum X Value —
fixed
— DialogControlGetMaxXValue - Set Graph Minimum Y Visible —
void
— DialogControlSetMinYVisible - Get Graph Minimum Y Value —
fixed
— DialogControlGetMinYValue - Set Graph Maximum Y Visible —
void
— DialogControlSetMaxYVisible - Get Graph Maximum Y Value —
fixed
— DialogControlGetMaxYValue
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2773
gv_tryMeModePanel.lv_levelSlider = DialogControlLastCreated();
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_heroMaxLevel_C, PlayerGroupAll());
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LevelLabel");
gv_tryMeModePanel.lv_levelLabel = DialogControlLastCreated();
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2817
gv_tryMeModePanel.lv_gameSpeedSlider = DialogControlLastCreated();
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_gameMaxSpeed_C, PlayerGroupAll());
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "SpeedLabel");
gv_tryMeModePanel.lv_gameSpeedLabel = DialogControlLastCreated();
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2773
gv_tryMeModePanel.lv_levelSlider = DialogControlLastCreated();
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_heroMaxLevel_C, PlayerGroupAll());
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LevelLabel");
gv_tryMeModePanel.lv_levelLabel = DialogControlLastCreated();
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2817
gv_tryMeModePanel.lv_gameSpeedSlider = DialogControlLastCreated();
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), gv_gameMaxSpeed_C, PlayerGroupAll());
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "SpeedLabel");
gv_tryMeModePanel.lv_gameSpeedLabel = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1284
libGame_gv_capturePoints[libGame_gv_capturePointCurrentCount].lv_rememberLastOwner = lp_rememberLastOwner;
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "CaptureProgressBar", lp_beaconUnit);
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), (libGame_gv_capturePoints[libGame_gv_capturePointCurrentCount].lv_maximumPoints * 2.0), PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(DialogControlLastCreated(), 0.0, PlayerGroupAll());
libGame_gv_capturePoints[libGame_gv_capturePointCurrentCount].lv_captureProgressBar = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9646
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeSlider, "PlayerSlider");
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxPlayers, PlayerGroupAll());
libUIUI_gv_uIDebugPanel.lv_playerSlider = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LevelLabel");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9652
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeSlider, "LevelSlider");
libNtve_gf_SetDialogItemMinimumValue(DialogControlLastCreated(), 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(DialogControlLastCreated(), libCore_gv_bALMaxLevel, PlayerGroupAll());
libUIUI_gv_uIDebugPanel.lv_levelSlider = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeCheckBox, "SameXPCheckBox");
mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod — base.stormdata/LibMLCP.galaxy:3099
for ( ; ( (auto220F810A_ai >= 0 && lv_itTemplIndex <= auto220F810A_ae) || (auto220F810A_ai < 0 && lv_itTemplIndex >= auto220F810A_ae) ) ; lv_itTemplIndex += auto220F810A_ai ) {
libNtve_gf_SetDialogItemMinimumValue(libMLCP_gv_mMSkyTemplePanelIcons[lv_itTemplIndex].lv_shrineProgress, 0.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(libMLCP_gv_mMSkyTemplePanelIcons[lv_itTemplIndex].lv_shrineProgress, libMLCP_gv_mMSkyTempleTempleStageDuration_C, PlayerGroupAll());
}
libMLCP_gf_MMSkyTempleUIShowHidePanel(true);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5435
// Implementation
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_GPEnergyBar[lp_mengskPlayer], UnitGetPropertyFixed(libCOMI_gv_cM_GlobalCasterUnit[lp_mengskPlayer], c_unitPropEnergyMax, c_unitPropCurrent), PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_GPEnergyBar[lp_mengskPlayer], UnitGetPropertyFixed(libCOMI_gv_cM_GlobalCasterUnit[lp_mengskPlayer], c_unitPropEnergy, c_unitPropCurrent), PlayerGroupAll());
libNtve_gf_SetUpgradeLevelForPlayer(lp_mengskPlayer, "ZergMengskCalldownLevel", (FixedToInt(UnitGetPropertyFixed(libCOMI_gv_cM_GlobalCasterUnit[lp_mengskPlayer], c_unitPropEnergy, c_unitPropCurrent)) / lv_energyperzergcalldownlevel));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:605
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectMinSlider, PlayerGroupAll(), c_anchorTop, 0, 40);
libNtve_gf_SetDialogItemMinimumValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 0.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, lv_maxPoints, PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 0.0, PlayerGroupAll());
DialogControlCreate(libCOUI_gv_cU_RandomMutationSelectDialog, c_triggerControlTypeSlider);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:612
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectMaxSlider, PlayerGroupAll(), c_anchorTop, 0, 90);
libNtve_gf_SetDialogItemMinimumValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 0.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, lv_maxPoints, PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 0.0, PlayerGroupAll());
DialogControlCreate(libCOUI_gv_cU_RandomMutationSelectDialog, c_triggerControlTypeSlider);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:619
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, PlayerGroupAll(), c_anchorTop, 0, 140);
libNtve_gf_SetDialogItemMinimumValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 4.0, PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1.0, PlayerGroupAll());
DialogControlCreate(libCOUI_gv_cU_RandomMutationSelectDialog, c_triggerControlTypeSlider);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:626
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, PlayerGroupAll(), c_anchorTop, 0, 190);
libNtve_gf_SetDialogItemMinimumValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1.0, PlayerGroupAll());
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 4.0, PlayerGroupAll());
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1.0, PlayerGroupAll());
DialogControlCreate(libCOUI_gv_cU_RandomMutationSelectDialog, c_triggerControlTypeLabel);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:5340
// Implementation
DialogControlSetAnimationState(libCOUI_gv_cU_TychusSquadUnitFrames[lp_squadIndex], PlayerGroupAll(), "AvailabilityState", "Unlocking");
libNtve_gf_SetDialogItemMaximumValue(libCOUI_gv_cU_TychusSquadAvailabilityProgressBars[lp_squadIndex], lp_duration, PlayerGroupAll());
while ((lv_timepassed < lp_duration) && (libCOUI_gv_cU_TychusSquadSpawnSkip == false)) {
libNtve_gf_SetDialogItemCurrentValue(libCOUI_gv_cU_TychusSquadAvailabilityProgressBars[lp_squadIndex], lv_timepassed, PlayerGroupAll());