Updated changelog with newest versions, added ingame-window to display it.

This commit is contained in:
Alexander Nell
2020-03-16 00:12:36 +01:00
parent 96d0a1b5c9
commit 35683d45ba
4 changed files with 181 additions and 5 deletions

View File

@ -34,6 +34,7 @@ use ManiaControl\Script\ModeScriptEventManager;
use ManiaControl\Server\Server;
use ManiaControl\Settings\SettingManager;
use ManiaControl\Statistics\StatisticManager;
use ManiaControl\Update\ChangeLog;
use ManiaControl\Update\UpdateManager;
use ManiaControl\Utils\CommandLineHelper;
use ManiaControl\Utils\SystemUtil;
@ -94,6 +95,10 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
* @see getChat()
*/
private $chat = null;
/** @var ChangeLog $changeLog
* @see getChangeLog()
*/
private $changeLog = null;
/** @var ColorManager $colorManager
* @see getColorManager()
*/
@ -212,6 +217,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
$this->configurator = new Configurator($this);
$this->pluginManager = new PluginManager($this);
$this->updateManager = new UpdateManager($this);
$this->changeLog = new ChangeLog($this);
$this->getErrorHandler()->init();
@ -346,6 +352,15 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
return $this->chat;
}
/**
* Return the changelog
*
* @return ChangeLog
*/
public function getChangeLog() {
return $this->changeLog;
}
/**
* Return the error handler
*