MCPcopy Create free account
hub / github.com/SilverTree7622/Phaser3_GUI_Inspector / addFolderInBasic

Method addFolderInBasic

js/lib/index.js:39–55  ·  view source on GitHub ↗
(_basic)

Source from the content-addressed store, hash-verified

37
38 // EXTERNAL : GUI
39 addFolderInBasic(_basic) { // add in basic folder with events
40 let tmpcss = this.getGUIcss();
41 // gui & stats alpha
42 _basic.add(tmpcss, 'alpha').min(0.1).max(1.0).step(0.02)
43 .onChange( this.setAlphaInGUINStats.bind(this) );
44
45 // // DEFERRED
46 // // gui color
47 // _basic.addColor(this, 'color')
48 // .onChange( this.setColorInGUI.bind(this) );
49
50 // gui posXY (right, top)
51 _basic.add(tmpcss.posXY, 'right').step(1)
52 .onChange( tmpcss.setPosXYInGUI.bind(tmpcss) );
53 _basic.add(tmpcss.posXY, 'top').step(1)
54 .onChange( tmpcss.setPosXYInGUI.bind(tmpcss) );
55 }
56 setAlphaInGUINStats() {
57 let tmpcss = this.getGUIcss();
58 let tmpAlpha = tmpcss.getAlpha();

Callers 2

PGInspector.min.jsFile · 0.80
createBasicFolderMethod · 0.80

Calls 1

getGUIcssMethod · 0.95

Tested by

no test coverage detected