* ServerUIPropertiesMenu for Configurator to edit builtin UIProperties of MP * fixed unregister-functions of CallbackManager * Reducing menuItemHeight in Configurator to avoid overlapping of the menu items * Fully rebuild the admins menu after a player rights changed
This commit is contained in:
committed by
Lukas Kremsmayr
parent
ba1f6d54bd
commit
e241f729ce
@ -149,6 +149,8 @@ class ActionsMenu implements SidebarMenuEntryListener, CallbackListener, Maniali
|
||||
* @internal
|
||||
*/
|
||||
public function rebuildAndShowAdminMenu() {
|
||||
$this->maniaControl->getManialinkManager()->hideManialink(self::MLID_ADMIN_MENU);
|
||||
|
||||
$admins = $this->maniaControl->getAuthenticationManager()->getConnectedAdmins(AuthenticationManager::AUTH_LEVEL_MODERATOR);
|
||||
if (!empty($admins)) {
|
||||
$manialink = $this->buildAdminMenuManiaLink();
|
||||
@ -161,6 +163,8 @@ class ActionsMenu implements SidebarMenuEntryListener, CallbackListener, Maniali
|
||||
* @internal
|
||||
*/
|
||||
public function rebuildAndShowPlayerMenu() {
|
||||
$this->maniaControl->getManialinkManager()->hideManialink(self::MLID_PLAYER_MENU);
|
||||
|
||||
$players = $this->maniaControl->getPlayerManager()->getPlayers();
|
||||
if (!empty($players)) {
|
||||
$manialink = $this->buildPlayerMenuManiaLink();
|
||||
|
Reference in New Issue
Block a user