* 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:
axelalex2
2019-01-07 17:16:29 +01:00
committed by Lukas Kremsmayr
parent ba1f6d54bd
commit e241f729ce
3 changed files with 7 additions and 1 deletions

View File

@ -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();