Renamed renderMenuIcon to renderMenuEntry

This commit is contained in:
Jocy 2017-05-11 22:37:17 +02:00
parent 9f701cddea
commit bb9f82af56
5 changed files with 6 additions and 6 deletions

View File

@ -361,7 +361,7 @@ class ActionsMenu implements SidebarMenuEntryRenderable, CallbackListener, Mania
/**
* Call here the function which updates the MenuIcon Manialink
*/
public function renderMenuIcon() {
public function renderMenuEntry() {
$this->rebuildAndShowMenu();
}
}

View File

@ -17,5 +17,5 @@ interface SidebarMenuEntryRenderable {
/**
* Call here the function which updates the MenuIcon Manialink
*/
public function renderMenuIcon();
public function renderMenuEntry();
}

View File

@ -117,7 +117,7 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener {
$registered = false;
foreach ($this->registeredClasses as $class) {
$class->renderMenuIcon();
$class->renderMenuEntry();
if ($class == $render) {
$registered = true;
}
@ -125,7 +125,7 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener {
if (!$registered) {
array_push($this->registeredClasses, $render);
$render->renderMenuIcon();
$render->renderMenuEntry();
}
return true;

View File

@ -802,7 +802,7 @@ class CustomVotesPlugin implements SidebarMenuEntryRenderable, CommandListener,
/**
* Call here the function which updates the MenuIcon Manialink
*/
public function renderMenuIcon() {
public function renderMenuEntry() {
$this->showIcon();
}
}

View File

@ -532,7 +532,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin, Sideb
$this->maniaControl->getManialinkManager()->displayWidget($maniaLink, $player, 'TopDons');
}
public function renderMenuIcon() {
public function renderMenuEntry() {
$this->displayDonateWidget();
}
}