Skip to content

Commit

Permalink
Fixed issue with 'esc' key changing mouse context during modal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-atack committed Nov 18, 2023
1 parent 2e85e7c commit a02d869
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4029,6 +4029,10 @@ Exit Criteria:

8. Complete the rest of the module editor's interface, and then test it with some sample modules before putting it to work.

9. Determine why new modules with maintenance requirements don't get the resources they need, and fix that bug before closing the chapter and creating some permanent assets. ADDENDUM: It was because the editor was using Uppercase strings for the resource names, but the game only recognizes those names as lowercase strings (oxygen, water, food and power).

### 10. Update the game's seed data with the new modules created by the editor that you wish to add to the official game content.

## Chapter Ninety-Nine: Chapter Summary Template

### Difficulty Estimate: TBD
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ export default class Engine extends View {
this._sidebar._detailsArea.setExtended(false);
this._sidebar.setBuildOptionsOpen(false);
this.selectedBuilding = null;
this.setMouseContext("inspect"); // Revert to inspect context, too
if (this.mouseContext !== "modal" && this.mouseContext !== "wait") {
this.setMouseContext("inspect"); // Revert to inspect context, but only if no modal is open/wait mode is not enabled
}
break;
case 37:
if (this._sidebar._detailsArea._buildCategorySelection) this._sidebar._detailsArea.handleBack();
Expand Down

0 comments on commit a02d869

Please sign in to comment.