Renamed renderMenuIcon to renderMenuEntry
This commit is contained in:
parent
9f701cddea
commit
bb9f82af56
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -17,5 +17,5 @@ interface SidebarMenuEntryRenderable {
|
||||
/**
|
||||
* Call here the function which updates the MenuIcon Manialink
|
||||
*/
|
||||
public function renderMenuIcon();
|
||||
public function renderMenuEntry();
|
||||
}
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user