Fixed missing Pixi from class names and extends.

This commit is contained in:
Richard Davey 2014-09-21 10:24:21 +01:00
parent 0114f66af5
commit 7528783a43

View file

@ -16,6 +16,11 @@
$this->name = $block->getLineContent('@class');
if (substr($this->name, 0, 6) !== 'Phaser')
{
$this->name = 'PIXI.' . $this->name;
}
$this->processor->log("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv");
$this->processor->log("Class: $this->name");
$this->processor->log("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
@ -30,6 +35,11 @@
if ($block->getTypeBoolean('@extends'))
{
$this->extends = $block->getLineContent('@extends');
if (substr($this->extends, 0, 6) !== 'Phaser')
{
$this->extends = 'PIXI.' . $this->extends;
}
}
if ($block->getTypeBoolean('@constructor'))