# 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.stormmodbase.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.stormmodbase.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.stormmapmap/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.stormmapmap/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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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());