How to use the selector.png function in selector

To help you get started, we’ve selected a few selector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github englercj / lttp-old / js / game / gui / Inventory.js View on Github external
spr.item = item;
                spr.position.x = item.position[0];
                spr.position.y = item.position[1];

                if(item.grid)
                    this._addToGrid(spr, item.grid);

                if(item.name === 'txtSwim' || item.name === 'txtRun' || item.name === 'txtLiftNum')
                    this[item.name] = spr;

                this.addChild(spr);
            }

            this.selected = new gf.Vector(0, 0);
            this.selector = new gf.Sprite(guiSprite['selector.png']);
            this.selector.visible = false;
            this.addChild(this.selector);

            this.activeItem = new gf.Sprite(guiSprite['items/lantern.png']);
            this.activeItem.position.x = 200;
            this.activeItem.position.y = 25;
            this.activeItem.visible = false;
            this.addChild(this.activeItem);

            this.activeText = new ReturnOfGanonFont();
            this.activeText.position.x = 175;
            this.activeText.position.y = 55;
            this.activeText.scale.x = this.activeText.scale.y = 0.3;
            this.activeText.visible = false;
            this.addChild(this.activeText);
        },