@ldd : it’s still not working. what am I doing wrong here? :
Direct link to demo : https://thundros.github.io/menu-system-doosan/
Direct link to 'key1.js'
: https://thundros.github.io/menu-system-doosan/src/Scene/key1.js
My goal isn’t to click on 'this.__musicButton'
& 'this.__soundButton'
, those work. My goal is to click on 'Option 1'
, 'Option 2'
, 'Option 3'
& 'Option 4'
Inside 'key1.js'
:
Line{s} 177 - 194 :
updateOptions : function ( __page ) {
this.__page = __page;
if ( this.model.options [ this.__page * 2 ].value ) {
this.__Option [ 0 ].setTexture ( 'box' );
}-
else {
this.__Option [ 0 ].setTexture ( 'checkedBox' );
}
if ( this.model.options [ this.__page * 2 + 1 ].value ) {
this.__Option [ 1 ].setTexture ( 'box' );
}
else {
this.__Option [ 1 ].setTexture ( 'checkedBox' );
}
},
Line{s} 400 - 406 ::
this.__Option [ 0 ].on ( 'pointerdown', function ( ) {
this.updateOptions ( __OPTIONS_CURR_PAGE_COUNT );
}.bind ( this ) );
this.__Option [ 1 ].on ( 'pointerdown', function ( ) {
this.updateOptions ( __OPTIONS_CURR_PAGE_COUNT );
}.bind ( this ) );