51 lines
644 B
JavaScript
51 lines
644 B
JavaScript
|
|
|
|
import menuButton from './leftSide.button.js';
|
|
|
|
export default class settingsButton extends menuButton{
|
|
|
|
text = "Appearance";
|
|
|
|
create() {
|
|
|
|
//this.activateButton();
|
|
|
|
}
|
|
|
|
touchstart() {
|
|
|
|
this.click();
|
|
|
|
}
|
|
|
|
async click() {
|
|
|
|
this.stateMachine.composeState( "Appearance" );
|
|
|
|
this.openPage();
|
|
|
|
}
|
|
|
|
state openPage() {
|
|
|
|
var application = this.parent.parent;
|
|
|
|
var rightSide = application.rightSide;
|
|
var menu = application.leftSide;
|
|
|
|
this.deactivateButtons();
|
|
this.activateButton();
|
|
|
|
rightSide.hideChildren();
|
|
rightSide.settings.show();
|
|
|
|
#ifdef ANDROID
|
|
|
|
application.minimizeButton.close();
|
|
|
|
#endif
|
|
|
|
|
|
}
|
|
|
|
} |