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
|
* Call here the function which updates the MenuIcon Manialink
|
||||||
*/
|
*/
|
||||||
public function renderMenuIcon() {
|
public function renderMenuEntry() {
|
||||||
$this->rebuildAndShowMenu();
|
$this->rebuildAndShowMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,5 @@ interface SidebarMenuEntryRenderable {
|
|||||||
/**
|
/**
|
||||||
* Call here the function which updates the MenuIcon Manialink
|
* 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;
|
$registered = false;
|
||||||
foreach ($this->registeredClasses as $class) {
|
foreach ($this->registeredClasses as $class) {
|
||||||
$class->renderMenuIcon();
|
$class->renderMenuEntry();
|
||||||
if ($class == $render) {
|
if ($class == $render) {
|
||||||
$registered = true;
|
$registered = true;
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener {
|
|||||||
|
|
||||||
if (!$registered) {
|
if (!$registered) {
|
||||||
array_push($this->registeredClasses, $render);
|
array_push($this->registeredClasses, $render);
|
||||||
$render->renderMenuIcon();
|
$render->renderMenuEntry();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -802,7 +802,7 @@ class CustomVotesPlugin implements SidebarMenuEntryRenderable, CommandListener,
|
|||||||
/**
|
/**
|
||||||
* Call here the function which updates the MenuIcon Manialink
|
* Call here the function which updates the MenuIcon Manialink
|
||||||
*/
|
*/
|
||||||
public function renderMenuIcon() {
|
public function renderMenuEntry() {
|
||||||
$this->showIcon();
|
$this->showIcon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -532,7 +532,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin, Sideb
|
|||||||
$this->maniaControl->getManialinkManager()->displayWidget($maniaLink, $player, 'TopDons');
|
$this->maniaControl->getManialinkManager()->displayWidget($maniaLink, $player, 'TopDons');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function renderMenuIcon() {
|
public function renderMenuEntry() {
|
||||||
$this->displayDonateWidget();
|
$this->displayDonateWidget();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user