Commit d3b2292b authored by Cody Ede (cme527)'s avatar Cody Ede (cme527)
Browse files

Still need to move text, add new Stimulus class

parent 03124006
......@@ -11,7 +11,7 @@ function FastTapMenuItem(name, iconPath, width, height) {
this.h = height;
this.hovered = false;
this.label = new PIXI.Text(this.name, {font:"11pt Arial", fill:"#000000", align:"center"});
this.label = new PIXI.Text(this.name, {font:"11pt Arial", fill:"#000000", align:"right"});
this.icon = new PIXI.Sprite( PIXI.Texture.fromImage(iconPath) );
this.bg = new PIXI.Graphics();
......@@ -47,7 +47,7 @@ FastTapMenuItem.prototype.updateLayout = function() {
this.icon.width = this.w / 4;
this.icon.height = this.w / 4; // wont work with non-square icons
this.icon.position.x = this.w / 5;
this.icon.position.y = this.h / 4;
this.icon.position.y = this.h / 3;
this.bg.clear();
if (this.hovered) {
......
......@@ -3,7 +3,7 @@ var PIXI = require('pixi.js'),
function Stimulus() {
this.view = new PIXI.Container();
this.width = 300;
this.width = 450;
}
Stimulus.prototype.setByItem = function(item) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment