Fix feedback WorkAdventure team
This commit is contained in:
parent
f11e936143
commit
b934d3404f
5 changed files with 78 additions and 95 deletions
|
@ -129,7 +129,7 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||
|
||||
if(index === -1 && this.activeRow === 5){
|
||||
const button = this.customizeSceneElement.getChildByID('customizeSceneFormSubmit') as HTMLButtonElement;
|
||||
button.innerText = 'Next';
|
||||
button.innerHTML = `Next <img src="resources/objects/arrow_up.png"/>`;
|
||||
}
|
||||
|
||||
if(index === 1 && this.activeRow === 4){
|
||||
|
@ -137,6 +137,16 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||
button.innerText = 'Finish';
|
||||
}
|
||||
|
||||
if(index === -1 && this.activeRow === 1){
|
||||
const button = this.customizeSceneElement.getChildByID('customizeSceneFormBack') as HTMLButtonElement;
|
||||
button.innerText = `Back`;
|
||||
}
|
||||
|
||||
if(index === 1 && this.activeRow === 0){
|
||||
const button = this.customizeSceneElement.getChildByID('customizeSceneFormBack') as HTMLButtonElement;
|
||||
button.innerHTML = `Back <img src="resources/objects/arrow_up.png"/>`;
|
||||
}
|
||||
|
||||
this.activeRow += index;
|
||||
if (this.activeRow < 0) {
|
||||
this.activeRow = 0
|
||||
|
@ -306,37 +316,4 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||
this.scene.sleep(CustomizeSceneName);
|
||||
this.scene.run(SelectCharacterSceneName);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO fix me and mutualize code
|
||||
*/
|
||||
defineSetupPosition() : {playerX: number, playerY: number, playerScale: number, playserOpactity: number, playerVisible: boolean}{
|
||||
throw new Error('defineSetupPosition cannot be used');
|
||||
return {playerX: 0, playerY: 0, playerScale: 0, playserOpactity: 0, playerVisible: false};
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO fix me and mutualize code
|
||||
*/
|
||||
nextSceneToCameraScene(): void {
|
||||
throw new Error('nextSceneToCameraScene cannot be used in this scene');
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO fix me and mutualize code
|
||||
*/
|
||||
nextSceneToCustomizeScene(): void {
|
||||
throw new Error('nextSceneToCustomizeScene cannot be used in this scene');
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO fix me and mutualize code
|
||||
* Returns pixel position by on column and row number
|
||||
*/
|
||||
getCharacterPosition(): [number, number] {
|
||||
return [
|
||||
this.game.renderer.width / 2,
|
||||
this.game.renderer.height / 2
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue