PageSourceSearch

https://naganeko.pages.dev/mirr-gif/js/ArmtrGroup.js

js naganeko.pages.dev collected 2026-10-03 05:26:59 UTC 2,053 bytes, 78 lines download raw bytes

1
2class ArmtrGroup extends PIXI.Container {
3  constructor() {
4    super();
5    // super({bones:[], slots:[],ikConstraints:[]});
6    // this._default_right = true;
7    this._init2();
8  }
9
10  _init2() {
11    this.animation = {
12      play: function (p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) {
13        this.dolls.map(d => d.animation)
14          .forEach(a => {if(a){return a.play(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9)}});
15      }.bind(this)
16      ,stop: function (p0,p1,p2,p3,p4,p5,p6,p7,p8,p9) {
17        this.dolls.map(d => d.animation)
18          .forEach(a => {if(a){return a.stop(p0,p1,p2,p3,p4,p5,p6,p7,p8,p9)}});
19      }.bind(this)
20    }
21
22    this.skeleton = {
23      setToSetupPose : function () {
24        this.dolls
25          .map(d => d.skeleton)
26          .forEach(d => d.setToSetupPose());
27      }.bind(this)
28    }
29
30    this.state = {
31      setAnimationByName: function (trackIndex, animationName, loop, opt) {
32        this.dolls
33          .map(d => d.state)
34          .forEach(d => d.setAnimationByName(trackIndex, animationName, loop, opt));
35      }.bind(this)
36
37      ,addAnimationByName: function (trackIndex, animationName, loop, opt) {
38        this.dolls
39          .map(d => d.state)
40          .forEach(d => d.addAnimationByName(trackIndex, animationName, loop, opt));
41      }.bind(this)
42
43      ,clearTracks: function () {
44        this.dolls
45          .map(d => d.state)
46          .forEach(d => d.clearTracks())
47          // .forEach(d => { console.log(d, d.skin);})
48        ;
49      }.bind(this)
50    };
51  }
52  // set facingRight(right) {
53  //   this.skeleton.flipX = this._default_right ^ right;
54  // }
55  //
56  // get facingRight() {
57  //   return this._default_right ^ this.skeleton.flipX ? true : false;
58  // }
59
60  get dolls() {
61    return this.children;
62  }
63
64  set autoUpdate(flag) {
65    // super.autoUpdate = flag;
66    this.dolls.forEach(d => d.autoUpdate = flag);
67  }
68
69  update(delta) {
70    this.dolls.forEach(d => d.update(delta));
71  }
72
73
74}
75
76ArmtrGroup.selectedFilters =  [new PIXI.filters.GlowFilter(10,3,0,0x88ff88,0.5)];
77ArmtrGroup.unselectedFilters =  [];
78

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.