Jump to content

EZGUI "The FrameID does not exist in the texture cache"


tomijs
 Share

Recommended Posts

Hi all,

i use EZGUI (0.3.3) with Phaser (2.6.2). (and phaser-compat-2.4)

Everything works well for basics GUI, but i have problems to load images.

i had a JSON for configurations :

var inventoryScreenJSON = {
    id: 'myWindow',
    component: 'Window',
    header: { position: { x: 0, y: 0 }, height: 40, text: 'Inventory' },
    draggable: false,
    position: { x:  window.innerWidth/6, y: window.innerHeight/6 },
    width: window.innerWidth*4/6,
    height: window.innerHeight*4/6,
 
    layout: [1, 1],
        children: [
          { id : "abc",text: 'child 1', component: 'Window', position: 'center', width: 120, height: 100 , image : 'panda'}

       ]
}

without image key, it works perfecly, but within i got (i tried 'panda', 'panda.png' and panda.png path)  :

error.png

in preload function i have :

        game.load.image('panda', 'assets/panda.png', 16, 26);

 

in my game.html i have :

     <script src="//cdn.jsdelivr.net/phaser/2.6.2/phaser.min.js"></script>
    <script src="js/sources/phaser-compat-2.4.js"></script>
    <script src="js/sources/EZGUI.js"></script>

 

any ideas? 

Thanks you :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...