# Set Hero Leader Panel Enabled
Grammar — Set Hero Leader Panel Enabled(enabled)
Flags —Native
|Action
If the Hero Leader Panel system is disabled the UI will not be available.
# Arguments
bool
<preset::Enable_Disable_Option> — Enabled
Returns — void
native void SetHeroLeaderPanelEnabled(bool inRequired);
# Related
Category: UI / Hero Leader Panel
- Set Hero Leader Panel Enabled —
void
— SetHeroLeaderPanelEnabled
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2142
DialogControlSetEnabled(libUIUI_gv_uIGameUIHandles.lv_targetInfoPanel, PlayerGroupAll(), false);
libStEx_gf_LockUnlockTutorialCamera(false);
SetHeroLeaderPanelEnabled(false);
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_castChannelBarParentFrame, PlayerGroupAll(), true);
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_castChannelBarParentFrame, PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2142
DialogControlSetEnabled(libUIUI_gv_uIGameUIHandles.lv_targetInfoPanel, PlayerGroupAll(), false);
libStEx_gf_LockUnlockTutorialCamera(false);
SetHeroLeaderPanelEnabled(false);
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_castChannelBarParentFrame, PlayerGroupAll(), true);
DialogControlSetVisible(libUIUI_gv_heroConsoleUnitStatusBars.lv_castChannelBarParentFrame, PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), false);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:81
libCore_gv_dEBUGGameIsOnline = GameIsOnline();
TriggerExecute(libCore_gt_InitializeStormMod, true, true);
SetHeroLeaderPanelEnabled(false);
SetTalentTierEnabled(1, false);
SetTalentTierEnabled(2, false);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:484
}
UnitPauseAll(false);
SetHeroLeaderPanelEnabled(true);
autoB61E412C_g = UnitGroup("TownMoonwellL3", c_playerAny, libAREN_gv_aRM_MechanicData[libAREN_gf_ArenaCurrentLevelIndex()].lv_playableRegion, UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoB61E412C_u = UnitGroupCount(autoB61E412C_g, c_unitCountAll);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:1852
}
SetHeroLeaderPanelEnabled(false);
if (((libAREN_gv_aRM_CurrentRoundIndex >= libAREN_gv_aRM_MechanicsPickedCount) || (libAREN_gv_aRM_RoundScore[1] >= libAREN_gv_victoriesCount) || (libAREN_gv_aRM_RoundScore[2] >= libAREN_gv_victoriesCount))) {
libAREN_gf_ARM_GameOver();
mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod — base.stormdata/LibAtDe.galaxy:188
}
UnitPauseAll(false);
SetHeroLeaderPanelEnabled(true);
lv_itPlayer = 1;
for ( ; ( (auto5972D286_ai >= 0 && lv_itPlayer <= auto5972D286_ae) || (auto5972D286_ai < 0 && lv_itPlayer >= auto5972D286_ae) ) ; lv_itPlayer += auto5972D286_ai ) {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod — base.stormdata/LibPBUI.galaxy:514
// Implementation
libGame_gv_heroPickDone = false;
SetHeroLeaderPanelEnabled(false);
DialogControlSetVisible(libUIUI_gv_uIObserverUI.lv_mainPanel, PlayerGroupAll(), false);
DialogControlFadeTransparency(libUIUI_gv_uIObserverUI.lv_mainPanel, PlayerGroupAll(), 0.0, 100.0);
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod — base.stormdata/LibPBUI.galaxy:1534
libGame_gv_heroPickDone = true;
libGame_gv_heroSpawnReady = true;
SetHeroLeaderPanelEnabled(true);
return true;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod — base.stormdata/LibPBUI.galaxy:1619
libGame_gv_heroPickDone = true;
libGame_gv_heroSpawnReady = true;
SetHeroLeaderPanelEnabled(true);
return true;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEU.galaxy:504
// Implementation
libGame_gv_heroPickDone = false;
SetHeroLeaderPanelEnabled(false);
DialogControlSetVisible(libUIUI_gv_uIObserverUI.lv_mainPanel, PlayerGroupAll(), false);
DialogControlFadeTransparency(libUIUI_gv_uIObserverUI.lv_mainPanel, PlayerGroupAll(), 0.0, 100.0);
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEU.galaxy:1812
libGame_gv_heroPickDone = true;
libGame_gv_heroSpawnReady = true;
SetHeroLeaderPanelEnabled(true);
return true;
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEU.galaxy:1895
libGame_gv_heroPickDone = true;
libGame_gv_heroSpawnReady = true;
SetHeroLeaderPanelEnabled(true);
return true;
}
mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod — base.stormdata/LibIGHS.galaxy:996
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMenuBar, false);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMinimapPanel, false);
SetHeroLeaderPanelEnabled(false);
libIGHS_gf_MuteUnmuteSoundChannelsNotUsedForHeroSelection(true);
libSond_gf_SoundtrackApplyNewDefaultSoundtrackForPlayerGroup("MX_Brawl_LockIn", PlayerGroupAll());
mods/heroesbrawlmods/heroselectionmods/ingameheroselection.stormmod — base.stormdata/LibIGHS.galaxy:1749
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMenuBar, true);
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMinimapPanel, true);
SetHeroLeaderPanelEnabled(true);
DialogControlSetVisible(libIGHS_gv_shuffleUI.lv_nonArenaModeTitlePanel, PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), true);
DialogControlSetVisible(libUIUI_gv_uIObserverUI.lv_mainPanel, PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:675
}
SetHeroLeaderPanelEnabled(false);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:712
if ((libCore_gv_sYSGameMode != libCore_ge_GameModes_Tutorial1Deprecated) && (libCore_gv_sYSGameMode != libCore_ge_GameModes_TutorialVeteran)) {
SetHeroLeaderPanelEnabled(true);
}