Skip to content

Commit 858a1c1

Browse files
Merge pull request #339 from jeffreykirchner/dev
Refactor PIXI.Graphics in staff.js for improved button rendering
2 parents 2bd39c9 + 2f77152 commit 858a1c1

File tree

1 file changed

+2
-8
lines changed
  • main/templates/subject/subject_home/the_stage

1 file changed

+2
-8
lines changed

main/templates/subject/subject_home/the_stage/staff.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ add_scroll_button: function add_scroll_button(button_size, name, text)
88
let g = new PIXI.Graphics();
99

1010
g.rect(0, 0, button_size.w, button_size.h);
11-
// g.pivot.set(button_size.w/2, button_size.h/2);
12-
// g.endFill();
13-
g.stroke({width:1, color:0x000000});
11+
1412
g.fill({color:0xffffff});
15-
// g.x=button_size.x;
16-
// g.y=button_size.y;
17-
//g.eventMode='static';
18-
//g.alpha = 0.5;
19-
//g.label = name;
13+
g.stroke({width:1, color:0x000000});
2014

2115
let label = new PIXI.Text({text:text, style:{fontFamily : 'Arial',
2216
fontWeight:'bold',

0 commit comments

Comments
 (0)