small fixes
This commit is contained in:
parent
6b056e3cfa
commit
ab524cc1f7
@ -175,6 +175,9 @@ class SimpleStatsList implements ManialinkPageAnswerListener, CallbackListener,
|
|||||||
//Description Label
|
//Description Label
|
||||||
$i = 2;
|
$i = 2;
|
||||||
foreach($this->statArray as $statArray) {
|
foreach($this->statArray as $statArray) {
|
||||||
|
if(!isset($labels[$i]))
|
||||||
|
break;
|
||||||
|
|
||||||
/** @var Label_Text $labels [] */
|
/** @var Label_Text $labels [] */
|
||||||
$labels[$i]->setAction(self::ACTION_SORT_STATS . '.' . $statArray["Name"]);
|
$labels[$i]->setAction(self::ACTION_SORT_STATS . '.' . $statArray["Name"]);
|
||||||
$script->addTooltip($labels[$i], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$o ' . $statArray["Name"]));
|
$script->addTooltip($labels[$i], $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => '$o ' . $statArray["Name"]));
|
||||||
|
@ -222,7 +222,7 @@ class StatisticCollector implements CallbackListener {
|
|||||||
|
|
||||||
switch($callbackName) {
|
switch($callbackName) {
|
||||||
case 'LibXmlRpc_OnShoot':
|
case 'LibXmlRpc_OnShoot':
|
||||||
$this->handleOnShoot($callback[1][1][0], $callback[1][1][3]);
|
$this->handleOnShoot($callback[1][1][0], $callback[1][1][1]);
|
||||||
break;
|
break;
|
||||||
case 'LibXmlRpc_OnHit':
|
case 'LibXmlRpc_OnHit':
|
||||||
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
$shooter = $this->maniaControl->playerManager->getPlayer($callback[1][1][0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user