mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 09:48:18 +00:00
Fixed missing Pixi from class names and extends.
This commit is contained in:
parent
0114f66af5
commit
7528783a43
1 changed files with 10 additions and 0 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue