On 27 ago, 11:57, claudio canepa <[email protected]> wrote:
> On Thu, Aug 27, 2009 at 5:40 AM, devon <[email protected]> wrote:
>
> [...]
>
> > -I tried using the latest revision of cocos tonight but it gave me a
> > batchnode error about too many arguments for set_child or something so
> > I just included cocos 0.3
>
> That is an error in cocos svn trunk, I reported with patch in issue 127 for
> cocos.
> With the patch your app runs (except for the hardcoded paths)
>
> --
> claudio
I was actually wrong with this.
It turns out that cocos.batch has undergone some changes, not totally
compatible with 0.3.0
But changing a few lines in cocograph\dialog_node.py yor code works
well both with cocos 0.3.0 release and cocos svn 864.
The change (sorry for not give a svn diff):
In cocograph.dialog_node.py the class DialogNode now looks as:
class DialogNode(cocos.batch.BatchableNode):
def __init__(self, dialog=None):
super(DialogNode, self).__init__()
self.dialog = dialog
def set_batch(self, batch, group=None, z=0):
super(DialogNode, self).set_batch(batch, group)
if self.dialog is not None:
self.dialog.batch = self.batch
self.dialog.group = self.group
def delete(self, dialog=None):
self.dialog.teardown()
super(DialogNode, self).on_exit()
self.parent.remove(self)
def draw(self):
pass
--
claudio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---