Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agregar hotkey ctrl-A [Closes #52] #59

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions webapp/ts/desktop/desktop-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ class DesktopController {
[87,[[basic, ()=>{this.worldController.ToggleWall("north");}]]],
[68,[[basic, ()=>{this.worldController.ToggleWall("east");}]]],
[83,[[basic, ()=>{this.worldController.ToggleWall("south");}]]],
[65,[[basic, ()=>{this.worldController.ToggleWall("west");}]]],
[65,[
[ctrl, ()=>{this.worldController.Select(1, 1, 100, 100);}],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El mundo puede medir algo diferente a 100x100

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estuve buscando un poco, y encontré un archivo .js donde se inicializa KarelWorld y hay una variable maxRows y maxCols, son esas? o cómo se referencía el tamaño del mundo?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, mundo.js es un código de Karel.js vestigio que debería ser eliminado
Es con KarelController.GetInstance().world y creo que es world.w y world.h

[basic, ()=>{this.worldController.ToggleWall("west");}]
]],
[88,[[basic, ()=>{this.worldController.ToggleWall("outer");}]]],
[37,[[basic, ()=>{this.worldController.MoveSelection(0,-1, e.shiftKey);}]] ],
[38,[[basic, ()=>{this.worldController.MoveSelection(1, 0, e.shiftKey);}]]],
Expand Down Expand Up @@ -412,4 +415,4 @@ class DesktopController {
}


export {DesktopController};
export {DesktopController};