Skip to content

Commit

Permalink
Refactor PIXI.Graphics in staff.js for improved button rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreykirchner committed Aug 27, 2024
1 parent 21a89cd commit 2f77152
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions main/templates/subject/subject_home/the_stage/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@ add_scroll_button: function add_scroll_button(button_size, name, text)
let g = new PIXI.Graphics();

g.rect(0, 0, button_size.w, button_size.h);
// g.pivot.set(button_size.w/2, button_size.h/2);
// g.endFill();
g.stroke({width:1, color:0x000000});

g.fill({color:0xffffff});
// g.x=button_size.x;
// g.y=button_size.y;
//g.eventMode='static';
//g.alpha = 0.5;
//g.label = name;
g.stroke({width:1, color:0x000000});

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

0 comments on commit 2f77152

Please sign in to comment.