slick-ui icon indicating copy to clipboard operation
slick-ui copied to clipboard

last working version that works with Phaser CE is from August 22, 2016?

Open papayaah opened this issue 7 years ago • 0 comments

at this commit, i get this to work with Phaser CE v2.10.2 https://github.com/Flaxis/slick-ui/commit/5a285940eabdd887309efad89e1819d93d807089#diff-63f0e32da459bffac0edf8f1f427b5be

the issue is context is undefined:

Phaser.Plugin.SlickUI.prototype.getRenderer = function(name) {
    if (void 0 !== this.renderer[name]) return this.renderer[name];
    var theme = this.game.cache.getJSON("slick-ui-theme"), resolveObject = function(name) {
        var namespace = name.split("."), context = window;
        for (var i in namespace)  context = context[namespace[i]];        
        return context;
    };

where it tries to loop through all the namespace and tries to pull it from context[namespace[i]] but context is just a window - is that the expected?

cc @Flaxis

papayaah avatar Apr 16 '18 18:04 papayaah